MENU

Fun & Interesting

Tree Nodes - Data Analyst SQL Mock Interview

Exponent 3,421 2 years ago
Video Not Working? Fix It Now

Don't leave your SQL interviews to chance. Sign up for Exponent's SQL interview course today: https://bit.ly/48LVNXz In this mock SQL interview, we ask our guest to write a SQL query to report the type of each node in a tree. Then, they explore a more complex question - if the tree represents an employee directory where each node stores an employee ID and a node's children represent the reports of a given employee, how do we join this tree table with a separate employee information table to query for the full names of the reports of a given employee that are contractors? Chapters - 00:00 - Intro 00:23 - Answer 04:20 - Real World Scenario 09:16 - Follow-up Questions 09:57 - Interview Analysis 12:33 - Outro Want more SQL content? - Analyze a User's Posts: https://youtu.be/VFCtuuUcFdM - Find employees who earn more than their managers: https://youtu.be/wgU1uyjjZW0 - Analyze Marketing Channels: https://youtu.be/lnhuCj0EfPI - SQL vs. NoSQL Explained (in 4 Minutes): https://youtu.be/_Ss42Vb1SU4 - Complex Datasets with SQL: https://youtu.be/LuU9fm20JPU 👉 Subscribe to our channel: http://bit.ly/exponentyt 🕊️ Follow us on Twitter: http://bit.ly/exptweet 💙 Like us on Facebook for special discounts: http://bit.ly/exponentfb 📷 Check us out on Instagram: http://bit.ly/exponentig 📹 Watch us on TikTok: https://bit.ly/exponenttiktok ABOUT US: Did you enjoy this interview question and answer? Want to land your dream career? Exponent is an online community, course, and coaching platform to help you ace your upcoming interview. Exponent has helped people land their dream careers at companies like Google, Microsoft, Amazon, and high-growth startups. Exponent is currently licensed by Stanford, Yale, UW, and others. Our courses include interview lessons, questions, and complete answers with video walkthroughs. Access hours of real interview videos, where we analyze what went right or wrong, and our 1000+ community of expert coaches and industry professionals, to help you get your dream job and more! #sql #sqlinterview #datascience #businessanalyst

Comment