Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SPT - multiple SELECTs with single result set
Message
From
07/07/2006 16:14:21
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01134421
Message ID:
01134572
Views:
24
Hi Kevin,

I am not free to assume that I will be able to add/update stored procedures on client sites. This is not for an in-house system, but rather for one sold broadly.

I'm hoping to find that the "derived tables" or "temp tables" can be specified through SPT and that the final table of interest can be somehow designated as the single one to return.

It *may* be possible to make one huge SELECT statement, but I'd like to maintain some degree of readability, which is nicely afforded using multiple SELECTs.

cheers

>Hi, Jim,
>
>At the risk of repetition - if you are able to use stored procedures (i.e. no database restrictions), you really should do so.
>
>You can use derived tables, or table variables/temp tables to produce the result sets that lead to your final result set.
>
>I haven't used SPT in a little while....but I would *think* (but not positive) that the only way to get back one result set via SPT, is if you can pull off one long statement used derived tables, or subqueries, etc to get the results you want.
>
>
>Kevin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform