Skip to content
Advertisement

SQL write a query, question from interview problem

At the beginning I need to mention that I am not very good at SQL so I would like to ask you.

Here is a tables relation:

tables

What I need to do with them is “Show name, surname and number of movies those directors (Reżyser means director), who made more movies that the average number is for all directors. Sort results from the biggest to the smallest.”

Here’s what I tried:

but I got only 2/10 points from recruiter.

Advertisement

Answer

Classic sql:

Modern sql:

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement