Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mathematic problem
Message
 
 
To
09/09/2011 05:37:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Miscellaneous
Thread ID:
01523071
Message ID:
01523076
Views:
89
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 
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform