Secret weapon how to promote your YouTube channel
Get Free YouTube Subscribers, Views and Likes

Solving a FAANG Level SQL Question | Aam vs Mentos Zindagi | Analytics

Follow
Ankit Bansal

Today we are going to discuss a very interesting SQL problem asked in namaste SQL Instagram's page. We will solve it using 2 methods.

00:00 Understand the problem
01:50 Aam Solution
08:00 Mentos Solution

Here is the script:
create table clocked_hours(

empd_id int,

swipe time,

flag char

)

insert into clocked_hours values

(11114,'08:30','I'),

(11114,'10:30','O'),

(11114,'11:30','I'),

(11114,'15:30','O'),

(11115,'09:30','I'),

(11115,'17:30','O');


Zero to hero(Advance) SQL Aggregation:
   • All About SQL Aggregations | SQL Adva...  

Most Asked Join Based Interview Question:
   • Most Asked SQL JOIN based Interview Q...  

Solving 4 Trick SQL problems:
   • Solving 4 Tricky SQL Problems  

Data Analyst Spotify Case Study:
   • Data Analyst Spotify Case Study | SQL...  

Top 10 SQL interview Questions:
   • Top 10 SQL interview Questions and An...  

Interview Question based on FULL OUTER JOIN:
   • SQL Interview Question Based on Full ...  

Playlist to master SQL :
   • Complex SQL Questions for Interview P...  

Rank, Dense_Rank and Row_Number:
   • RANK, DENSE_RANK, ROW_NUMBER SQL Anal...  

#sql #dataengineer

posted by skuffanmy