Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Include deleted records
Message
From
01/11/2000 09:59:02
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
01/11/2000 09:39:21
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00436636
Message ID:
00436666
Views:
21
>Thanks for the replies.
>
>I have actually found a way around this.
>
>If I SET DELETED OFF before the selected, then run
>
>SELECT table1.*,table2.*;
>FROM table1 LEFT OUTER JOIN table2;
>ON table1.key = table2.key;
>WHERE !DELETED("table1")
>
>It will bring me the non-deleted records from the 1st table and ALL records from the 2nd table.
>
>Thanks
>Kev

Kevin,
Now things differ. This could work w/o alias in where but I wouldn't say it's correct (not sure and might be correct all the time). If you're joining tables then you can't depend on things like deleted(), recno() etc. Instead IMHO take a longer route for safety and select each set individually with nofilter.
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