SQL Interview Trick Without Using JOIN
Struggling with SQL interviews even after learning SQL?
Here is a tricky SQL interview question that many candidates fail to solve.
We have two tables: employees and departments.
The task is simple but the condition makes it interesting.
Write a SQL query to show:
Employee Name
Department ID
Department Name
But there is a twist.
You cannot use SQL JOINs.
In this video, we solve this problem using a column level correlated subquery and break it down step by step so you clearly understand how it works.
If you want to improve your SQL interview skills, practice real interview style querie…
Watch on YouTube ↗
(saves to browser)
DeepCamp AI