Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mathematic problem
Message
From
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:
01523074
Views:
91
>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 
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform