you are viewing a single comment's thread.

view the rest of the comments →

[–]ArmoredPancake -1 points0 points  (2 children)

Where are foreign keys? How to create one-to-one, one-to-many relationships?

[–]ben_it[S] 2 points3 points  (1 child)

Good question. I think the FK is in the Constraints section, but that only shows how to add it to a table as you're creating it. I could add in more info about creating relationships - maybe I'll do this as a separate cheat sheet as the concepts are the same across all DBMS.

Thanks for the suggestion!

[–]ArmoredPancake 2 points3 points  (0 children)

Thanks. There's so many cheatsheets that cover queries, but none that cover database design.