Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Recommended Posts

Posted

I am trying to pull out data from our till system as follows:

 

Number of sales between 12pm and 2pm, grouped by the day they happened.

 

I then want to use this to display on a graph in Microsoft Reporting Services, so the results need to be in pairs - the number, and the date in question.

 

Now, my question is, how do I do this grouping? I can do the 'between' part I think

 

WHERE DATEPART(hh,DateColumn) BETWEEN 12 AND 14

 

But the grouping is being a little more elusive, as there will be more than one Day '1' and I don't want these stuck together too.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...