Exercise 1
Create a Database named
IMDBDownload the SQL file from this link and run the code present in it inside the
IMDBdatabase. (Make sure that the tables are created insideIMDBdatabase only)Write an SQL statement to display all the records from the
moviestableWrite an SQL statement to display the count of the rows in the
moviestable.Write an SQL statement to display all the
genrevalues in thegenretable 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 thegenrevalue is Invalid GenreWrite an SQL statement to delete all the records where
movie_idis 32217 and thegenreis SportWrite 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?