Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to change columns to rows in SELECT ?
Message
De
19/04/2001 15:35:38
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
How to change columns to rows in SELECT ?
Divers
Thread ID:
00497538
Message ID:
00497538
Vues:
45
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform