Re: [PERFORM] How to SELECT

2010-03-10 Thread Angayarkanni
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.kretsch...@schollglas.com> wrote: > In response to Angayarkanni : > > Hi, > > > > I am the beginner of pgpsql > > > > > > I need to select

Re: [PERFORM] How to SELECT

2010-03-10 Thread Dave Crooke
Hi there This list is for performance tuning questions related to PostgreSQL ... your question is a general SQL syntax issue. Also, it's not quite clear from your message exactly what you are trying to do - it's better to post example table schemas. At a guess, I think you might want: select 1,

Re: [PERFORM] How to SELECT

2010-03-10 Thread A. Kretschmer
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 va

[PERFORM] How to SELECT

2010-03-10 Thread 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 or when we use COALESCE(is exits v