Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select statement question...
Message
From
15/05/2009 10:54:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01399790
Message ID:
01400140
Views:
47
>Well, yes.
>I can do that with the orders and order details.
>And I can do that with the invoices and invoice details.
>
>Where I'm stuck is getting info from all four tables at the same time....as I need invoice details AND order details in the same data-set result - along with some stuff from both header-tables too.

You can combine additional table in the same SQL statement. But I would suggest adding one table at a time, this should be clearer, easier to debug, and in some cases much faster to execute.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform