Answer to Question #241051 in Databases | SQL | Oracle | MS Access for MKD

Question #241051

1) Find the manager who manages most employees but also being managed by someone else .

2) Find the artist name who is the most profitable commercially ? (his/her tracks have been sold the most)


ER-Diagram for this questions

https://i.stack.imgur.com/CX01i.png


1
Expert's answer
2021-09-23T04:48:49-0400
SELECT ReportsTo
FROM Employees
WHERE Employees.ReportsTo = Employees.ReportsTo.max() AND COUNT(Employees.ReportsTo.max()) > 0

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS