Complex SQL Questions for Interview Preparation

This playlist contains scenario based SQL problems. After solving these you should be able to ace any SQL interview. As and when I find a good problem, i will add it to this playlist.

Curated by: Ankit Bansal (96 videos)


Currently Playing: Top Data Analyst SQL Interview Question by A Startup

In this video we will discuss a very interesting SQL interview question asked by a startup for a data analyst position. This problem will test you advanced SQL skills like CTE , Window functions and data aggregation. Solve the question here : https://www.namastesql.com/coding-problem/118-user-session-activity script: create table events (userid int , event_type varchar(20), event_time datetime); insert into events VALUES (1, 'click', '2023-09-10 09:00:00'); insert into events VALUES (1, 'click', '2023-09-10 10:00:00'); insert into events VALUES (1, 'scroll', '2023-09-10 10:20:00'); insert into events VALUES (1, 'click', '2023-09-10 10:50:00'); insert into events VALUES (1, 'scroll', '2023-09-10 11:40:00'); insert into events VALUES (1, 'click', '2023-09-10 12:40:00'); insert into events VALUES (1, 'scroll', '2023-09-10 12:50:00'); insert into events VALUES (2, 'click', '2023-09-10 09:00:00'); insert into events VALUES (2, 'scroll', '2023-09-10 09:20:00'); insert into events VALUES (2, 'click', '2023-09-10 10:30:00'); Zero to hero(Advance) SQL Aggregation: https://youtu.be/5Ighj_2PGV0 Most Asked Join Based Interview Question: https://youtu.be/xR87ctOgpAE Solving 4 Trick SQL problems: https://youtu.be/Ck1gQrlS5pQ Data Analyst Spotify Case Study: https://youtu.be/-YdAIMjHZrM Top 10 SQL interview Questions: https://youtu.be/Iv9qBz-cyVA Interview Question based on FULL OUTER JOIN: https://youtu.be/KQfWd6V3IB8 Playlist to master SQL : https://youtube.com/playlist?list=PLBTZqjSKn0IeKBQDjLmzisazhqQy4iGkb Rank, Dense_Rank and Row_Number: https://youtu.be/xMWEVFC4FOk #sql #dataengineer


Tracks in this Playlist