7. In another class having 2 sections, the two respective class representatives have prepared 2 separate Sports Preferences tables, as shown below: Sports preference of section 1 (arranged on roll number column)
Sports preference of section 2 (arranged on Sports name column, and column order is also different)
Are the states of both the relations equivalent?
Ans: Yes, the states of both the relations are equivalent because current state of both the relations is 5 and structure of both the relations is also same.
11. 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) a) Is it correct to assign Movie_ID as the primary key in the MOVIE relation? If no, then suggest an appropriate primary key. Ans: Yes b) Is it correct to assign AudiNo as the primary key in the AUDI relation? If no, then suggest appropriate primary key. Ans: Yes c) Is there any foreign key in any of these relations? Ans: Yes Movie_ID in Audi relation is Foreign key.
(13) For the above given database STUDENT-PROJECT, can we perform the following operations? (a) Insert a student record with missing roll number value. Ans: Yes (b) Insert a student record with missing registration number value. Ans: No (c) Insert a project detail without submission-date. Ans: Yes (d) Insert a record with registration ID IP-101-19 and ProjectNo 206 in table PROJECT-ASSIGNED. Ans: No