I need to know to sampling constantly time gap of specific range

In my project, I need show about 6 months amount of time series graph in .net.
Here is task what I want for.

When I use MSSQL,Sampling result coming out when inner join data table with sampling time table(what I want to select).
But, I didn’t find that way to get sampled data except using group by.
Someone has idea?

Hello @zzzjizon,
I’m having trouble understanding what it is that you want to do. Can you please share what your data looks like and what you expect the result to look like? Maybe provide me with some actual data please?
Thank you