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!

SQL help me (Pivot ?)

gastonlopez500-JavaNetMar 3 2020 — edited Mar 3 2020

Hi !, I need help with PIVOT (I think the solution is with pivot, but I'm not sure)

Y Have the next table

Name            Date                 Value

AAA              1-1-2020              10

AAA              2-1-2020              20

BBB              1-1-2020              40

CCC             1-1-2020              80

CCC             3-1-2020              30

CCC             4-1-2020              50

And I need get this:

                1-1-2020     2-1-2020      3-1-2020       4-1-2020

AAA               10                20

BBB               40

CCC              80                                     30                40

If anyone can help me, I would be very grateful

Comments

Processing

Post Details

Added on Mar 3 2020
5 comments
170 views