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 difference between a primary key and a unique constraint?
DSA ยท 1.1k views ยท constraints
Views:1.1kLikes:32
What does DISTINCT do and what is its cost?
DSA ยท 859 views ยท distinct
Views:859Likes:59
How do you find duplicate rows in a table?
DSA ยท 694 views ยท duplicates, group-by
Views:694Likes:6
Medium
5 questionsWhat are COMMIT, ROLLBACK, and SAVEPOINT?
DSA ยท 1.1k views ยท transactions
Views:1.1kLikes:52
Why might EXISTS outperform a JOIN for existence checks?
DSA ยท 948 views ยท exists, performance
Views:948Likes:35
What is the difference between UNION and UNION ALL?
DSA ยท 594 views ยท union
Views:594Likes:44
How do you delete duplicate rows but keep one?
DSA ยท 592 views ยท duplicates, delete
Views:592Likes:48
What is a self join?
DSA ยท 113 views ยท self-join
Views:113Likes:37
Hard
1 questionSeen a SQL question that is not here? Add it and help the next candidate.
Share a question