Exercise 1
- Create a Database named - IMDB
- Download the SQL file from this link and run the code present in it inside the - IMDBdatabase. (Make sure that the tables are created inside- IMDBdatabase only)
- Write an SQL statement to display all the records from the - moviestable
- Write an SQL statement to display the count of the rows in the - moviestable.
- Write an SQL statement to display all the - genrevalues in the- genretable in capital letters.
- Write an SQL statement to display all the records in the genre table that has an - spacein the genre value.
- Write an SQL statement to display all the records in the movies table in the movie names starting with - ##and also- ---
- Write an SQL statement to update all the movie names where the name starts with - ##or also- ---and remove the- ##and- ---
- Write an SQL statement to delete all the records in the - genretable where the- genrevalue is Invalid Genre
- Write an SQL statement to delete all the records where - movie_idis 32217 and the- genreis Sport
- Write an SQL statement to display all the records where domestic earning is greater than 100000 and worldwide earning is less than 9000000 
Last updated
Was this helpful?
