pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Galbavy <peter.galbavy@knowtion.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: weighting (the results of) a query ?
Date: Tue, 07 Jan 2003 11:34:11 -0500
Message-ID: <13893.1041957251@sss.pgh.pa.us> (raw)
In-Reply-To: <023f01c2b669$6ce39270$4528a8c0@cblan.mblox.com>
References: <001301c2b4a6$f969b360$36bd10ac@walrus>
	<021001c2b666$752c1d60$4528a8c0@cblan.mblox.com>
	<13705.1041956070@sss.pgh.pa.us>
	<023f01c2b669$6ce39270$4528a8c0@cblan.mblox.com>

"Peter Galbavy" <peter.galbavy@knowtion.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



view thread (6+ messages)  latest in thread

Message-ID: <13893.1041957251@sss.pgh.pa.us>
Permalink:  ../13893.1041957251@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13893.1041957251@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, peter.galbavy@knowtion.net
  Subject: Re: weighting (the results of) a query ?
  In-Reply-To: <13893.1041957251@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox