Question

Consider the data model below for movies, music, and sound tracks. Note that each movie has a theme song/music in the movie sound track. Answer the questions using the data model described below. Assumption: each movie has a unique theme song. MUSIC SOUNDTRACK MOVIE *Song ID, Directo QriginalSinger Date of Composition Duration

Q5. How many movies have more than 10 songs in their sound track? Provide the title and the director of these movies. Using SQL

0 0
Add a comment Improve this question Transcribed image text
Answer #1

/*Music(SongID*, SongName, MainComposer, OriginalSinger, DateOfComposition, Duration);
Movie(MovieTitle*, M_ReleaseDate*, Movie_Director, M_TotalRevenue);
SoundTrack(*SongID, *MovieTitle, *M_ReleaseDate)

How many movies have more than 10 songs in their sound track? Provide the title and the
director of these movies. Using SQL.*/

SELECT MovieTitle, MovieDirector FROM Music Mu, Movie Mv, SoundTrack ST
WHERE ST.SongID = Mu.SongID
AND Mv.MovieTitle = ST.MovieTitle
AND Mv.M_ReleaseDate = ST.M_ReleaseDate
GROUP BY Mv.MovieTitle, Mv.M_ReleaseDate
HAVING COUNT(*) > 10

Add a comment
Know the answer?
Add Answer to:
Q5. How many movies have more than 10 songs in their sound track? Provide the title...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Problem 1 : Movies ER Model Consider a Database that keeps track of scenes filmed for...

    Problem 1 : Movies ER Model Consider a Database that keeps track of scenes filmed for different movies. A movie uses a screenplay (or story) which is broken down into scenes. The movie will also have the same scenes because it is a movie of that screenplay. Not all screenplays in the database become movies, but every movie is of a particular screenplay. Also, a screenplay is used for only one movie. That is, there are not two different movies...

  • You are a database consultant with Ace Software, Inc., and have been assigned to develop a...

    You are a database consultant with Ace Software, Inc., and have been assigned to develop a database for the Mom and Pop Johnson video store in town. Mom and Pop have been keeping their records of videos and DVDs purchased from distributors and rented to customers in stacks of invoices and piles of rental forms for years. They have finally decided to automate their record keeping with a relational database. You sit down with Mom and Pop to discuss their...

  • This assignment allows students to demonstrate their skills in the area of designing relational databases to...

    This assignment allows students to demonstrate their skills in the area of designing relational databases to satisfy specific business rules and requirements. The deliverables for this assignment include an Entity Relationship Diagram and detailed documentation describing the database design and structure. In this assignment you will be provided with a description of an application (below) to create an entityrelationship diagram (ERD) and design accompanying table layout using sound relational modeling concepts and practices. The relationships between the entities and the...

  • This is about database system. Thank you. Question B1 Create a Crow's Foot ERD with the...

    This is about database system. Thank you. Question B1 Create a Crow's Foot ERD with the business rules described below. Write all appropriate connectivities and cardinalities in the ERD. A music store would like to develop a database to manage information about the CDs, or vinyl collection, the customers and transactions information. It stores the relationships between artists, albums, tracks, customers and transactions. Here is the list of requirements for the database: The collection consists of albums. An album is...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT