You are on page 1of 2

Name : I Made Eko Satria Wiguna

NIM : 1808561054

Kelas : A

1. What could be the primary key in a student table?

2. How about candidate key in a student table? Give an example

3. Many authors write more than one book, and more than one author writes some books”.

1. Identify the possible entities based on the scenario above

2. Draw an ERD

4. There are many students enrolled in a course and a specific lecture teaches that
course”. Use any assumptions needed and draw an ERD

Answer:

1. Student id could be the primary key of the table.


2. Candidate key is an attribute or super key that uniquely identifies for a specific event
of the entity. For example, on a student table, it has student id, name, class id and class.
The candidates key could be student id and class id.
3. Many authors write more than one book, and more than one author writes some books
.
1. The entities are Author and Books.
2. ERD
4. Many students enrolled in a course and a specific lecture teach one course.

You might also like