You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide a sql file with the answers to the following questions:
Select employees that don't have a boss in the same department?
Select all departments along with the total salary there
Select departments that have less than 3 people in it
Select all departments along with the number of people there
Select employees who have the biggest salary in their departments
Select employees (names only) who have a bigger salary than their boss
Bonus
Provide a stored procedure including all of the answers above
Respond to the following question: your select query has over 50 joins and is painfully slow. Which steps would you take to speed its execution? You cannot create indexes, as this is a DBA task, and we assume they have been created correctly