pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: nzanella@cs.mun.ca
To: pgsql-general@postgresql.org
Subject: AS operator and subselect result names: PostgreSQL vs. Oracle
Date: 31 Oct 2003 20:44:19 -0800
Message-ID: <b68d2f19.0310312044.3c98da8d@posting.google.com> (raw)

Hello,

I would like to ask the about the following...

PostgreSQL allows tables resulting from subselects to be renamed with
an optional AS keyword whereas Oracle 9 will report an error whenever
a table is renamed with the AS keyword. Furthermore, in PostgreSQL
when the result of a subselect is referenced in an outer select
it is required that the subselect result be named, whereas this
is not true in Oracle. I wonder what standard SQL has to say
about these two issues. In particular:

1. Does standard SQL allow an optional AS keyword for (re/)naming
   tables including those resulting from subselects.

and

2 Why must a subselect whose fields are referenced in an outer query
  be explicitly named in PostgreSQL when it is not necessary in Oracle. 

Thanks,

Neil



view thread (4+ messages)  latest in thread

Message-ID: <b68d2f19.0310312044.3c98da8d@posting.google.com>
Permalink:  ../b68d2f19.0310312044.3c98da8d@posting.google.com/
Also on:    postgresql.org/message-id/b68d2f19.0310312044.3c98da8d@posting.google.com

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-general@postgresql.org
  Cc: nzanella@cs.mun.ca
  Subject: Re: AS operator and subselect result names: PostgreSQL vs. Oracle
  In-Reply-To: <b68d2f19.0310312044.3c98da8d@posting.google.com>

* 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