Skip to content
Advertisement

Oracle SQL query times in one line

I apologize in advance for any formatting issues.

Here is some sample data.

enter image description here

Here is what I would like to produce:

enter image description here

Here is what I get when I use a series of case when statements

enter image description here

Any coding help is much appreciated.

Advertisement

Answer

That is what the PIVOT clause was created for:

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement