Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some commonly asked SQL nested or subquery problems in interviews #9

Open
Sar-taj107 opened this issue Oct 2, 2024 · 0 comments
Labels
good first issue Good for newcomers hacktoberfest-accepted help wanted Extra attention is needed

Comments

@Sar-taj107
Copy link
Owner

if you familiar with SQL and have good understanding or command on Database add some commonly asked SQL nested or subquery problems in interviews, along with brief explanations and example if possible. and also write query for each of them few of the example are:

Find the second highest salary from the employee table.
Find employees whose salary is greater than the average salary of all employees.
List the employees who work in the same department as an employee named 'John'.
Display departments that have no employees assigned.
For each department, find the employee with the highest salary.
List employees who do not have a manager assigned.
Find the Nth highest salary in the employee table.

@Sar-taj107 Sar-taj107 added help wanted Extra attention is needed good first issue Good for newcomers hacktoberfest-accepted labels Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers hacktoberfest-accepted help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant