Search Postgresql Archives

Re: Unique is non unique; no nulls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Razvan Costea-Barlutiu" <cbrazvan@xxxxxxxxxx> writes:

> Hello.
>
> Facts:
> 1. System: Win2003
> 2. Postgres 8.2

Is that just 8.2 or 8.2.x? Which x?

> This has way too many ramifications for me to follow so I do appreciate some
> guidance.

What do the outputs of these queries say?

select count(*),count(distinct suid) from mt;

select suid,count(*) from mt group by suid having count(*) > 1;

-- 
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux