Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subquery in SELECT clause
Message
 
 
À
31/07/2004 00:11:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Divers
Thread ID:
00929817
Message ID:
00929839
Vues:
8
>>Yes, it can be used to get such result but it would be slower that using IIF() aproch which works in any VFP version.
>
>Thanks. Do you have examples of each method available that you could share? Would appreciate seen them.

Hi Alex,

Here's IIF method.
SELECT id, ;
	SUM(IIF(column_name = "January", value, 0) AS January, ;
	...
	SUM(IIF(column_name = "December", value, 0) AS December ;
FROM mytable ;
GROUP BY id
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform