Re: rows equal - Mailing list pgsql-sql

From Richard H
Subject Re: rows equal
Date
Msg-id 20010324.1093400@client.archonet.com
Whole thread Raw
In response to rows equal  ("Marios Moutzouris" <mariosm@netactive.co.za>)
List pgsql-sql
On 3/20/01, 7:23:04 PM, Marios Moutzouris <mariosm@netactive.co.za> wrote 
regarding [SQL] rows equal:

> Hello

> I need a sql query to a postgresql database which can tell me whether the
> rows returned ar equal.

> i.e

> -------
> Status
> -------
> Order
> -------
> Collected
> ----------


> This is two columns. Both are not equal.

> Any help?.......without having to write code to fetch the result and go
> through etc etc.

Sorry - don't think so. Unless you've defined a unique index on one or 
more of these columns you'll have to check the contents of the columns. 
If they are never supposed to be the same, define a unique index.

- Richard Huxton


pgsql-sql by date:

Previous
From: Grant
Date:
Subject: Serials.
Next
From: darcy@druid.net (D'Arcy J.M. Cain)
Date:
Subject: Re: Serials.