results being col wise rather than row wise - Mailing list pgsql-sql

From Hrishikesh Deshmukh
Subject results being col wise rather than row wise
Date
Msg-id 829d7fb60603291708k3449ce68j22ce498d05868e99@mail.gmail.com
Whole thread Raw
Responses Re: results being col wise rather than row wise
List pgsql-sql
HI All,<br /><br /> I have 5 tables which have different columns as shown below, each table has a different case
column,<br/> i want to retrieve sample related information as follows:<br /><br /> pid | xindex | yindex | height Index
|flag | case1 | case 2.....etc<br /><br /> But i get this queer result:<br /><font face="Courier
New,Courier,mono">pid       | xindex | yindex | Height Index | flag |     case<br
/>-------------+--------+--------+-------------+-------------+---------<br/>102234   |    411 |    271 |           9
|          1 |      80<br />102234   |    411 |    271 |           9 |           1 |      83<br />102234   |    411
|   271 |           9 |           1 |      87<br />102234   |    411 |    271 |           9 |           1 |     101<br
/>102234  |    411 |    271 |           9 |           1 |     129<br />102234   |    411 |    271 |           9
|          1 |      91<br />102234   |    411 |    271 |           9 |           1 |   120.3<br /><br /> Why is the
resultin a column wise rather than row wise???!!!!<br /> Could somebody explain why the redundancy with respect to pi,
xindex,yindex, height index, flag but the CORRECT values for the cases but not in the order expected!!!<br /><br /><br
/>Thanks,<br /> Hrishi<br /></font> 

pgsql-sql by date:

Previous
From: Niklas Johansson
Date:
Subject: Re: Ugly group by problem
Next
From: Stephan Szabo
Date:
Subject: Re: results being col wise rather than row wise