Create A Composite Primary Key
create table plane_tickets (
passenger_id integer references passengers not null,
flight_id integer references flights not null,
confirmation_number varchar(6) not null,
seat_assignment varchar not null,
primary key (passenger_id, flight_id)
);Last updated