Joined April 2015
37 Photos and videos
Pinned Tweet
SQL isn’t just surviving the AI wave, it’s becoming the trusted engine inside modern RAG systems. In 2026, the best RAG setups don’t rely only on vectors. They route to SQL for precise, structured truth. Here’s the mental model 🧵 How SQL powers reliable Retrieval-Augmented Generation #Sql #RAG #AgenticAI
1
4
379
AI will not replace SQL engineers. It will replace engineers who don’t understand what the AI wrote. ChatGPT generates plausible queries. Not correct ones. It doesn’t know your schema. Your data distribution. Your edge cases. The engineer who can audit AI SQL is now more valuable, not less. #SQL #AI #futureofwork
28
The NoSQL hype of 2015 set a generation of developers back 10 years. "Postgres can't scale" - it runs Notion, Shopify, Instagram. "SQL is too rigid" - JSONB exists. "Joins are slow" - bad indexes are slow. We migrated away from Postgres. Then we migrated back. Every. Single. Time. #SQL #NoSQL #PostgreSQL
1
34
PostgreSQL isn’t just a database. It’s a full analytics engine hiding in plain sight. Why devs & data teams choose it: • Advanced SQL (window functions, CTE chaining) • JSONB → structured unstructured data in one place • Materialized views → fast analytics • Extensions like pgvector → AI-ready • Rock-solid reliability If you’re building data products or analytics systems, PostgreSQL is often all you need. #PostgreSQL #DataEngineering #SQL #Analytics #AI
25
12/12 - Final Mental Model Daily SQL Tip 💡 Human → defines meaning SQL → defines truth AI → explains it That’s the stack. Everything else is tooling. #SQL #AI #SQLforAI
1
31
11/12 - Human AI SQL Daily SQL Tip 💡 The future is not AI replacing SQL engineers. It’s collaboration. Human: - understands the data model - designs the schema - validates results AI: - drafts queries - explores data - explains insights SQL remains the language of truth. #SQL #AI #SQLforAI #DataEngineering
1
37
10/12 - AI Observability Daily SQL Tip 💡 AI systems generate queries automatically. Someone still needs to monitor performance. Classic SQL tools become AI tools: - explain - query plans - indexes - statistics Understanding query execution will be even more valuable in the AI era. #SQL #AIEngineering #DatabasePerformance
1
44
PostgreSQL: Why Engineers Love It Daily SQL Tip 💡 PostgreSQL isn’t just another database. It’s a powerhouse for serious data work. What makes it stand out: • Advanced SQL support Window functions, CTEs, JSON, arrays, all native. • Extensible by design Add custom types, functions, even languages (Python, etc.) • MVCC (no locking drama) Reads don’t block writes → smooth concurrency • JSON relational = hybrid power Perfect for modern apps & APIs • Rock-solid reliability ACID compliant, battle-tested for decades • Extensions ecosystem PostGIS (geo), Timescale (time-series), pgvector (AI) • AI-ready Vector search structured data in one place PostgreSQL is not just a database. It’s a data platform. #SQL #PostgreSQL #DataEngineering #AI #Database
1
38
9/12 — SQL as AI Infrastructure Daily SQL Tip 💡 In the AI stack, SQL is an infrastructure. Every AI system eventually needs: - structured storage - reliable joins - aggregations - consistency LLMs generate ideas why SQL generates trusted answers. #SQL #AIInfrastructure #DataEngineering
1
28
8/12 - Schema Design for AI Daily SQL Tip 💡 AI struggles with messy schemas. Clear naming makes AI better at writing queries. Good schema design means: • clear table names • descriptive columns • meaningful keys • documented metadata Think of schema design as prompt engineering for databases. #SQL #DatabaseDesign #AIEngineering
2
42
7/12 - RAG SQL Daily SQL Tip 💡 RAG fixes hallucinations by grounding AI in real data. But vector search alone is not enough. Modern stack: Vector search → retrieve context SQL → compute exact answers Vectors find relevant information. SQL guarantees correct results. Together they power reliable AI systems. #SQL #RAG #SQLforAI #AIEngineering
2
41
6/12 - AI Agents Daily SQL Tip 💡 AI Agents don’t replace SQL. They orchestrate it. AI agent workflow: Question ↓ SQL query generation ↓ Database execution ↓ Result interpretation ↓ Action SQL remains the system of truth. Agents are just the interface. #SQL #AI #DataEngineering #Analytics
1
37
AI vs SQL #AI #SQL
1
74
Why DBeaver beat MySQL Workbench (for me): 1️⃣ Multi-database support MySQL, Postgres, SQLite, Oracle - one tool. 2️⃣ Better data grid Editing, filtering, exporting feels faster and cleaner. 3️⃣ Smarter result tabs Multiple queries → multiple tabs → less chaos. 4️⃣ UI consistency Feels like a real data tool, not a server admin panel. Workbench feels like infrastructure while DBeaver feels like analytics. Tools don’t make you better, but friction makes you slower. #DBeaver #SQL
3
67
Most SQL beginners mix this up: DDL ≠ DML. DDL defines the structure of your database. DML works with the data inside it. If you don’t separate schema thinking from data thinking, you’ll never design clean systems. Great SQL starts with structure. #SQL #DataEngineering #LearnSQL
3
47
Multimodal AI isn’t magic. It’s structured data shown in multiple forms. SQL defines the truth. AI explains it. That’s the stack in 2026. #SQL #SQLforAI #DataEngineering #RAG #MultimodalAI
2
59
LEFT JOIN WHERE = Accidental INNER JOIN One of the most common SQL bugs: You write a LEFT JOIN… and accidentally turn it into an INNER JOIN. Here’s the mental model that prevents it 👇 #SQL #LearnSQL
1
2
25
If you want to filter the joined table but keep unmatched rows, move the condition into the ON clause: LEFT JOIN orders o ON c.id = o.customer_id AND o.status = 'completed';

1
2
21
WHERE filters rows. ON controls matching logic. If you filter the right table in WHERE, you remove NULL rows and lose the LEFT behavior. #SQLMentalModels #DataAnalytics
1
20