One-to-One relationship can be implemented as a single table and rarely as two tables with primary and foreign key relationships.
One-to-Many relationships are implemented by splitting the data into two tables with primary key and foreign key relationships.
Many-to-Many relationships are implemented using a junction table with the keys from both the tables forming the composite primary key of the junction table.
Thursday, June 12, 2008
How to implement one-to-one, one-to-many and many-to-many relationships while designing tables?
Labels:
Interview Questions
Subscribe to:
Post Comments (Atom)
1 comment:
Đặt vé tại phòng vé Aivivu, tham khảo
vé máy bay đi Mỹ tháng nào rẻ nhất
khi nào có chuyến bay từ mỹ về việt nam
các chuyến bay từ nhật về việt nam
chuyến bay từ đức về hà nội hôm nay
khi nào có chuyến bay từ canada về việt nam
đặt vé máy bay từ hàn quốc về việt nam
ve may bay chuyen gia nuoc ngoai
Post a Comment