Topics in File Organization and Indexing

Filter by year

File Organization and Indexing questions

Q55

GATE DA 2024 DAFile Organization and IndexingMSQ2 marks

Report a problem with Q55

What is wrong?
An OTT company is maintaining a large disk-based relational database of different movies with the following schema:

Movie(ID‾\underline{\text{ID}}, CustomerRating)
Genre(ID‾\underline{\text{ID}}, Name)
Movie_Genre(MovieID‾\underline{\text{MovieID}}, GenreID‾\underline{\text{GenreID}})

Consider the following SQL query on the relation database above:
SELECT *
FROM Movie, Genre, Movie_Genre
WHERE
    Movie.CustomerRating > 3.4 AND
    Genre.Name = “Comedy” AND
    Movie_Genre.MovieID = Movie.ID AND
    Movie_Genre.GenreID = Genre.ID;
This SQL query can be sped up using which of the following indexing options?
More than one option can be correct.
Show answer without attempting

Loading the answer…

0/10 correct0 marks

Related topics in Database Management and Warehousing