pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: The Web Administrator <wwwadmin@wizard.ca>
To: PGsql <pgsql-sql@postgreSQL.org>
Subject: SubQueries
Date: Mon, 13 Jul 1998 21:55:38 -0700
Message-ID: <35AAE4CA.896AF6FE@wizard.ca> (raw)

Aaaargg.. sub queries aren't implemented?
Any quick ideas how to get around this ..
UPDATE table SET time_out='now'
    WHERE time_in=(SELECT max(time_in) FROM table
        WHERE
            account_name='sparky')
    AND account_name='sparky';

--
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Michael - System Administrator              Working in Cheap Canadian
Dollars
Unix Administration - WebSite Hosting - Network Services - Programming
Wizard Internet Services - TechnoWizard Computers - Wizard Tower
TechnoServices
------------------------------------------------------------------------------

(604) 589-0037          Beautiful British Columbia, Canada
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++






view thread (6+ messages)  latest in thread

Message-ID: <35AAE4CA.896AF6FE@wizard.ca>
Permalink:  ../35AAE4CA.896AF6FE@wizard.ca/
Also on:    postgresql.org/message-id/35AAE4CA.896AF6FE@wizard.ca

 · 

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-sql@postgresql.org
  Cc: wwwadmin@wizard.ca
  Subject: Re: SubQueries
  In-Reply-To: <35AAE4CA.896AF6FE@wizard.ca>
  References: <35AAE4CA.896AF6FE@wizard.ca>

* 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