Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Counting unique entries
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01242470
Message ID:
01242472
Views:
9
This message has been marked as the solution to the initial question of the thread.
Try
...count(DISTINCT linka)...
>i have a query that give me a flat file
>
>sele * from table 1 left outer join table2 on linka = linkb
>
>the problem is that i have a unique record id in table2 and in table1 linka acts as the unique id. What i need to do is count the unique instances of linka, the count of the unique id in table2 works fine. the select i am using goes like this
>
>sele *, count(linka) as num_of_trans, count(table2_uid) as num_of _lines
>
>both are giving the same result but i need num_of_trans to be the number of entries selected out of table1. any help much appreciated
>~M
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform