subquery in FROM must have an alias

Поиск
Список
Период
Сортировка
От Ashutosh Chauhan
Тема subquery in FROM must have an alias
Дата
Msg-id 54de02ae0809272152y46732f5ma1e35a1818fe0da2@mail.gmail.com
обсуждение исходный текст
Ответы Re: subquery in FROM must have an alias  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Re: subquery in FROM must have an alias  (hubert depesz lubaczewski <depesz@depesz.com>)
Список pgsql-general
Hi all,

This has been asked before and answered as well.
http://archives.postgresql.org/pgsql-sql/2007-12/msg00002.php but I
still cant figure out why postgres throws this error message even when
I have provided the aliases. My query:

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;

I have two from clauses so I have provided two corresponding alias
names for those two from clauses. But, still I get the error message

ERROR:  subquery in FROM must have an alias
HINT:  For example, FROM (SELECT ...) [AS] foo.

Any help on this will be greatly appreciated. I am using version 8.3.3
running on ubuntu.

Thanks,
Ashutosh

В списке pgsql-general по дате отправления:

Предыдущее
От: Tommy Gildseth
Дата:
Сообщение: Re: Minor bug/inconveniance with restore from backup, using PITR base backup and archived wal files
Следующее
От: Ricardo Pinho
Дата:
Сообщение: GISVM - FOSS4G 2008 Special Edition