Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SQL Select output result formatting

554265Jan 12 2007 — edited Jan 15 2007
Hi

I'm pretty new to SQL and I'm trying to reformat some output I'm getting. Basically I am querying a column and once the value in column A changes I want the data I'm pulling to be displayed in a new column. the output should like below where I have x number of columns of data dependent on the number of different values in column A.

Response Response Response
stringdata stringdata stringdata
stringdata stringdata stringdata
stringdata stringdata stringdata etc..


My current query is quite simple and I'm not sure how to go about modifying it.

SELECT
"JOB_CHECKLIST"."RESPONSE"
FROM
"XSPROD"."JOB_CHECKLIST" "JOB_CHECKLIST",
WHERE
"JOB_CHECKLIST"."JOB_NO" = "JOB_HISTORY"."JOB_NO"

Basically when the value in column job_no changes I want to format the output so that the data in response column is placed in a new column.

Hope this is clear.

Thanks in advance
Emma
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 12 2007
Added on Jan 12 2007
10 comments
718 views