DEV Community

Discussion on: Crack the top 40 SQL interview questions

Collapse
 
cess11 profile image
PNS11

PRIMARY KEY isn't restricted to a single column, it can be composite, usually based on two or more foreign key columns. The composite can have its own index.

Collapse
 
educrystal profile image
Crystal Song

Thanks for catching that for me! I went ahead and updated the post.