Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Theoretical issue - how do you handle this?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01001223
Message ID:
01001237
Views:
19
>Nadya allow me to add my experiences.
>
>If you have a child table related by a foreign key to a parent table, then there *must* be some restriction on how data is inserted, changed, or deleted in these tables.
>
>Well, there isn't. After you've designed and implemented a few dozen real world databases, you might discover that things don't fall nicely into your textbook definitions. This is why RDBMSs provide the flexibility to define foreign keys with and without constraint rules.
>
>I know for lookup table, most of real world databases uses Update (Restricted), Delete (Restricted or Ignore {Sometimes you *do* want the deletion of the parent record to leave orphaned child records}) and Insert (Ignore, don’t care about value, because Sometimes you *do* want to insert child records that are not related to an existing parent record, or everything enter by selecting value from lookup table).
>
>
>Thanks

BTW, where did you take this quote from If you have a child table related by a foreign key to a parent table, then there *must* be some restriction on how data is inserted, changed, or deleted in these tables.
>
>Well, there isn't. After you've designed and implemented a few dozen real world databases, you might discover that things don't fall nicely into your textbook definitions. This is why RDBMSs provide the flexibility to define foreign keys with and without constraint rules.


??

It's kind of insulting when you read it the first time, but after I read it the second time, it becomes funny < g >
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform