Skip to content
Advertisement

Converting a half-hourly data into Quarter-hourly data by taking mean of half-hourly values in SQL?

I have half-hourly (30 min interval) Data Table in SQL (SSMS). I want to convert it to Quarter-hourly (15 min interval) by taking mean/average of the preceding and succeeding values. What SQL query should I run for it?

enter image description here

Advertisement

Answer

Using cross apply to convert a single row to a pair of rows

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