One-to-many relationship
Meaning in databases & SQL, with examples
In databases & SQL, one-to-many relationship means: A link between two tables where one row in the first table can be connected to many rows in the second, but each of those belongs to only one, like a customer and their orders.
In Turkish: bire-çok ilişki, bir-çok ilişkisi
How it is used
The most common relationship in databases. It is built with a foreign key on the 'many' side, for example customer_id in the orders table. Also written 1:N or 1-to-many. ORMs describe the two sides as 'has many' and 'belongs to'.
Example sentences
There is a one-to-many relationship between departments and employees.
To model a one-to-many relationship, put the foreign key on the child table.
Common collocations
- one-to-many relationship between
- 1:N relationship
- parent and child tables
- has many
Related terms
This word in other fields
The same English word can have a different meaning in another field:
More terms: Data Modeling and Normalization
Practise with graded reading
Reading at the right level is the fastest way to make new words stick. Pick free English books by level:
