Re: weighting (the results of) a query ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Peter Galbavy" <peter(dot)galbavy(at)knowtion(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: weighting (the results of) a query ?
Date: 2003-01-07 16:34:11
Message-ID: 13893.1041957251@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Peter Galbavy" <peter(dot)galbavy(at)knowtion(dot)net> writes:
> Not sure - what I want is only one row per real row but ordered as per the
> constants. When you say duplicate-row-elimination do you mean including the
> 'constant' weighting,

Yes, UNION would consider all columns in deciding if two rows are dups.

> What I mean is when an image row has both 'eat static' in the caption and as
> a keyword, I want it returned only once...

I think your query might fail on that requirement regardless, no? At
least I missed how you'd prevent it.

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Galbavy 2003-01-07 16:45:31 Re: weighting (the results of) a query ?
Previous Message Tom Lane 2003-01-07 16:29:48 Re: [SQL] [PERFORM] 7.3.1 index use / performance