Re: [SQL] Using calculated columns as arguments in same SELECT

2006-02-16 Thread Michael Burke
On February 16, 2006 11:07 am, Michael Burke wrote: > Hello, > > I am looking to simplify this query (uses PostGIS, but I have encountered > this scenario with other chains of functions): > -- snip -- Immediately after sending this one, I realized I could do it with a sub-select: gtest=# SELECT

[SQL] Using calculated columns as arguments in same SELECT

2006-02-16 Thread Michael Burke
Hello, I am looking to simplify this query (uses PostGIS, but I have encountered this scenario with other chains of functions): gtest=# SELECT X( SetSRID( Transform( GeomFromText( 'POINT(142512 1020225)', 26910 ), 4326 ), -1) ) as xcoord, Y( SetSRID( Transfo