pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: email_daniel_h@yahoo.com.br
Cc: pgsql-sql@postgresql.org
Subject: Re: Help to simplify sample query
Date: Tue, 09 Mar 2004 01:27:33 -0500
Message-ID: <21339.1078813653@sss.pgh.pa.us> (raw)
In-Reply-To: <404D5920.40104@yahoo.com.br>
References: <404D5920.40104@yahoo.com.br>

Daniel Henrique Alves Lima <email_daniel_h@yahoo.com.br> writes:
>     I don't think this is possible, but: Is there a efficient way to 
> compare if the result of a query is a superset of the result of another ?

Perhaps do "SELECT foo EXCEPT SELECT bar" and see if you get anything?

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <21339.1078813653@sss.pgh.pa.us>
Permalink:  ../21339.1078813653@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21339.1078813653@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, email_daniel_h@yahoo.com.br
  Subject: Re: Help to simplify sample query
  In-Reply-To: <21339.1078813653@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