Dirk Lutzebaeck <[EMAIL PROTECTED]> writes: > on 7.0.3 want to COUNT > SELECT DISTINCT a,b FROM t; In 7.1 you could do select count(*) from (select distinct a,b from t) as t1; In 7.0 and before I think you have no choice but to use a temp table. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster
- [SQL] counting distinct rows on more than one column Dirk Lutzebaeck
- RE: [SQL] counting distinct rows on more than one col... Tom Lane
- RE: [SQL] counting distinct rows on more than one col... Michael Ansley
- Re: [SQL] counting distinct rows on more than one col... Michael Fork
- Re: [SQL] counting distinct rows on more than one col... Dirk Lutzebaeck