Sector file // sql
SQLDECODED.
Joins, indexes & queries
82 Questions56.3k Views3.4k Upvotes
15 easy51 med16 hard
Easy
4 questionsWhat is the difference between a primary key and a foreign key?
DSA ยท 1.2k views ยท primary-key, foreign-key
Views:1.2kLikes:7
What is the logical order of execution of a SQL query?
DSA ยท 1.1k views ยท order-of-execution
Views:1.1kLikes:70
What are the different types of SQL joins?
DSA ยท 985 views ยท sql, joins
Views:985Likes:30
What is a CROSS JOIN and when is it useful?
DSA ยท 484 views ยท joins
Views:484Likes:73
Medium
10 questionsWhat is database normalization?
DSA ยท 1.2k views ยท normalization
Views:1.2kLikes:46
How do you read an EXPLAIN query plan?
DSA ยท 1.1k views ยท explain
Views:1.1kLikes:19
What is the difference between COUNT(*), COUNT(col), and COUNT(DISTINCT col)?
DSA ยท 967 views ยท count
Views:967Likes:68
Why might EXISTS outperform a JOIN for existence checks?
DSA ยท 948 views ยท exists, performance
Views:948Likes:35
What is the difference between EXISTS and IN?
DSA ยท 762 views ยท exists-in
Views:762Likes:63
Does a filter in the ON clause behave differently from WHERE in a LEFT JOIN?
DSA ยท 717 views ยท joins, left-join
Views:717Likes:26
What is denormalization and when should you use it?
DSA ยท 531 views ยท design, denormalization
Views:531Likes:60
How do you paginate efficiently in SQL?
DSA ยท 342 views ยท pagination
Views:342Likes:43
Hard
1 questionSeen a SQL question that is not here? Add it and help the next candidate.
Share a question