मराठी

In a multiplex, movies are screened in different auditoriums. One movie can be shown in more. Is it correct to assign AudiNo as the primary key in the AUDI relation? If no, then -

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)

Is it correct to assign AudiNo as the primary key in the AUDI relation? If no, then suggest an appropriate primary key.

एका वाक्यात उत्तर

उत्तर

Yes, because every auditorium will be assigned a unique id. No two auditoriums will have the same id.

shaalaa.com
Keys in a Relational Database
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×