pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lew <noone@lewscanon.com>
To: pgsql-sql@postgresql.org
Subject: Re: group by hour + distinct
Date: Fri, 26 Nov 2010 11:07:05 -0500
Message-ID: <icolva$t93$1@news.albasani.net> (raw)
In-Reply-To: <4CEFAB4F.6000109@unipex.it>
References: <4CEF9C66.30100@unipex.it>
	<FC442338870D492A930770CD23660616@marktestcr.marktest.pt>
	<4CEFAB4F.6000109@unipex.it>

Michele Petrazzo - Unipex wrote:
> P.s. Have you some references about the "subquery" keyword? I found only
> the word subquery as "use" (for example: select a from b where id in
> (select id from table)), but not as sql [sic] command.

"subquery" is not an SQL keyword.
<http://www.postgresql.org/docs/9.0/interactive/sql-keywords-appendix.html;

Nor is it a command all by itself.

Reading the documentation might help you:
<http://www.postgresql.org/docs/9.0/interactive/queries-table-expressions.html#QUERIES-SUBQUERIES;
<http://www.postgresql.org/docs/9.0/interactive/sql-expressions.html#SQL-SYNTAX-SCALAR-SUBQUERIES;
<http://www.postgresql.org/docs/9.0/interactive/functions-subquery.html;

Or try:
<http://lmgtfy.com/?q=SQL+subquery;

-- 
Lew



view thread (5+ messages)

Message-ID: <icolva$t93$1@news.albasani.net>
Permalink:  ../icolva$t93$1@news.albasani.net/
Also on:    postgresql.org/message-id/icolva$t93$1@news.albasani.net

 · 

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-sql@postgresql.org
  Cc: noone@lewscanon.com
  Subject: Re: group by hour + distinct
  In-Reply-To: <icolva$t93$1@news.albasani.net>

* 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