Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Primary keys – the basics
Single-column primary keys
Multi-column primary keys
17. Multi-column primary keys in ERD
NOT NULL
Review

Instruction

Fabulous! You're doing great.

Of course, you can also note the information about a multiple column primary key in the ERD diagram, as shown below:

LEAD

Exercise

Try to create a table using the ERD diagram below:

LEAD

Stuck? Here's a hint!

Type:

CREATE TABLE enrollment (
   student_id integer,
   course_id integer,
   start_date date,
   evaluation varchar(64),
   PRIMARY KEY (student_id, course_id, start_date)
);