I have a table called Order_Timing with 2 cloumns named StartTime and EndTime as Shown below. I would like to get the difference in minutes and the count.
start time | End Time |
---|---|
2022-03-14 09:28:42.250 | 2022-03-14 09:29:23.693 |
2022-03-14 09:28:42.250 | 2022-03-14 09:30:40.150 |
2022-03-14 09:37:59.577 | 2022-03-14 09:38:04.730 |
2022-03-14 09:38:26.097 | 2022-03-14 09:38:38.583 |
Below is my expected result
Minutes | Count |
---|---|
0 - 1 mins | 1 |
1 - 2 mins | 2 |
2 - 3 mins | 1 |