✕ Clear all filters
23 articles

📰 Dev.to · Vivek Kumar

23 articles · Updated every 3 hours · View all reads

All Articles 87,455Blog Posts 108,013Tech Tutorials 21,649Research Papers 18,893News 14,424 ⚡ AI Lessons
From English to SQL: How LLMs Actually Understand Your Database Schema
Dev.to · Vivek Kumar 3w ago
From English to SQL: How LLMs Actually Understand Your Database Schema
Most developers treat text-to-SQL like magic. Here's what's actually happening under the hood — and how to structure your schema so the LLM gets it right every
How to Prompt AI Tools to Write Accurate SQL Queries (And Why Most Developers Get This Wrong)
Dev.to · Vivek Kumar 3w ago
How to Prompt AI Tools to Write Accurate SQL Queries (And Why Most Developers Get This Wrong)
AI can write SQL for you — but only if you prompt it correctly. Learn the schema context, few-shot, and chain-of-thought techniques that push accuracy from 60%
Multi-Tenant SQL Reporting: How to Show Each Customer Only Their Own Data
Dev.to · Vivek Kumar 1mo ago
Multi-Tenant SQL Reporting: How to Show Each Customer Only Their Own Data
A practical guide to isolating tenant data in multi-tenant SaaS reporting — covering tenant_id design, Postgres Row-Level Security, JWT context, and the gotchas
Don't Trust AI-Generated SQL Blindly: A Developer's Validation Checklist
Dev.to · Vivek Kumar 1mo ago
Don't Trust AI-Generated SQL Blindly: A Developer's Validation Checklist
AI tools can write SQL fast — but they hallucinate columns, mangle joins, and miss WHERE clauses in ways that silently corrupt your data. Here's how to validate
Beyond Basics: Mastering SQL's LEAD, LAG, RANK, DENSE_RANK, and NTILE
Dev.to · Vivek Kumar 1mo ago
Beyond Basics: Mastering SQL's LEAD, LAG, RANK, DENSE_RANK, and NTILE
Go beyond window function basics and unlock the real power of LEAD, LAG, RANK, DENSE_RANK, and NTILE with real-world examples for analytics, reporting, and data
Beyond Basic Indexes: Mastering Partial, Composite, and Covering Indexes in SQL
Dev.to · Vivek Kumar 1mo ago
Beyond Basic Indexes: Mastering Partial, Composite, and Covering Indexes in SQL
Go beyond CREATE INDEX and learn how partial, composite, and covering indexes can dramatically cut query times — with real examples and EXPLAIN output.
SQL Views Explained: Write Once, Query Forever
Dev.to · Vivek Kumar 1mo ago
SQL Views Explained: Write Once, Query Forever
Learn how to use SQL views to simplify complex queries, secure sensitive data, and keep your database logic DRY — with practical examples and gotchas to avoid.
SQL String Functions: Clean, Transform, and Tame Messy Data Like a Pro
Dev.to · Vivek Kumar 📊 Data Analytics & Business Intelligence ⚡ AI Lesson 1mo ago
SQL String Functions: Clean, Transform, and Tame Messy Data Like a Pro
A practical guide to SQL string functions — TRIM, CONCAT, REPLACE, SUBSTRING, UPPER/LOWER, and more — with real-world data cleaning scenarios you'll actually en
SQL Date & Time Functions: A Practical Guide for Real-World Queries
Dev.to · Vivek Kumar 1mo ago
SQL Date & Time Functions: A Practical Guide for Real-World Queries
Master the most useful SQL date and time functions — from extracting date parts to calculating differences and truncating timestamps — with practical examples y
SQL GROUP BY & HAVING: The Beginner's Guide to Summarizing Data Like a Pro
Dev.to · Vivek Kumar 1mo ago
SQL GROUP BY & HAVING: The Beginner's Guide to Summarizing Data Like a Pro
Learn how SQL GROUP BY and HAVING clauses work together to group, aggregate, and filter your data — with real-world examples and common mistakes to avoid.
SQL Window Functions Explained: Stop Collapsing Your Data with GROUP BY
Dev.to · Vivek Kumar 1mo ago
SQL Window Functions Explained: Stop Collapsing Your Data with GROUP BY
Learn how SQL window functions let you perform aggregate calculations while keeping all your row detail — with real-world examples using OVER, PARTITION BY, ROW
SQL LIKE and Wildcards: Pattern Matching Made Simple
Dev.to · Vivek Kumar 1mo ago
SQL LIKE and Wildcards: Pattern Matching Made Simple
Learn how to use SQL's LIKE operator and wildcard characters (%, _) to search for patterns in text data — with real examples, common pitfalls, and performance t
SQL NULLs Demystified: What They Are and How to Handle Them
Dev.to · Vivek Kumar 1mo ago
SQL NULLs Demystified: What They Are and How to Handle Them
NULL is one of the most misunderstood concepts in SQL. Learn what NULL really means, why = NULL never works, and how to use COALESCE and NULLIF to write reliabl
SQL Indexes Explained: Write Queries That Don't Make Your Database Cry
Dev.to · Vivek Kumar ⚡ AI Lesson 2mo ago
SQL Indexes Explained: Write Queries That Don't Make Your Database Cry
Learn how B-tree, composite, and covering indexes actually work — with practical examples, the leftmost prefix rule, partial indexes, and how to verify your ind
Write Your SQL Like a Pro: Mastering Common Table Expressions (CTEs)
Dev.to · Vivek Kumar 2mo ago
Write Your SQL Like a Pro: Mastering Common Table Expressions (CTEs)
Learn how to use SQL Common Table Expressions (CTEs) to write cleaner, more readable queries. Covers basic syntax, chaining multiple CTEs, real-world examples,
SQL CASE Expressions: Write Smarter Queries with Conditional Logic
Dev.to · Vivek Kumar 2mo ago
SQL CASE Expressions: Write Smarter Queries with Conditional Logic
Go beyond the basics with SQL CASE expressions. Learn conditional aggregation, dynamic sorting, window function tricks, and common gotchas with real-world examp
SQL Aggregate Functions: Stop Guessing, Start Calculating
Dev.to · Vivek Kumar 2mo ago
SQL Aggregate Functions: Stop Guessing, Start Calculating
SQL Aggregate Functions: Stop Guessing, Start Calculating If you've ever needed to answer...
SQL WHERE Clause: The Complete Guide to Filtering Data
Dev.to · Vivek Kumar 2mo ago
SQL WHERE Clause: The Complete Guide to Filtering Data
SQL WHERE Clause: The Complete Guide to Filtering Data Imagine you have a database with a...
Mastering Redis Cache Miss Handling: A Comprehensive Guide
Dev.to · Vivek Kumar 1y ago
Mastering Redis Cache Miss Handling: A Comprehensive Guide
The key to performance in modern software systems is caching, a process of maintaining, in the...