pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Igor' Robul' <igor@raduga.dyndns.org>
To: Pgsql Mailing List <pgsql-general@postgresql.org>
Subject: SQL question
Date: Thu, 23 Nov 2000 18:23:01 +0300
Message-ID: <20001123182301.A7557@linux.rainbow> (raw)

Hello, 

For example:
SELECT words.id, files.id FROM words,files WHERE w=$1 and host=$2 and name=$3;

If words table has $1 and files table has $2 and $3 then I'll get
result like
id1 id2
-------
223 235

But if words or files does not have corresponding info then it will
return empty relation.

Is it possible get something like
id1 id2
--------
234 NULL

Thank you for info.

-- 
Igor' Robul', Unix System Administrator & Programmer @ sanatorium "Raduga", 
Sochi, Russia
http://www.brainbench.com/transcript.jsp?pid=304744



view thread (71+ messages)  latest in thread

Message-ID: <20001123182301.A7557@linux.rainbow>
Permalink:  ../20001123182301.A7557@linux.rainbow/
Also on:    postgresql.org/message-id/20001123182301.A7557@linux.rainbow

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: igor@raduga.dyndns.org
  Subject: Re: SQL question
  In-Reply-To: <20001123182301.A7557@linux.rainbow>
  References: <20001123182301.A7557@linux.rainbow>

* 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