Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subquery in SELECT clause
Message
 
 
To
31/07/2004 00:11:03
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00929817
Message ID:
00929839
Views:
9
>>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform