Page 1 of 1

count distinct

Posted: Fri Sep 14, 2001 11:42 am
by sourceuno
Is there a way to get a count of the number of distinct records in a table? I try using the following query but get an error:

select count(distinct(id)) from mytable

count distinct

Posted: Fri Sep 14, 2001 11:47 am
by bart
Not yet (I've wanted this for a long time), but you can use <xtree> to do this pretty quickly.

count distinct

Posted: Fri Sep 14, 2001 3:06 pm
by doran
If you are concerned about avoiding duplicate text content, see the vortex hash function
http://www.thunderstone.com/site/vortexman/node161.html

count distinct

Posted: Tue Sep 25, 2001 3:42 pm
by John
Count distinct will be available in all future versions of Texis.