हिंदी

In a multiplex, movies are screened in different auditoriums. One movie can be shown in more than one auditorium. In order to maintain the record of movies, the multiplex maintains a relational

Advertisements
Advertisements

प्रश्न

In a multiplex, movies are screened in different auditoriums. One movie can be shown in more than one auditorium. In order to maintain the record of movies, the multiplex maintains a relational database consisting of two relations viz. MOVIE and AUDI respectively as shown below:

Movie(Movie_ID, MovieName, ReleaseDate) Audi(AudiNo, Movie_ID, Seats, ScreenType, TicketPrice)

  1. Is it correct to assign Movie_ID as the primary key in the MOVIE relation? If no, then suggest an appropriate primary key.
  2. Is it correct to assign AudiNo as the primary key in the AUDI relation? If no, then suggest an appropriate primary key.
  3. Is there any foreign key in any of these relations?
टिप्पणी लिखिए
Advertisements

उत्तर

  1. Yes because every movie will have its unique id.
  2. Yes, because every auditorium will be assigned a unique id. No two auditoriums will have the same id.
  3. Yes, Movie_ID in the Audi table is foreign because it references the Movie_ID in the Movie table.
shaalaa.com
Keys in a Relational Database
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 8: Database Concepts - Exercise [पृष्ठ १३०]

APPEARS IN

एनसीईआरटी Computer Science [English] Class 12
अध्याय 8 Database Concepts
Exercise | Q 11. | पृष्ठ १३०
एनसीईआरटी Informatics Practices [English] Class 11
अध्याय 7 Database Concepts
Exercise | Q 11. | पृष्ठ १४१
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×