w3resource
SQL exercises

SQL exercises on movie Database: Find the titles of the movies with ID 905, 907, 917

SQL movie Database: Basic Exercise-8 with Solution

8. Write a query in SQL to find the titles of the movies with ID 905, 907, 917.

Sample table: movie


Sample Solution:

SELECT mov_title
FROM movie
WHERE mov_id in (905, 907, 917);

Sample Output:

                     mov_title
----------------------------------------------------
 Amadeus
 Eyes Wide Shut
 Deliverance
(3 rows)

Practice Online


Movie database model

Query Visualization:

Duration:

Query visualization of Find the titles of the movies with ID 905, 907, 917 - Duration

Rows:

Query visualization of Find the titles of the movies with ID 905, 907, 917 - Rows

Cost:

Query visualization of Find the titles of the movies with ID 905, 907, 917 - Cost

Have another way to solve this solution? Contribute your code (and comments) through Disqus.

Previous: Write a query in SQL to find the titles of all movies that have no ratings.
Next: Write a query in SQL to find the list of all those movies with year which include the words Boogie Nights.

What is the difficulty level of this exercise?



New Content: Composer: Dependency manager for PHP, R Programming