Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleted records in a view
Message
From
05/05/2006 06:48:02
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
05/05/2006 06:43:03
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP
Miscellaneous
Thread ID:
01119499
Message ID:
01119524
Views:
18
>>That doesn't work either. The select statement of the view is:
>>
SELECT *, DELETED() as lDeleted FROM <table> etc.
>>Deleted records appear in the view with .F. in the last column. When I run the same select in the command window, deleted records have .T. in the last column.
>
>DELETED() and other XBase functions are not supported in SQL,
>only with single table query some info are returned ( with some reliable risk )
>
>
>In VFP9 is possible to rewrite the SQL with derivate subquery
>
>SELECT ... FROM
>     ( SELECT DELETED() ,... FROM TABLE1 WHERE ... ) T1
>JOIN (SELECT DELETED() ... FROM TABLE2 WHERE ) T2
>
>
>but this lose the ON optimization

Hey Fabio,
Who cares. Can you see a good reason to create a multitable local view (maybe there is a good reason for single table ones that I'm not aware but I suspect that there would be a single benefit of multitable version).
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
Reply
Map
View

Click here to load this message in the networking platform