PL/SQL (MOSC)

MOSC Banner

Help needed in pivoting the output

edited Oct 25, 2016 5:00AM in PL/SQL (MOSC) 3 commentsAnswered

Hello All,

Can someone help me out to understand how can i convert desired output from query which is coming in form of rows to columns. I tried Pivoting it, but saying 'non-constant expression is not allowed for pivot|unpivot values' Can we pivot varchar values ?

eg of the issue:

Once the output is generated, it will be in above form, but I want the output in below form. I tried pivot, but didn't work. Can someone help me out.

NOTES_DESC     CHANGE_DATE  USER_NAME  MEMBER   FISCAL_YEAR    FISACL_QUARTER  FISCAL_MONTH  PLANNING_ACCOUNT PRODUCT_LINE  ITEM

Thanks,

Sharath Chander M

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