Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multi-table delete view possible?
Message
From
15/03/2005 19:19:33
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
15/03/2005 16:23:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00996104
Message ID:
00996151
Views:
16
This message has been marked as the solution to the initial question of the thread.
>Hi Everyone,
>
>I have routinely used a two table view to delete a parent record and it's child records. Have used the view designer to do this and it works fine. But have just run into a case where I have a parent table and this table has 4 child tables related to it.
>
>When I tried to work up the view in the view designer, it seems to create it okay (somewhat) - and I used LEFT OUTER JOINS as not all the child tables will always have child records.
>
>Anyhow, could not save the view to try it out. Should I be able to do this in the view designer or do I have to do a hand-coded view? or maybe I have to do 4 different views, one for each child table?
>
>Thanks,
>Albert Gostick

Albert,
My personal suggestion: Never use a view to update/delete/insert more than one base table.

Next simple or complex I suggest to create views in code (and generally include FORCE clause so designer can never open it and screw).
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