Cracking the SQL
Interview for
DATA
SCIENTISTS
Nervous about your SQL Interview?
Anxiety ends here.
90 SQL CODING QUESTIONS & SOLUTIONS
LEON WEI
"SQLPad Helped me gain mastery of all the
core SQL concepts in a structured manner with
a thoughtfully designed business schema"
- Nisheeth, Data Scientist
1
INTRODUCTION ..............................................................................................3
ABOUT THE AUTHOR ...............................................................................................4
SELECTED CUSTOMER REVIEWS ...............................................................................5
WHAT A SQL INTERVIEW MAY LOOK LIKE AT A TOP TECH COMPANY .....................7
WINDOW FUNCTIONS ..........................................................................................12
QUESTIONS ..................................................................................................28
SINGLE TABLE OPERATIONS ..................................................................................28
MULTI-TABLE OPERATIONS .....................................................................................53
WINDOW FUNCTIONS ..........................................................................................73
SOLUTIONS.................................................................................................100
SINGLE TABLE OPERATIONS ................................................................................100
MULTI-TABLE OPERATIONS....................................................................................115
WINDOW FUNCTIONS ........................................................................................124
RECAP .........................................................................................................142
CONGRATULATIONS! ..........................................................................................142
2
INTRODUCTION
Hi, thanks for purchasing this SQL ebook!
SQL is a must-know programming language for any data analytics professionals
However, many college graduates or young professionals start their job searches without solid SQL
coding skills, - which ultimately costs them their dream jobs
This ebook includes 90 SQL interview questions and solutions, which will help data candidates
learn or refresh their SQL coding skills and get ready for a SQL interview.
This book is also accompanied by the Cracking the SQL Interview for Data Scientists Course
(sold separately), which includes 21 video lectures with tips and techniques to ace a SQL
interview
If there are any questions, feedback, please feel free to send me an email at [email protected]
Leon Wei,
March 2021
3
.