Consider the table, MOVIEDETAILS given below: 

Table: MOVIE DETAILS

1.jpg

(a) Identify the degree and cardinality of the table. 

Answer

  • Degree: 5 

(T he degree of a table is the number of columns in the given table )

  • Cardinality: 6

(Cardinality of a table is the number of rows in the given table )

 

(b) Which field should be made the primary key? Justify your answer. 

Answer

MOVIEID should be made the primary key as it uniquely identifies each record of the table.

( A primary key is a column in a table which uniquely identifies each row/record in a database table )

 

Slide27.JPG

Slide28.JPG Slide29.JPG Slide30.JPG

Remove Ads
Teachoo · Class 12 Explore Class 12
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh is an IIT Kanpur graduate and has been teaching for 16+ years. At Teachoo, he breaks down Maths, Science and Computer Science into simple steps so students understand concepts deeply and score with confidence.

Many students prefer Teachoo Black for a smooth, ad-free learning experience.