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 Pivot Rows Into Columns

User_6Q8J8Sep 3 2014 — edited Sep 3 2014

Regularhours   overtime   workhourdate

0                       0                  7/20/2014

8                       2                  7/21/2014

0                       4                  7/22/2014

0                       0                  7/23/2014

0                       0                  7/24/2014

8                       0                  7/25/2014

0                       0                  7/26/2014

Desired out put

                     7/20/2014      7/21/2014      7/22/2014     7/23/2014     7/24/2014     7/25/2014     7/26/2014 

Regular              0                       8                0                    0                        0                 8                      0

Overttime           0                       2                4                    0                       0                 0                       0

the workhourdate  can change based on the user selection of dates. It is always 7 days.  for example it could be between 7/13-7/20 or in this case the user want the report for 7/20-7/26

thank you

Comments

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

Post Details

Locked on Oct 1 2014
Added on Sep 3 2014
2 comments
831 views