If this poll gets enough votes , I will come up with DBT session very soon๐ค
๐1
SQL Junction
๐จ Job Opportunity Alert! I'm looking for a Microsoft Fabric Data Engineer โ someone with hands-on experience in: โ๏ธ Building Data Pipelines ๐ Writing PySpark Notebooks This is an urgent requirement! If you're interested or know someone who might be, messageโฆ
Thank you engineers
This position was filled by some body from this group๐ค
Keep learning and opportunities will automatically come your way
This position was filled by some body from this group๐ค
Keep learning and opportunities will automatically come your way
SQL Junction
Do you want to learn DBT?
This is still
Open
I have only received 50 votes.
I will stop this poll on Monday and will see it from there.
Open
I have only received 50 votes.
I will stop this poll on Monday and will see it from there.
๐จ SQL Challenge โ Real-World Use Case
Youโre given a log table with 3 columns:
๐
๐ฆ
๐ค
Task:
๐ For each account, identify users who came back after 7+ days of inactivity.
Sounds simple, right?
But to solve this, youโll need to:
* Use
* Calculate gaps between logins per user
* Filter only those who returned after 7+ days
* Do all of this per account, not globally
This is exactly the kind of logic youโll face in interviews and real projects.
Hereโs the SQL solution ๐
๐ง SQL Solution:
WITH user_logins AS (
SELECT
account_id,
user_id,
record_date,
LAG(record_date) OVER (
PARTITION BY account_id, user_id
ORDER BY record_date
) AS prev_login
FROM user_activity_log
),
login_gaps AS (
SELECT *,
DATEDIFF(day, prev_login, record_date) AS gap_days
FROM user_logins
)
SELECT DISTINCT
account_id,
user_id
FROM login_gaps
WHERE gap_days >= 7;
๐ฉ For more such real-world SQL questions?
Join the LinkedIn posts and weekly YouTube drops:
๐ https://www.youtube.com/playlist?list=PLU1HobJd_JCqjcZwUCc6s8avJutoIjyIF
๐ Stay tuned here for more!
#SQL #DataEngineering #InterviewPrep #SQLInterview
Youโre given a log table with 3 columns:
๐
record_date,๐ฆ
account_id,๐ค
user_idTask:
๐ For each account, identify users who came back after 7+ days of inactivity.
Sounds simple, right?
But to solve this, youโll need to:
* Use
LAG() to compare login dates* Calculate gaps between logins per user
* Filter only those who returned after 7+ days
* Do all of this per account, not globally
This is exactly the kind of logic youโll face in interviews and real projects.
Hereโs the SQL solution ๐
๐ง SQL Solution:
WITH user_logins AS (
SELECT
account_id,
user_id,
record_date,
LAG(record_date) OVER (
PARTITION BY account_id, user_id
ORDER BY record_date
) AS prev_login
FROM user_activity_log
),
login_gaps AS (
SELECT *,
DATEDIFF(day, prev_login, record_date) AS gap_days
FROM user_logins
)
SELECT DISTINCT
account_id,
user_id
FROM login_gaps
WHERE gap_days >= 7;
๐ฉ For more such real-world SQL questions?
Join the LinkedIn posts and weekly YouTube drops:
๐ https://www.youtube.com/playlist?list=PLU1HobJd_JCqjcZwUCc6s8avJutoIjyIF
๐ Stay tuned here for more!
#SQL #DataEngineering #InterviewPrep #SQLInterview
YouTube
SQL Complex interview questions
Share your videos with friends, family, and the world
๐จ Urgent Hiring: Data Analyst / MIS-WFM Manager @ GlobalLogic, Gurgaon
Are you a data-driven professional with a passion for optimizing performance and uncovering insights? Join GlobalLogic in Gurgaon as a MIS & Workforce Management (WFM) Team Manager and take charge of transforming operational efficiency through smart analytics and workforce planning.
In this leadership role, you'll manage a skilled MIS/WFM team, create high-impact dashboards, and collaborate cross-functionally to ensure billing accuracy and data-backed decision-making. Your expertise in Excel, forecasting models, and reporting will drive critical business outcomes.
โ What Youโll Need:
5+ years in MIS or WFM, ideally in service-based industries
Strong command of Excel (formulas, pivots, macros)
Exposure to Amazon Connect, Monte Carlo simulations, and SARIMA/ARIMA forecasting
Knowledge of BE6 billing models
Bonus: Power BI or Tableau skills
Excellent stakeholder communication & sharp analytical thinking
๐ผ Key Responsibilities:
Lead MIS & WFM initiatives for reporting, forecasting, and planning
Build dashboards using Excel/Power BI for real-time insights
Monitor and optimize key metrics: staffing, schedule adherence, occupancy
Ensure billing accuracy, reconcile timesheets, and manage invoices
Drive strategic decisions through data storytelling and collaboration
Are you a data-driven professional with a passion for optimizing performance and uncovering insights? Join GlobalLogic in Gurgaon as a MIS & Workforce Management (WFM) Team Manager and take charge of transforming operational efficiency through smart analytics and workforce planning.
In this leadership role, you'll manage a skilled MIS/WFM team, create high-impact dashboards, and collaborate cross-functionally to ensure billing accuracy and data-backed decision-making. Your expertise in Excel, forecasting models, and reporting will drive critical business outcomes.
โ What Youโll Need:
5+ years in MIS or WFM, ideally in service-based industries
Strong command of Excel (formulas, pivots, macros)
Exposure to Amazon Connect, Monte Carlo simulations, and SARIMA/ARIMA forecasting
Knowledge of BE6 billing models
Bonus: Power BI or Tableau skills
Excellent stakeholder communication & sharp analytical thinking
๐ผ Key Responsibilities:
Lead MIS & WFM initiatives for reporting, forecasting, and planning
Build dashboards using Excel/Power BI for real-time insights
Monitor and optimize key metrics: staffing, schedule adherence, occupancy
Ensure billing accuracy, reconcile timesheets, and manage invoices
Drive strategic decisions through data storytelling and collaboration
โค1
This is an urgent hiring ,it looks like to be a data analyst role
Salary for right candidate is around 15-18 LPA
Salary for right candidate is around 15-18 LPA
โค1
๐จHiring Data Analyst Freshers!
If youโre skilled in SQL, Python, Power BI & Excel and can join within 15 days, this is your chance.
Fresh minds. Real data. Big impact.
๐ Apply now: https://lnkd.in/gP6YgNVK
Tag & share with someone who needs this!
If youโre skilled in SQL, Python, Power BI & Excel and can join within 15 days, this is your chance.
Fresh minds. Real data. Big impact.
๐ Apply now: https://lnkd.in/gP6YgNVK
Tag & share with someone who needs this!
๐จ Netflix SQL Interview Question Alert!
They asked this in an actual interview:
๐ฌ "Find the genre of the person with the most Oscar winsโฆ and join using names, not IDs."
Sounds simple? Itโs not.
Real-world SQL. Real logic. Real fun. ๐
I just posted a breakdown on LinkedIn โ check it out and drop a โNetflix ๐ฅโ to get the full solution!
๐ https://www.linkedin.com/posts/adityabansal095_sql-dataanalytics-sqlinterview-activity-7343592162338422785-OsV9?utm_source=share&utm_medium=member_desktop&rcm=ACoAAB8c2Z8Bcu4nHPJW24bZAavnMChCO7Q0wCQ
#SQL #Netflix #SQLJunction #DataEngineering #InterviewPrep
They asked this in an actual interview:
๐ฌ "Find the genre of the person with the most Oscar winsโฆ and join using names, not IDs."
Sounds simple? Itโs not.
Real-world SQL. Real logic. Real fun. ๐
I just posted a breakdown on LinkedIn โ check it out and drop a โNetflix ๐ฅโ to get the full solution!
๐ https://www.linkedin.com/posts/adityabansal095_sql-dataanalytics-sqlinterview-activity-7343592162338422785-OsV9?utm_source=share&utm_medium=member_desktop&rcm=ACoAAB8c2Z8Bcu4nHPJW24bZAavnMChCO7Q0wCQ
#SQL #Netflix #SQLJunction #DataEngineering #InterviewPrep
Linkedin
#sql #dataanalytics #sqlinterview #datascience #database #sqlquery #techinterview #dataengineering #learnsql #bigdata #datajobsโฆ
Dear Data Enthusiasts,
๐ฌ Netflix interview questions arenโt just cool โ theyโre designed to mess with your head (in a good way) ๐ฌ
๐ก๐๐ฎ๐๐ฌ๐ญ๐ข๐จ๐ง:
Find the genre of the person with the most Oscar wins.
If there's a tie, return the genre of the person whoseโฆ
๐ฌ Netflix interview questions arenโt just cool โ theyโre designed to mess with your head (in a good way) ๐ฌ
๐ก๐๐ฎ๐๐ฌ๐ญ๐ข๐จ๐ง:
Find the genre of the person with the most Oscar wins.
If there's a tie, return the genre of the person whoseโฆ
๐จ New Video Just Dropped!
๐บ Just uploaded a fresh YouTube video where I break down a Hard Google SQL interview question:
๐ฌ Compare the rating of an actorโs most recent film with the average of all their previous films.
If youโre preparing for SQL interviews or just want to level up your logic โ this is a must-watch!
๐ Watch here: https://youtu.be/gZ7ZKtKvL7s
๐ฅ Donโt forget to like, comment, and share if it helps!
Please help me in reaching 500 subscribers, Guys!!
#SQLJunction #SQLInterview #Google #DataEngineering #InterviewPrep #DataJobs
๐บ Just uploaded a fresh YouTube video where I break down a Hard Google SQL interview question:
๐ฌ Compare the rating of an actorโs most recent film with the average of all their previous films.
If youโre preparing for SQL interviews or just want to level up your logic โ this is a must-watch!
๐ Watch here: https://youtu.be/gZ7ZKtKvL7s
๐ฅ Donโt forget to like, comment, and share if it helps!
Please help me in reaching 500 subscribers, Guys!!
#SQLJunction #SQLInterview #Google #DataEngineering #InterviewPrep #DataJobs
YouTube
Google SQL Interview Question | Calculate Actor Latest VS Average Film Ratings ๐ฅ
๐ฌ Google SQL Interview Question โ Most Recent Film vs Average Rating Explained!
In this video, I break down a real SQL question asked in a Google interview:
๐ For each actor, calculate the difference between the rating of their most recent film and theirโฆ
In this video, I break down a real SQL question asked in a Google interview:
๐ For each actor, calculate the difference between the rating of their most recent film and theirโฆ
Hey Folks
Apologies
I have been busy with the past month with freelance hiring.
Apologies
I have been busy with the past month with freelance hiring.
Sure! Here's a concise and engaging Telegram post you can use to share your YouTube video in your SQL Junctionchannel:
๐ NEW VIDEO DROP โ SQL Interview Question from Netflix!
๐ Watch now on YouTube (Netflix SQL Server Complex Interview Question Series | Recommend Pages Based on Friendsโ Activity
https://youtu.be/GKY6TN1X4dY)
๐ Problem Statement:
You're given two tables โ
Your task?
๐ฏ Recommend pages to users that they donโt follow but at least one of their friends does.
This was asked in a real Netflix SQL interview!
โ In the video, I break down:
The logic step-by-step
How to write the SQL query
Key concepts like anti-joins, self joins, and recommendation filtering
Perfect for:
๐ธ SQL learners
๐ธ Data analyst/engineer interview prep
๐ธ Anyone curious how Facebook-style recommendations work under the hood!
๐จโ๐ป Watch now & level up your SQL skills!
๐ฌ Netflix SQL Server Complex Interview Question Series | Recommend Pages Based on Friendsโ Activity
https://youtu.be/GKY6TN1X4dY
#SQL #SQLJunction #NetflixInterview #SQLChallenge #DataEngineering #SQLQuery #TechInterview #TelegramLearning
๐ NEW VIDEO DROP โ SQL Interview Question from Netflix!
๐ Watch now on YouTube (Netflix SQL Server Complex Interview Question Series | Recommend Pages Based on Friendsโ Activity
https://youtu.be/GKY6TN1X4dY)
๐ Problem Statement:
You're given two tables โ
user_friends and user_pages.Your task?
๐ฏ Recommend pages to users that they donโt follow but at least one of their friends does.
This was asked in a real Netflix SQL interview!
โ In the video, I break down:
The logic step-by-step
How to write the SQL query
Key concepts like anti-joins, self joins, and recommendation filtering
Perfect for:
๐ธ SQL learners
๐ธ Data analyst/engineer interview prep
๐ธ Anyone curious how Facebook-style recommendations work under the hood!
๐จโ๐ป Watch now & level up your SQL skills!
๐ฌ Netflix SQL Server Complex Interview Question Series | Recommend Pages Based on Friendsโ Activity
https://youtu.be/GKY6TN1X4dY
#SQL #SQLJunction #NetflixInterview #SQLChallenge #DataEngineering #SQLQuery #TechInterview #TelegramLearning
YouTube
Netflix SQL Server Complex Interview Question Series | Recommend Pages Based on Friendsโ Activity
๐ Netflix SQL Interview Question Solved!
In this video, I walk through a real-life SQL interview question asked at Netflix.
๐ Problem Statement:
You're given two tables:
user_friends(user_id, friend_id) โ represents the Facebook friendship graph
user_pages(user_idโฆ
In this video, I walk through a real-life SQL interview question asked at Netflix.
๐ Problem Statement:
You're given two tables:
user_friends(user_id, friend_id) โ represents the Facebook friendship graph
user_pages(user_idโฆ
๐จ SQL Interview Prep Kit ๐จ
1๏ธโฃ Aggregations
2๏ธโฃ Window Functions
3๏ธโฃ Set Operators
4๏ธโฃ Indexing for Performance
5๏ธโฃ SQL for Analytics
๐ฏ Perfect for quick revision before interviews or weekend practice!
#SQL #InterviewPrep #DataEngineering #SQLJunction
1๏ธโฃ Aggregations
2๏ธโฃ Window Functions
3๏ธโฃ Set Operators
4๏ธโฃ Indexing for Performance
5๏ธโฃ SQL for Analytics
๐ฏ Perfect for quick revision before interviews or weekend practice!
#SQL #InterviewPrep #DataEngineering #SQLJunction
Average SQL vs Great SQL.pdf
169.7 KB
๐ซ Most developers write SQL like this...
โ But great developers write it like this.
Just shared a visual breakdown of common SQL mistakes โ and how to fix them like a pro! โก
Perfect for anyone preparing for interviews or writing SQL daily.
๐ Upgrade your query game in 60 seconds.
#SQL #InterviewPrep #SQLTips #SQLJunction #SQLInterview
โ But great developers write it like this.
Just shared a visual breakdown of common SQL mistakes โ and how to fix them like a pro! โก
Perfect for anyone preparing for interviews or writing SQL daily.
๐ Upgrade your query game in 60 seconds.
#SQL #InterviewPrep #SQLTips #SQLJunction #SQLInterview
โค2
In this document, I have mentioned a page regarding the IN clause and where exists clause
This is a highly asked interview question, the difference between the two? Which is better for faster execution?
This is a highly asked interview question, the difference between the two? Which is better for faster execution?
โค2
๐ SQL Interview Trick You Must Know!
Just dropped a brand new video ๐ฅ
๐ Problem: Forward fill
๐ง Covered: A smart use of
If you're preparing for SQL/Data Engineering interviews, this is the kind of trick that separates good from great ๐
Donโt miss this one!
๐บ Watch now: https://youtu.be/sBcMQfyb4eU?si=xPgvTcMOdSvAudSx
#SQL #InterviewPrep #DataEngineering #SQLTricks
Just dropped a brand new video ๐ฅ
๐ Problem: Forward fill
NULL values with the last non-null value in a SQL table.๐ง Covered: A smart use of
FIRST_VALUE() and logic building that actually makes sense!If you're preparing for SQL/Data Engineering interviews, this is the kind of trick that separates good from great ๐
Donโt miss this one!
๐บ Watch now: https://youtu.be/sBcMQfyb4eU?si=xPgvTcMOdSvAudSx
#SQL #InterviewPrep #DataEngineering #SQLTricks
YouTube
Forward Fill NULLs using FIRST_VALUE() | This SQL Interview Trick Blew My Mind ๐คฏ | SQL Interview
๐ฅ SQL Interview Favorite โ Forward Fill NULLs Like a Pro!
Have you ever been asked to forward fill `NULL` values in SQL with the last non-NULL value?
This is a classic data engineering interview question โ and many folks get stuck here!
๐จโ๐ป Problem:
You'reโฆ
Have you ever been asked to forward fill `NULL` values in SQL with the last non-NULL value?
This is a classic data engineering interview question โ and many folks get stuck here!
๐จโ๐ป Problem:
You'reโฆ
SQL Junction pinned ยซ๐ SQL Interview Trick You Must Know! Just dropped a brand new video ๐ฅ ๐ Problem: Forward fill NULL values with the last non-null value in a SQL table. ๐ง Covered: A smart use of FIRST_VALUE() and logic building that actually makes sense! If you're preparingโฆยป
Hey folks ๐
I just created a clean and simple SQL cheat sheet โ perfect for quick revision before interviews or while working on projects.
It covers:
๐ธ DDL / DML / DCL / TCL
๐ธ All types of Joins
๐ธ Common Window Functions
๐ธ Aggregate functions
๐ผ๏ธ Check out the full image in the post ๐
๐ Save it for your reference
๐ค Share it with someone learning SQL
โ Aditya | SQL Junction
#SQL #SQLCheatSheet #DataEngineering #LearningSQL #SQLJunction
I just created a clean and simple SQL cheat sheet โ perfect for quick revision before interviews or while working on projects.
It covers:
๐ธ DDL / DML / DCL / TCL
๐ธ All types of Joins
๐ธ Common Window Functions
๐ธ Aggregate functions
๐ผ๏ธ Check out the full image in the post ๐
๐ Save it for your reference
๐ค Share it with someone learning SQL
โ Aditya | SQL Junction
#SQL #SQLCheatSheet #DataEngineering #LearningSQL #SQLJunction
โค2๐1