Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Record from same table
Message
 
 
To
16/07/2007 22:52:01
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01240631
Message ID:
01240915
Views:
40
>Dear Khubaib,
>Hope this will help
>
>
>tmp =  "csr" + Sys(2015)
>Select id,name,;
>	SUM(iif(year =  2005, no, $0)) As y2005, ;
>	SUM(IIF(year =  2006, no, $0)) As y2006, ;
>	SUM(IIF(year =  2007, no, $0)) As y2007, ;
>	SUM(IIF(year =  2008, no, $0)) As y2008, ;
>	SUM(IIF(year =  2009, no, $0)) As y2009, ;
>	IIF(year =  2010, no, $0) As y2010, ;
>	SUM(no) as total ;
>	from table1 ;
>	GROUP BY 1, 2 ;
>	into Cursor (m.tmp)
>
I look so much like Khubaib, that you mixed us :)

Thanks. Appreciate you trying to help very much.

Congrats on your well deserved solution stars!
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform