Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
View with left join
Message
 
 
To
23/02/2002 07:12:26
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00623185
Message ID:
00624564
Views:
9
Mark,

>Try your sample when a child table does not have records. That's when LEFT JOIN comes to play.

Sure...if no child, then the child fields will have NULLs in them. You will have to account for that in the interface...or are you saying the view errors out when you try to execute it?

If it doesn't error out, why does it matter what the view comes back with? The NULLs can be dealt with via use of NVL() (you could even use NVL() within the view to make sure no NULLs come back). Once you have the view back you can still add new records or edit existing records and have them write back to the child table.

What about switching all of this to use a simpler one-table parameterized view? As you go through the parent records, refresh the child data by changing a parameter on the child view and REQUERY()ing. Then that child view can be edited or added to, and since you know what parent you are on you can keep all the links in sync...?

Good luck...

JoeK
Previous
Reply
Map
View

Click here to load this message in the networking platform