Skip site navigation (1) Skip section navigation (2)

Re: Can't understand how a query from the documentation works

From: Sergey Samokhin <prikrutil(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Can't understand how a query from the documentation works
Date: 2009-09-09 19:18:41
Message-ID: e42595410909091218l6cf7e929m2dee96eac4ad71d5@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-novice
Hello.

On Tue, Sep 8, 2009 at 11:40 PM, Tom Lane<tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> What will happen (at least conceptually) is that for each row
> of fdt, the whole sub-SELECT will be evaluated using that row's value
> of fdt.c1, producing a list of t2.c1 values.  Then, if the fdt row's
> value of c1 appears in that list, the fdt row will be included in the
> result.

Thanks for the detailed explanation - now I see where my mistake was!

-- 
Sergey Samokhin

In response to

pgsql-novice by date

Next:From: NewpersonDate: 2009-09-10 02:43:56
Subject: How to install postgresql-8.4.1-1-windows.exe by ZIP archive binaries
Previous:From: sylvinhio slyDate: 2009-09-09 17:26:52
Subject: Plpgsql restore command

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group