Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Flip rows & cols using SQL
Message
From
23/10/1999 15:07:04
 
 
To
23/10/1999 12:56:14
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00280431
Message ID:
00280455
Views:
13
>Hi everyone-
>
>I need to flip rows & columns, and some cases make new columns/fields depending on the data. For instance, in a table which has studentid,chargeamount,and chargetype, I need to set up a display in which each charge is listed on the left (1st col) and then chargeamounts for that chargetype are listed across under each student's id.
>
>I've been doing this by setting up different arrays, which requires quite a bit of coding & processing -- is there an easier way using SQL?
>Thanks-
>Carlie

Look at Cross-tab query, you may open file Vfpxtab.prg and read comments there.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform