Back to Browse

Solving REAL Microsoft SQL Interview Questions

853 views
May 19, 2023
10:39

🧠 Don’t miss out! Get FREE access to my Skool community — packed with resources, tools, and support to help you with Data, Machine Learning, and AI Automations! 📈 https://www.skool.com/data-and-ai-automations-4579 Today we are taking a look at two different Microsoft SQL interview questions for Data Analysts/Scientists. Both of these examples come directly from DataLemur. Everything is coded within MSSQL and inside SQL Server Management Studio. SQL Interview Question here: https://datalemur.com?referralCode=e6YqaKye 🚀 Hire me for Data Work: https://ryanandmattdatascience.com/data-freelancing/ 👨‍💻 Mentorships: https://ryanandmattdatascience.com/mentorship/ 📧 Email: [email protected] 🌐 Website & Blog: https://ryanandmattdatascience.com/ 🖥️ Discord: https://discord.com/invite/F7dxbvHUhg 📚 *Practice SQL & Python Interview Questions: https://stratascratch.com/?via=ryan 📖 *SQL and Python Courses: https://datacamp.pxf.io/XYD7Qg 🍿 WATCH NEXT Real SQL Interview Questions Playlist: https://www.youtube.com/playlist?list=PLcQVY5V2UY4LvbRTDRVmcqZPkhCqk4Ax9 CVS SQL Interview Question: https://youtu.be/Yio3dE-WdzU Twitter(X) SQL Interview Question: https://youtu.be/g1nxoY7j3nI Spotify SQL Interview Question: https://youtu.be/F52NN0ErPTw In this video, I walk through two real Microsoft SQL coding interview questions step by step, showing you exactly how I would solve them in an actual interview. We start with the easy-level "Team Power Users" problem, where I break down how to identify the top two power users who sent the most messages on Microsoft Teams during August 2022. I explain how to filter dates, use GROUP BY statements, and implement subqueries to get the correct results. Then we move on to the medium-difficulty "Supercloud Customer" question, where we need to identify companies that purchase at least one product from every category. I demonstrate how to join multiple tables, count distinct product categories, and build a comprehensive query that compares customer purchases against total product categories. Throughout both problems, I share my thought process for breaking down requirements, choosing the right SQL functions, and debugging errors. By the end of this video, you'll understand how to approach SQL interview questions systematically, avoid common mistakes, and write clean, efficient queries. These are the exact types of questions asked at Microsoft and other top tech companies, so if you're preparing for data analyst or data engineer interviews, this walkthrough will help you build confidence and master SQL problem-solving techniques. TIMESTAMPS 00:00 Introduction to Microsoft SQL Questions 00:11 Question 1: Team Power Users Overview 01:15 Breaking Down the Requirements 02:04 Building the Group By Query 03:07 Adding Date Filters for August 2022 03:54 Creating the Subquery Solution 05:08 Testing and Submitting Question 1 05:29 Question 2: Supercloud Customers 06:26 Understanding Distinct Product Categories 07:17 Joining Customer Contracts and Products Tables 08:18 Building the Customer ID Query 09:26 Final Solution with Where Clause 10:26 Closing Remarks OTHER SOCIALS: Ryan’s LinkedIn: https://www.linkedin.com/in/ryan-p-nolan/ Matt’s LinkedIn: https://www.linkedin.com/in/matt-payne-ceo/ Twitter/X: https://x.com/RyanMattDS Who is Ryan Ryan is a Data Scientist at a fintech company, where he focuses on fraud prevention in underwriting and risk. Before that, he worked as a Data Analyst at a tax software company. He holds a degree in Electrical Engineering from UCF. Who is Matt Matt is the founder of Width.ai, an AI and Machine Learning agency. Before starting his own company, he was a Machine Learning Engineer at Capital One. *This is an affiliate program. We receive a small portion of the final sale at no extra cost to you.

Download

1 formats

Video Formats

360pmp416.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Solving REAL Microsoft SQL Interview Questions | NatokHD