Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connecting tables
Message
From
24/08/2001 03:32:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/08/2001 18:04:06
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00548366
Message ID:
00548507
Views:
8
>Can someone explain to me, how the tables are connecting (primary key with wath, indexes and others) in some database?

Boban,
In its simple form a primary key connects to any other key expression (foreign key). Primary key constitutes the '1' side and foreign key 'many' side. If you connect 2 primary keys than it'd be 1-to-1.
Keep in mind that these are 'persistent' definitions for database and you're never limited to those connections. ie: customer.cust_id (PK) connects to orders.cust_id (FK). Here parent is customer and orders is child. However at times (such as reporting) you might well reverse the relation from orders to customer (not persistent).
If you dont need persistent relations (Referential integrity control) than you might never create them. But IMHO if nothing else they visually help you to see relations between tables in a DBC.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform