Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to change columns to rows in SELECT ?
Message
From
19/04/2001 15:35:38
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
How to change columns to rows in SELECT ?
Miscellaneous
Thread ID:
00497538
Message ID:
00497538
Views:
46
My table contains a list of shows with showtimes (see below).
cCode cName cDate1, cDate2, cDate3, cDate4, cDate5, cDate6

I want to know how can I offer in a combobox the list of
dates for a selected show. In other words, I want to transpose
the columns in rows (like below).

for cCode="ABC" the result must be:
cDate1
cDate2
cDate3
cDate4
cDate5
cDate6

What is the best way to do that?
Marc Levesque
La Prairie, Quebec (CANADA)
marc.levesque@videotron.ca
Next
Reply
Map
View

Click here to load this message in the networking platform