Tag

#Interview

Every article tagged Interview, in one place.

  • 40 articles
  • 43 min of reading
  • 24 Sep, 2026 last updated

Showing 40 articles

SQLNew 1 min read

SQL Interview Question: WHERE vs HAVING

Short answer: WHERE filters individual rows before grouping. HAVING filters groups after GROUP BY , so it can use aggregate functions like COUNT and SUM . -- Customers who placed more than 5 paid orders in 2026 SELECT customer_id, COUNT(*) AS paid_orders, SUM(...

23 Sep, 2026 Author 836 64
Read article
SQL 1 min read

SQL Interview Question: UNION vs UNION ALL

Short answer: both stack the results of two queries. UNION removes duplicate rows; UNION ALL keeps every row. Because removing duplicates needs a sort or hash step, UNION ALL is faster. -- Emails from two sources SELECT email FROM newsletter_subscribers UNION...

06 Jun, 2026 Author 1K 73
Read article
SQL 1 min read

SQL Interview Question: DELETE vs TRUNCATE vs DROP

Short answer: DELETE removes selected rows, TRUNCATE quickly removes all rows but keeps the table, and DROP removes the table itself, including its structure. DELETE FROM sessions WHERE expires_at < NOW(); -- some rows TRUNCATE TABLE import_staging; -- all row...

19 May, 2026 Author 171 87
Read article