Purpose: I work in Hospitality Industry. I want to understand at what time the Restaurant is full and what time it is less busy. I have the opening and closing times, I want to split it 30 minute interval period.
I would really appreciate if you could ease help me.
Thanking you in advance
Table
Check# Open CloseTime 25484 17:34 18:06 25488 18:04 21:22
Output
Check# Open Close Duration 25484 17:34 18:00 0:25 25484 18:00 18:30 0:30 25488 18:08 18:30 0:21 25488 18:30 19:00 0:30 25488 19:00 19:30 0:30 25488 19:30 20:00 0:30 25488 20:00 20:30 0:30 25488 20:30 21:00 0:30 25488 21:00 21:30 0:30
I am new to SQL. I am good at Excel, but due to its limitations i want to use SQL. I just know the basics in SQL. I have tried on the google, but could not find solution to it. All i can see use of Date Keywords, but not the Field name in the code, hence i am unable to use them.