SQL and Data
Primary Key vs Foreign Key in SQL
What primary and foreign keys are, how they differ, and how a runnable customers-and-orders example shows the database enforcing them.
BitByteNov 13, 20264 min read
What primary and foreign keys are, how they differ, and how a runnable customers-and-orders example shows the database enforcing them.
The 25 SQL questions freshers meet most often, with short answers on keys, joins, NULL, indexes and classic query puzzles.