Link to home
Start Free TrialLog in
Avatar of jorbagw
jorbagw

asked on

oracle: transpose rows to columns

HI,

I have a table that looks like this
EMPLID     COL_NAME     COL_VAL
123              col1                ABC
123              col2                9999
123              col3                Stop!
456              col1                 QQQ
456              col2                 87493
456              col3                 All Done

I need to transpose this to look like
EMPLID       col1           col2        col3
123             ABC           9999       Stop!
456             QQQ          87493     All Done

In the most efficient way possible. All fields are of type varchar
Thanx
ASKER CERTIFIED SOLUTION
Avatar of Lee Wadwell
Lee Wadwell
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial