Re: subquery in FROM must have an alias

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Ashutosh Chauhan <ashutosh(dot)chauhan(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: subquery in FROM must have an alias
Date: 2008-09-28 11:35:31
Message-ID: 20080928113531.GA4395@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Sep 28, 2008 at 12:52:56AM -0400, Ashutosh Chauhan wrote:
> select a,b
> from (billing.item JOIN (
> select *
> from ( billing.invoice JOIN billing.customer
> on (id_customer_shipped = customer_uid and
> address = 'pgh' ))
> as temp2 ))
> as temp;

change last 2 lines to:
as temp2 )
as temp);

best regards,

depesz

--
Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.com/
jid/gtalk: depesz(at)depesz(dot)com / aim:depeszhdl / skype:depesz_hdl / gg:6749007

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2008-09-28 14:18:56 Re: subquery in FROM must have an alias
Previous Message Ashutosh Chauhan 2008-09-28 04:52:56 subquery in FROM must have an alias