Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Record from same table
Message
De
16/07/2007 22:52:01
 
 
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
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01240631
Message ID:
01240913
Vues:
35
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform