You are on page 1of 2

NATIONAL INSTITUTE OF TECHNOLOGY,

DURGAPUR

DBMS Lab
Assignment- 6

The data in this database can be taken from the IMDB website.

1. Write a SQL query to list no. of movies with rating of 8 or more.


2. Write a SQL query to list title and release year of SRK movies in
chronological order.
3. Write a SQL query to list the name of all the people who starred in Karan
Johar films
4. Write a SQL query to list the name of all people who starred in movies
released in 2010.
5. Write a SQL query to find the name of the people who played in the movies
with rating 8 or more.
6. Write a SQL query to list of movies in which SRK and Kajol starred
7. Write a SQL query to list all the actors and for each actor give maximum
number of movies he/she made and have rating 7 or more
8. Write a SQL query to find the actors who never starred in Karan Johars
movie
9. Write a SQL query to find the actor with longest career span
10. Write a SQL query to find the actors who made more movies with a
particular director.
11. Write a SQL query to find the actors who have not released for more than
two years.
12. Write a SQL query to find the difference between the average rating of
movies released before ________ and average rating of the movies after -
_______.
13. Write a SQL query to find the directors who has maximum highest movie
rating.
14. Try to create a table from a csv file which might reduce the data entry
work and say whether it is possible or not in MySql.

If you have completed try to solve it, for which you need to fetch the data from
the website:

Question 1: Can you get all data about movies?

Question 2: How do you get all data about directors?


Question 3: Check how many movies are present in iMDB.

Question 4: Find these 3 directors: James Cameron; Luc Besson ;


John Woo

Question 5: Find all directors with name starting with Steven.

Question 6: Count female directors.

Question 7: Find the name of the 10th first women directors?

Question 8: What are the 3 most popular movies?

Question 9: What are the 3 most bankable movies?

Question 10: What is the most awarded average vote since the
January 1st, 2000?

Question 11: Which movie(s) were directed by Brenda Chapman?

Question 12: Whose director made the most movies?

Question 13: Whose director is the most bankable?

You might also like