Loading…
Loading…
// articles · learn & grow
Expert-written tutorials, guides, and deep dives into SQL — from basics to advanced optimization. Direct answers, examples, and FAQs.
// learn & grow
Expert-written tutorials, guides, and deep dives into SQL — from basics to advanced optimization. Direct answers, examples, and FAQs.
Read Latest Practice SQL// LATEST ARTICLES41 ARTICLES

Learn to build Recency, Frequency, Monetary (RFM) customer segmentation in SQL using NTILE, including the recency-inversion gotcha and segment-level reporting.

A practical guide to SQL string functions — CONCAT, SUBSTRING, TRIM, REPLACE, and REGEXP — with a real data-cleaning example and the CONCAT vs || NULL-handling difference.

Learn to analyze A/B tests in SQL — conversion rate by variant, sample ratio mismatch checks, a two-proportion z-test, and common statistical pitfalls like peeking.

YoY growth questions test whether a candidate reaches for LAG or a clunky self-join, and whether they remember to guard against divide-by-zero. A full walkthrough with both engines.

A deep dive into 1NF/2NF/3NF with real update/insert/delete anomalies, plus when and how to denormalize using duplicated columns, materialized views, and star schemas.

The definitive guide to finding the Nth highest salary in SQL — OFFSET/LIMIT, correlated subqueries, and DENSE_RANK, with correct tie-handling and top-N-per-group variants.

A practical SQL data types reference covering numeric, string, date/time, boolean, and JSON types across PostgreSQL, MySQL, and SQL Server, with a type-selection checklist.

A practical guide to choosing between SQL and NoSQL — document, key-value, column-family, and graph databases compared, plus polyglot persistence and common anti-patterns.

A complete guide to SQL JOINs with practical examples, performance notes, and common mistakes. Covers INNER, LEFT, RIGHT, FULL OUTER, CROSS, self joins, and semi/anti-joins.

Five proven ways to find duplicate rows in SQL — GROUP BY, self joins, window functions, EXISTS, and COUNT() OVER — plus how to safely delete duplicates and prevent them.
// FAQ
Interview prep, query patterns, window functions and CTEs, performance and optimization, fundamentals, and best practices — from beginner SELECT queries to advanced grouping, joins, and subqueries.
Yes. All published articles on SqlInt are free to read with no signup required, and most include a free PDF download.
Yes. Every article page has a Download PDF button that generates a printable PDF with working links — including the free SQL cheat sheet.
New tutorials and guides are added regularly. Subscribe via the RSS feed at sqlint.com/rss.xml to get new articles as they publish.
Start with the Beginner and Fundamentals categories, then move to Interview Prep and Query Pattern articles once you can write basic SELECT, WHERE, GROUP BY, and JOIN queries.