How to show out the vertical data
Suppose that I have the data like ETADate around 4 or 5 EtaDate .
Normally the report would show the result like below
ETADate
02/06/2011
05/06/2011
15/06/2011
25/06/2011
But, If I would like to have the report output like below ....
ETADate1 ETADate2 ETADate3 ETADate4 More??¦..
02/06/2011 05/06/2011 15/06/2011 25/06/2011 -- >
How to do that ?
Help me please
Normally the report would show the result like below
ETADate
02/06/2011
05/06/2011
15/06/2011
25/06/2011
But, If I would like to have the report output like below ....
ETADate1 ETADate2 ETADate3 ETADate4 More??¦..
02/06/2011 05/06/2011 15/06/2011 25/06/2011 -- >
How to do that ?
Help me please
Comments
You can get similiar result using DBCross.
Mick
SELECT A.VALUE
,(SELECT FIRST 1 B.ETADATE FROM TABLE B WHERE B.ID = A.ID ORDER BY B.ETADATE) AS ETA1
,(SELECT FIRST 1 SKIP 1 B1.ETADATE FROM TABLE B1 WHERE B1.ID = A.ID ORDER BY B1.ETADATE) AS ETA2
,(SELECT FIRST 1 SKIP 2 B2.ETADATE FROM TABLE B2 WHERE B2.ID = A.ID ORDER BY B2.ETADATE) AS ETA3
//etc.
FROM TABLE A
WHERE A.CONDITION = :SOMETHING
I don't know that there is the vertical band before till you told me. How to work on that ?