Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Count Distinct Rows
Sun, Feb 11 2007 7:07 PMPermanent Link

John
Hi.

How would you do something like this?:

SELECT COUNT(DISTINCT uid) AS count FROM table;

Sun, Feb 11 2007 7:55 PMPermanent Link

"Donat Hebert \(Worldsoft\)"
Hi John,

Select Distinct UID
Into "\memory\temp"
from Table;
Select Count(*) as NumRecs
from "\memory\temp";

Then drop temp table ...
PS Try avoiding reserved words for renamed columns (ie Count)

hth.  Donat.

"John" <eydunl@post.olivant.fo> wrote in message
news:42CB94F2-7133-4248-9ED1-DBE01DFFE48C@news.elevatesoft.com...
> Hi.
>
> How would you do something like this?:
>
> SELECT COUNT(DISTINCT uid) AS count FROM table;
>
>

Image