sbbrown9924
Technical User
I am going to be building a graph showing the distribution of wait times in an ER waiting room. The dataset for this graph will come from a query that will count how many patients waited in a given time interval (ie, 20 patients waited less than an hour, 30, 1-2 hours; 15 2-3 hours, etc). I am able to calculate the time interval between the time a patient signs in and the time they are assigned to a bed by using this query.
SELECT *, DateDiff('n',TriageTime, InRoomTime) AS WaitingRoomTime Where....
How would I group and count the number of patients in each time interval (0-1 hour, 1-2 hours, 2-3 hours....)?
SELECT *, DateDiff('n',TriageTime, InRoomTime) AS WaitingRoomTime Where....
How would I group and count the number of patients in each time interval (0-1 hour, 1-2 hours, 2-3 hours....)?