So relationships in database is divided into three or four relations.
1. One to one relationships: is like the relation between you and your wife (if you were a christian).
2. One to many: it's like the relation between a mother and her children you only have one mother but your mother may have many children.
3. Many to many: it's like the relationship between the classes and students a class have many students and the students have many classes.
4. Self referencing relationship: This is used when the table needs to reference it self . This actually can also be similar to 'one to many' relationship
No comments:
Post a Comment