[SQL] Problem with nested left-joins and coalesce

2011-08-07 Thread ai
Hi! I have strange issue with nested left-joins in postgresql... It's hard to explain, but easy to show =) here we are: SELECT * FROM ( SELECT 1 as key1 ) sub1 LEFT JOIN ( SELECT sub3.key3, value2 FROM (

Re: [SQL] Problem with nested left-joins and coalesce

2011-08-08 Thread ai
b4.key5=sub3.key3 ) sub2 ON sub1.key1 = sub2.key3 best regards, alex From: pgsql-sql-ow...@postgresql.org [mailto:pgsql-sql-ow...@postgresql.org] On Behalf Of Carla Sent: Monday, August 08, 2011 10:03 PM To: ai Cc: pgsql-sql@postgresql.org Subject: Re: [SQL] Problem with nested left-joins a

Re: [SQL] [GENERAL] How to Get Column Names from the Table

2010-07-08 Thread AI Rumman
Use: \d tablename On Wed, Jul 7, 2010 at 3:08 PM, venkat wrote: > Dear All, > >How to get Column Names from Table in PostgreSQL. > > Thanks and Regards, > > Venkat >