Click here to Skip to main content
14,739,344 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hellp Guys,
I wanted to do the following:
I have the following table for example:

ID
--
1
2
3
4
5
6
7
8
9
10
11
12

I wanted to make it like the following:

ID_COL1 ID_COL2 ID_COL3 ID_COL4
1 2 3 4
5 6 7 8
9 10 11 12

Can anyone help me onw how to do it as function or query only (DB Level)
Posted
Comments
Rajesh Anuhya 12-Nov-10 4:17am
   
can you elaborate it more..,

1 solution

Your Question not clear.., but it sounds like PIVOT..,

Go through the below link this may helps you

PIVOT in Oracle[^]
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900