Skip to content
Advertisement

Get query result 15 second interval in Oracle

I have following query to get 15 seconds interval. However I want to show also ‘0’ values even if the result doesn’t have value.

Here is the Query;

The result is;

What i want is this;

What should i change from above query?

Advertisement

Answer

You can use a subquery as follows to generate the list of all dates within the last hour with a 15 seconds interval :

Inserted that in your query :

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