Suppose that we have a relational database with the following table. Underlined one represent primary key Movies (mid, title, year) People (pid…

Suppose that we have a relational database with the following table. Underlined one represent primary key

Movies (mid, title, year)

People (pid, name)

Genres (gid, genre)

HasRole (pid, mid, role)

HasGenre (gid, mid)

Write a SQL query to return the number of movies that are romantic comedies.

From the BB Assistant Programmer February 2023 – Written (BIBM) exam, question 30 of 37.

More from this paper