From: Angayarkanni <kangayarkanni@gmail.com>
To: A. Kretschmer <andreas.kretschmer@schollglas.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: How to SELECT
Date: Thu, 11 Mar 2010 12:53:26 +0530
Message-ID: <2a77004c1003102323t6b5e5b98y183fa386f7c978fe@mail.gmail.com> (raw)
In-Reply-To: <20100311071417.GB1035@a-kretschmer.de>
References: <2a77004c1003102256l24af41e5ueab35874f5320ffa@mail.gmail.com>
<20100311071417.GB1035@a-kretschmer.de>
Yes I got Yaar
Thanks a lot !!! (Dave Crooke,A. Kretschmer )
Regards,
Angayarkanni Kajendran
On Thu, Mar 11, 2010 at 12:44 PM, A. Kretschmer <
andreas.kretschmer@schollglas.com> wrote:
> In response to Angayarkanni :
> > Hi,
> >
> > I am the beginner of pgpsql
> >
> >
> > I need to select from two tables say T1,T2 by UNION
> >
> > when the value is from T1 the output should by a 1 and
> > when the value from T2 the out put should be 2
> >
> > when T1 Hits values should be 1 and when T2 hits the value should be 2
>
> select 'table 1' as table, * from t1 union all select 'table 2', * from t2;
>
>
> Regards, Andreas
> --
> Andreas Kretschmer
> Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
> GnuPG: 0x31720C99, 1006 CCB4 A326 1D42 6431 2EB0 389D 1DC2 3172 0C99
>
> --
> Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-performance
>
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-performance@postgresql.org
Cc: kangayarkanni@gmail.com, andreas.kretschmer@schollglas.com
Subject: Re: How to SELECT
In-Reply-To: <2a77004c1003102323t6b5e5b98y183fa386f7c978fe@mail.gmail.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