Sector file // sql
SQLDECODED.
Joins, indexes & queries
82 Questions56.3k Views3.4k Upvotes
15 easy51 med16 hard
Easy
5 questionsWhat is the logical order of execution of a SQL query?
DSA · 1.1k views · order-of-execution
Views:1.1kLikes:70
What is the CASE expression?
DSA · 1.0k views · case
Views:1.0kLikes:12
What is the difference between WHERE and HAVING?
DSA · 1.0k views · where, having
Views:1.0kLikes:45
What are the different types of SQL joins?
DSA · 985 views · sql, joins
Views:985Likes:30
What does DISTINCT do and what is its cost?
DSA · 859 views · distinct
Views:859Likes:59
Medium
12 questionsHow do you read an EXPLAIN query plan?
DSA · 1.1k views · explain
Views:1.1kLikes:19
How does GROUP BY work with aggregate functions?
DSA · 1.1k views · group-by, aggregate
Views:1.1kLikes:27
How do you aggregate values into a single string?
DSA · 1.1k views · string-agg
Views:1.1kLikes:22
How do you calculate year-over-year or month-over-month growth in SQL?
DSA · 1.0k views · window-functions, analytics
Views:1.0kLikes:43
Why might EXISTS outperform a JOIN for existence checks?
DSA · 948 views · exists, performance
Views:948Likes:35
How does SQL handle NULL values?
DSA · 940 views · null
Views:940Likes:73
What is a view and a materialized view?
DSA · 935 views · view
Views:935Likes:31
What is the difference between UNION and UNION ALL?
DSA · 594 views · union
Views:594Likes:44
Hard
2 questionsSeen a SQL question that is not here? Add it and help the next candidate.
Share a question