Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CrossTab in T-SQL code
Message
 
À
24/08/2007 09:04:20
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
Firebird
Divers
Thread ID:
01250107
Message ID:
01250201
Vues:
12
Hi Cetin

>This code could be converted to your backend's style. In SQL2005 there is PIVOT but even with that first you should do your summing (otherwise PIVOT is just a wrapper for easier coding exploding to a series of sum(iif())).
>The code's inefficiency and pain of the effort to write it is obvious. Getting summed data into VFP and doing crosstabbing there (either with existing genxtab or your own xtabber) or doing that in a stored procedure/function of your backend would be better.

Thanks for the explanation.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform