<div>Hi all,</div>
<div>I am new to Postgis and was working on the advanced query shown in the manual. When i did the query everything worked well. But I have a problem when querying something like this...</div>
<div> </div>
<div>Table one (ROOMS) with example data (A proper table with spatial ref)</div>
<div> </div>
<div>room_no </div>
<div>101</div>
<div>102</div>
<div>....</div>
<div>Table two (MAINT) with example data(table to get data from)</div>
<div> </div>
<div>room_no       maint_details</div>
<div>101               Fixed bulbs</div>
<div>101               Fixed lheat</div>
<div>.......</div>
<div> </div>
<div>when i do a query like this:</div>
<div>the_geom FROM (SELECT rooms.the_geom AS the_geom, rooms.oid AS oid, maint.maint_details AS maint_details, FROM rooms LEFT JOIN maint ON rooms.room_no = maint.room_no) AS new_table USING UNIQUE oid USING SRID=-1</div>

<div> </div>
<div>it seems to work well on points with just one value. But if there are multiple values in the second table as shown, The first name repeats the number of times it is in the table. is there a way to fix this. I am really new to this please help me
</div>
<div> </div>
<div>Thanks</div>
<div>Kris</div>