Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crosstab SQL statement from two tables?
Message
De
19/07/2005 12:36:14
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Crosstab SQL statement from two tables?
Versions des environnements
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Divers
Thread ID:
01033907
Message ID:
01033907
Vues:
70
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform