Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Record from same table
Message
From
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:
01240913
Views:
34
This message has been marked as the solution to the initial question of the thread.
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;
	into Cursor tmp
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform