Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mathematic problem
Message
 
À
09/09/2011 05:37:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Divers
Thread ID:
01523071
Message ID:
01523076
Vues:
90
merci Gregory,

c'est beau !
select  iresidentid , count(distinct nsql  ) ;
	from thankUT GROUP BY 1 INTO CURSOR temp
	set
	SELECT temp
	browse
>>hi all,
>>
>>
>>create cusor thankUT ( iresidentid I , nsql I )
>>
>>*first
>>insert into thankUt ( iresidentid  , nsql  ) values ( 1 , 1 )
>>insert into thankUt ( iresidentid  , nsql  ) values ( 1 , 7 )
>>
>>
>>* second
>>insert into thankUt ( iresidentid  , nsql  ) values ( 2 , 14)
>>insert into thankUt ( iresidentid  , nsql  ) values ( 2 , 14 )
>>insert into thankUt ( iresidentid  , nsql  ) values ( 2 , 8 )
>>insert into thankUt ( iresidentid  , nsql  ) values ( 2 , 7 )
>>
>>
>>
>>i want a sql to have 2 in first exemple
>>i want a sql to have 3 in the second exemple
>>
>>thank in advance
>
>select count(distinct nsql  ) ;
>	from thankUT 
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform