Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crosstab SQL statement from two tables?
Message
From
19/07/2005 12:36:14
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Crosstab SQL statement from two tables?
Environment versions
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01033907
Message ID:
01033907
Views:
71
Given the following data structure and relationship, is there a SQL statement that will allow me to extract a crosstab of the QTY field?

Table 1.

batchid
bincount
variety

Table 2.

batchid
descrip
qty

The tables are related on batchid.

The desired output format would have a column for each instance of a descrip while summing the qty for that descrip.

Thank you for any pointers.

Andrew
On a CLEAR day you can see forever.
Next
Reply
Map
View

Click here to load this message in the networking platform