w3resource
SQL exercises

SQL exercises on movie Database: Find the year when the movie American Beauty released

SQL movie Database: Basic Exercise-2 with Solution

2. Write a query in SQL to find the year when the movie American Beauty released.

Sample table: movie


Sample Solution:


SELECT mov_year
FROM movie
WHERE mov_title='American Beauty';

Sample Output:

 mov_year
----------
     1999
(1 row)

Practice Online


Movie database model

Query Visualization:

Duration:

Query visualization of Find the year when the movie American Beauty released - Duration

Rows:

Query visualization of Find the year when the movie American Beauty released - Rows

Cost:

Query visualization of Find the year when the movie American Beauty released - Cost

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

Previous: Write a query in SQL to find the name and year of the movies.
Next: Write a query in SQL to find the movie which was released in the year 1999.

What is the difficulty level of this exercise?



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