Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it crosstab?
Message
De
06/02/2004 07:33:55
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
06/02/2004 07:17:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00874770
Message ID:
00874771
Vues:
7
>HI,
>I have a cursor result as this:
>
>
>cStaff        cMonth          nSum
>----------------------------------
>StaffA        January         1000
>StaffA        Febuary         1500
>StaffA        March           2000
>StaffA        April           4000
>StaffA        May             3300
>StaffB        January         1010
>StaffB        Febuary         1300
>StaffB        March           2300
>StaffB        April           4500
>StaffB        May             3000
>
>
>
>I want my cursor "transform" to this :
>
>
>cStaff   January  Febuary  March  April  May
>---------------------------------------------
>StaffA   1000     1500     2000   4000   3300
>StaffB   1010     1300     2300   4500   3000
>
>
>Any ideas? Can I use Corsstab for this purposes?
>
>Thank you

Yes it's crosstab :)
I'd suggest you to create your own crosstab for this purpose though.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform