Thread: rows equal

rows equal

From
"Marios Moutzouris"
Date:
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.

thanks
marios




Re: rows equal

From
Richard H
Date:
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