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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How To Transpose Columns To Rows?

simon87Dec 10 2017 — edited Dec 13 2017

Hi,

May someone support me ?

In this query,

SELECT camp.campo

      , sol.id_solicitud

      , monto_solicitud

  FROM solicitud sol

      , campos_documento cd

      , campos camp

WHERE sol.id_documento = cd.id_documento

AND cd.id_campo = camp.id_campo;

The result is this:

campoid_solicitudmonto_solicitud
campo11100
campo21100

How could I move the fields in the following way?

campovalor
campo11
campo2100
This post has been answered by simon87 on Dec 13 2017
Jump to Answer

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 10 2018
Added on Dec 10 2017
5 comments
207 views