SQL Language (MOSC)

MOSC Banner

query from vertical to horizontal

edited Jun 6, 2012 4:11AM in SQL Language (MOSC) 4 commentsAnswered
i have this query for example

id item_desc period qty
1 x jan 4
1 x feb 3
1 x mar 2
2 y jan 6
2 y feb 7
2 y mar 4

i want make from this data a query and the result is as:

id item_des jan feb mar
1 x 4 3 2
2 y 6 7 4

thanks

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center