Skip to content
Advertisement

SQL Query Exercise Oracle 18c

I’m trying to resolve this exercises:

Visualize the actors who have had more than twice the compensation of the media of their compatriots.

  • FILM (CODFILM,TITLE,YEAR,GENRE) –Year is NUMBER, it contains only the Year
  • ACTOR (CODACTOR,NAME,SURNAME,NAZIONALITY)
  • CAST (CODFILM,CODACTOR, COMPENSATION).

I’ve tried this solution, but it doesn’t works

Select, for each actor, the year in which he / she played the first and last films by viewing the results in descending order based on the latter value.

This last exercise I don’t know how to resolve because I don’t have Date Of Birth column.

Visualize the roles in which French actors born before 1990 have never played. (Suppose that exist the column BIRTH, type DATE.)

Advertisement

Answer

Please try the below for your first query

For your second query please try the below

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