What is a one to one relationship in database?
By Arsal Ahmed   Posted on March-20-2018 487
One-to-One (1-1) relationship is defined as the relationship between two tables where both the tables should be associated with each other based on only one matching row. This relationship can be created using Primary key-Unique foreign key constraints.
In a one-to-one relationship, one record in a table is associated with one and only one record in another table.
For example:
In a school database, each student has only one student ID and each student ID is assigned to only one person.
By Arsal Ahmed   20-Mar-2018 Views 487
Share This with your friend by choosing any social account
You may also read following recent articles
![]() |
What is NLP in AI!
Junaid A 18-Sep-2023 |
![]() |
The Top 10 SEO Audit Tools for Supercharging Your Website's Performance!
MUHAMMAD SALMAN TAHIR 13-Sep-2023 |
![]() |
Common question about OpenAI!
Junaid A 13-Sep-2023 |
![]() |
What is LLMs in AI!
Junaid A 12-Sep-2023 |
![]() |
main types of artificial intelligence!
Junaid A 10-Sep-2023 |
![]() |
sadfgfwdasxdasdadasdasd!
Junaid A 05-Sep-2023 |