Counting Number of calls Occurring at the same time (Concurrent)

Hi All,
Thanks for the help in advance.  I have a T-SQL problem I’m not sure how to solve.  I have a table which holds calls.  The table gives a start time and a booked duration time which I can use to create a booked end time.
I would like to count the number of concurrent number of calls in 15 minute periods for a specific date range.  In other words – I could like to count the number of calls which are scheduled to occur at the same 15 minute time periods.
To obtain the 15 minute periods I can join to a table we have specifically for this (a time look up table) so I the Call Start and Call End to the nearest 15 min slot.
The base data looks like this (CallID is unique):
I would like the results set to give a list of 15 min time periods (in DATETIME) with a count of Calls occurring in the time period.
Here's a mockup in Excel:
Can anyone give a good solution.  I suspect a CTE would be used – but I’m not sure how.
Many Thanks,
UnoT

Try this on:
DECLARE @CallsSample TABLE (CallID bigint NOT NULL, call_datetime smalldatetime NOT NULL, booked_duration int NOT NULL, BookedCallEnd smalldatetime NULL, Start_Qtr_Hr_15_Min time(7) NOT NULL, End_Qtr_Hr_15_Min time(7) NOT NULL)
INSERT @CallsSample (CallID, call_datetime, booked_duration, BookedCallEnd, Start_Qtr_Hr_15_Min, End_Qtr_Hr_15_Min) VALUES
(3487817, CAST(0xA460001E AS SmallDateTime), 90, CAST(0xA4600078 AS SmallDateTime), CAST(0x070034E230040000 AS Time), CAST(0x0700D088C3100000 AS Time)),(6177710, CAST(0xA460003C AS SmallDateTime), 115, CAST(0xA46000AF AS SmallDateTime), CAST(0x070068C461080000 AS Time), CAST(0x07001EDC0C170000 AS Time)),(4059343, CAST(0xA460004B AS SmallDateTime), 60, CAST(0xA4600087 AS SmallDateTime), CAST(0x070082357A0A0000 AS Time), CAST(0x0700EAF9DB120000 AS Time)),(60817427, CAST(0xA4600087 AS SmallDateTime), 30, CAST(0xA46000A5 AS SmallDateTime), CAST(0x0700EAF9DB120000 AS Time), CAST(0x07001EDC0C170000 AS Time)),(6689941, CAST(0xA4600096 AS SmallDateTime), 60, CAST(0xA46000D2 AS SmallDateTime), CAST(0x0700046BF4140000 AS Time), CAST(0x07006C2F561D0000 AS Time)),(10587832, CAST(0xA4600096 AS SmallDateTime), 60, CAST(0xA46000D2 AS SmallDateTime), CAST(0x0700046BF4140000 AS Time), CAST(0x07006C2F561D0000 AS Time)),(1775751, CAST(0xA46000F0 AS SmallDateTime), 720, CAST(0xA46003C0 AS SmallDateTime), CAST(0x0700A01187210000 AS Time), CAST(0x070080461C860000 AS Time)),(4492298, CAST(0xA46000F0 AS SmallDateTime), 30, CAST(0xA460010E AS SmallDateTime), CAST(0x0700A01187210000 AS Time), CAST(0x0700D4F3B7250000 AS Time)),(10033683, CAST(0xA4600104 AS SmallDateTime), 45, CAST(0xA4600131 AS SmallDateTime), CAST(0x0700BA829F230000 AS Time), CAST(0x070008D6E8290000 AS Time)),(3073339, CAST(0xA460012C AS SmallDateTime), 0, CAST(0xA460012C AS SmallDateTime), CAST(0x070008D6E8290000 AS Time), CAST(0x070008D6E8290000 AS Time)),(11211077, CAST(0xA460014A AS SmallDateTime), 30, CAST(0xA4600168 AS SmallDateTime), CAST(0x07003CB8192E0000 AS Time), CAST(0x0700709A4A320000 AS Time)),(95075608, CAST(0xA4600168 AS SmallDateTime), 20, CAST(0xA460017C AS SmallDateTime), CAST(0x0700709A4A320000 AS Time), CAST(0x07008A0B63340000 AS Time)),(10569182, CAST(0xA4600168 AS SmallDateTime), 60, CAST(0xA46001A4 AS SmallDateTime), CAST(0x0700709A4A320000 AS Time), CAST(0x0700D85EAC3A0000 AS Time)),(87260179, CAST(0xA4600168 AS SmallDateTime), 60, CAST(0xA46001A4 AS SmallDateTime), CAST(0x0700709A4A320000 AS Time), CAST(0x0700D85EAC3A0000 AS Time)),(60818683, CAST(0xA4600177 AS SmallDateTime), 30, CAST(0xA4600195 AS SmallDateTime), CAST(0x07008A0B63340000 AS Time), CAST(0x0700BEED93380000 AS Time)),(10366434, CAST(0xA460017C AS SmallDateTime), 5, CAST(0xA4600181 AS SmallDateTime), CAST(0x07008A0B63340000 AS Time), CAST(0x07008A0B63340000 AS Time)),(57064108, CAST(0xA460019F AS SmallDateTime), 45, CAST(0xA46001CC AS SmallDateTime), CAST(0x0700BEED93380000 AS Time), CAST(0x07000C41DD3E0000 AS Time)),(2257193, CAST(0xA46001A4 AS SmallDateTime), 180, CAST(0xA4600258 AS SmallDateTime), CAST(0x0700D85EAC3A0000 AS Time), CAST(0x070010ACD1530000 AS Time)),(3842940, CAST(0xA46001A4 AS SmallDateTime), 90, CAST(0xA46001FE AS SmallDateTime), CAST(0x0700D85EAC3A0000 AS Time), CAST(0x070074053F470000 AS Time)),(4407600, CAST(0xA46001A4 AS SmallDateTime), 60, CAST(0xA46001E0 AS SmallDateTime), CAST(0x0700D85EAC3A0000 AS Time), CAST(0x070040230E430000 AS Time)),(6815326, CAST(0xA46001A4 AS SmallDateTime), 90, CAST(0xA46001FE AS SmallDateTime), CAST(0x0700D85EAC3A0000 AS Time), CAST(0x070074053F470000 AS Time)),(6977921, CAST(0xA46001A4 AS SmallDateTime), 45, CAST(0xA46001D1 AS SmallDateTime), CAST(0x0700D85EAC3A0000 AS Time), CAST(0x070026B2F5400000 AS Time)),(8265287, CAST(0xA46001A4 AS SmallDateTime), 150, CAST(0xA460023A AS SmallDateTime), CAST(0x0700D85EAC3A0000 AS Time), CAST(0x0700DCC9A04F0000 AS Time)),(51019423, CAST(0xA46001A4 AS SmallDateTime), 12, CAST(0xA46001B0 AS SmallDateTime), CAST(0x0700D85EAC3A0000 AS Time), CAST(0x0700D85EAC3A0000 AS Time)),(53753674, CAST(0xA46001A4 AS SmallDateTime), 60, CAST(0xA46001E0 AS SmallDateTime), CAST(0x0700D85EAC3A0000 AS Time), CAST(0x070040230E430000 AS Time)),(55205083, CAST(0xA46001A4 AS SmallDateTime), 60, CAST(0xA46001E0 AS SmallDateTime), CAST(0x0700D85EAC3A0000 AS Time), CAST(0x070040230E430000 AS Time)),(70980359, CAST(0xA46001A4 AS SmallDateTime), 60, CAST(0xA46001E0 AS SmallDateTime), CAST(0x0700D85EAC3A0000 AS Time), CAST(0x070040230E430000 AS Time)),(79589562, CAST(0xA46001A4 AS SmallDateTime), 60, CAST(0xA46001E0 AS SmallDateTime), CAST(0x0700D85EAC3A0000 AS Time), CAST(0x070040230E430000 AS Time)),(84884442, CAST(0xA46001A4 AS SmallDateTime), 120, CAST(0xA460021C AS SmallDateTime), CAST(0x0700D85EAC3A0000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(34352531, CAST(0xA46001AE AS SmallDateTime), 30, CAST(0xA46001CC AS SmallDateTime), CAST(0x0700D85EAC3A0000 AS Time), CAST(0x07000C41DD3E0000 AS Time)),(51675477, CAST(0xA46001B3 AS SmallDateTime), 60, CAST(0xA46001EF AS SmallDateTime), CAST(0x0700F2CFC43C0000 AS Time), CAST(0x07005A9426450000 AS Time)),(57128114, CAST(0xA46001B3 AS SmallDateTime), 45, CAST(0xA46001E0 AS SmallDateTime), CAST(0x0700F2CFC43C0000 AS Time), CAST(0x070040230E430000 AS Time)),(60819106, CAST(0xA46001B3 AS SmallDateTime), 30, CAST(0xA46001D1 AS SmallDateTime), CAST(0x0700F2CFC43C0000 AS Time), CAST(0x070026B2F5400000 AS Time)),(62155430, CAST(0xA46001B3 AS SmallDateTime), 44, CAST(0xA46001DF AS SmallDateTime), CAST(0x0700F2CFC43C0000 AS Time), CAST(0x070026B2F5400000 AS Time)),(25999755, CAST(0xA46001B8 AS SmallDateTime), 125, CAST(0xA4600235 AS SmallDateTime), CAST(0x0700F2CFC43C0000 AS Time), CAST(0x0700C258884D0000 AS Time)),(26122354, CAST(0xA46001B8 AS SmallDateTime), 125, CAST(0xA4600235 AS SmallDateTime), CAST(0x0700F2CFC43C0000 AS Time), CAST(0x0700C258884D0000 AS Time)),(27954520, CAST(0xA46001B8 AS SmallDateTime), 125, CAST(0xA4600235 AS SmallDateTime), CAST(0x0700F2CFC43C0000 AS Time), CAST(0x0700C258884D0000 AS Time)),
(96547161, CAST(0xA46001C2 AS SmallDateTime), 60, CAST(0xA46001FE AS SmallDateTime), CAST(0x07000C41DD3E0000 AS Time), CAST(0x070074053F470000 AS Time)),(1288784, CAST(0xA46001C2 AS SmallDateTime), 90, CAST(0xA460021C AS SmallDateTime), CAST(0x07000C41DD3E0000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(6852900, CAST(0xA46001C2 AS SmallDateTime), 60, CAST(0xA46001FE AS SmallDateTime), CAST(0x07000C41DD3E0000 AS Time), CAST(0x070074053F470000 AS Time)),(8159548, CAST(0xA46001C2 AS SmallDateTime), 90, CAST(0xA460021C AS SmallDateTime), CAST(0x07000C41DD3E0000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(10490505, CAST(0xA46001C2 AS SmallDateTime), 90, CAST(0xA460021C AS SmallDateTime), CAST(0x07000C41DD3E0000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(11106751, CAST(0xA46001C2 AS SmallDateTime), 15, CAST(0xA46001D1 AS SmallDateTime), CAST(0x07000C41DD3E0000 AS Time), CAST(0x070026B2F5400000 AS Time)),(32223105, CAST(0xA46001C2 AS SmallDateTime), 60, CAST(0xA46001FE AS SmallDateTime), CAST(0x07000C41DD3E0000 AS Time), CAST(0x070074053F470000 AS Time)),(8798082, CAST(0xA46001C2 AS SmallDateTime), 60, CAST(0xA46001FE AS SmallDateTime), CAST(0x07000C41DD3E0000 AS Time), CAST(0x070074053F470000 AS Time)),(20803494, CAST(0xA46001C2 AS SmallDateTime), 300, CAST(0xA46002EE AS SmallDateTime), CAST(0x07000C41DD3E0000 AS Time), CAST(0x07001417C6680000 AS Time)),(10586951, CAST(0xA46001D1 AS SmallDateTime), 60, CAST(0xA460020D AS SmallDateTime), CAST(0x070026B2F5400000 AS Time), CAST(0x07008E7657490000 AS Time)),(94186519, CAST(0xA46001E0 AS SmallDateTime), 120, CAST(0xA4600258 AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x070010ACD1530000 AS Time)),(98317405, CAST(0xA46001E0 AS SmallDateTime), 60, CAST(0xA460021C AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(98683578, CAST(0xA46001E0 AS SmallDateTime), 45, CAST(0xA460020D AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x07008E7657490000 AS Time)),(99071917, CAST(0xA46001E0 AS SmallDateTime), 30, CAST(0xA46001FE AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x070074053F470000 AS Time)),(2740737, CAST(0xA46001E0 AS SmallDateTime), 60, CAST(0xA460021C AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(4384114, CAST(0xA46001E0 AS SmallDateTime), 60, CAST(0xA460021C AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(7996107, CAST(0xA46001E0 AS SmallDateTime), 60, CAST(0xA460021C AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(8294223, CAST(0xA46001E0 AS SmallDateTime), 90, CAST(0xA460023A AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x0700DCC9A04F0000 AS Time)),(9164073, CAST(0xA46001E0 AS SmallDateTime), 90, CAST(0xA460023A AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x0700DCC9A04F0000 AS Time)),(9443787, CAST(0xA46001E0 AS SmallDateTime), 480, CAST(0xA46003C0 AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x070080461C860000 AS Time)),(9921813, CAST(0xA46001E0 AS SmallDateTime), 60, CAST(0xA460021C AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(10449493, CAST(0xA46001E0 AS SmallDateTime), 60, CAST(0xA460021C AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(10450055, CAST(0xA46001E0 AS SmallDateTime), 60, CAST(0xA460021C AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(10450221, CAST(0xA46001E0 AS SmallDateTime), 60, CAST(0xA460021C AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(10450559, CAST(0xA46001E0 AS SmallDateTime), 60, CAST(0xA460021C AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(10450836, CAST(0xA46001E0 AS SmallDateTime), 60, CAST(0xA460021C AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(10451107, CAST(0xA46001E0 AS SmallDateTime), 60, CAST(0xA460021C AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(10451347, CAST(0xA46001E0 AS SmallDateTime), 60, CAST(0xA460021C AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(10451597, CAST(0xA46001E0 AS SmallDateTime), 60, CAST(0xA460021C AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(10689864, CAST(0xA46001E0 AS SmallDateTime), 60, CAST(0xA460021C AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(11334051, CAST(0xA46001E0 AS SmallDateTime), 60, CAST(0xA460021C AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(11364433, CAST(0xA46001E0 AS SmallDateTime), 60, CAST(0xA460021C AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(45101155, CAST(0xA46001E0 AS SmallDateTime), 60, CAST(0xA460021C AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(59007149, CAST(0xA46001E0 AS SmallDateTime), 30, CAST(0xA46001FE AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x070074053F470000 AS Time)),(61545449, CAST(0xA46001E0 AS SmallDateTime), 60, CAST(0xA460021C AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(85739178, CAST(0xA46001E0 AS SmallDateTime), 60, CAST(0xA460021C AS SmallDateTime), CAST(0x070040230E430000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(1494995, CAST(0xA46001EF AS SmallDateTime), 30, CAST(0xA460020D AS SmallDateTime), CAST(0x07005A9426450000 AS Time), CAST(0x07008E7657490000 AS Time)),
(4573716, CAST(0xA46001EF AS SmallDateTime), 5, CAST(0xA46001F4 AS SmallDateTime), CAST(0x07005A9426450000 AS Time), CAST(0x07005A9426450000 AS Time)),(10517748, CAST(0xA46001EF AS SmallDateTime), 10, CAST(0xA46001F9 AS SmallDateTime), CAST(0x07005A9426450000 AS Time), CAST(0x07005A9426450000 AS Time)),(11319350, CAST(0xA46001EF AS SmallDateTime), 60, CAST(0xA460022B AS SmallDateTime), CAST(0x07005A9426450000 AS Time), CAST(0x0700C258884D0000 AS Time)),(60819508, CAST(0xA46001EF AS SmallDateTime), 30, CAST(0xA460020D AS SmallDateTime), CAST(0x07005A9426450000 AS Time), CAST(0x07008E7657490000 AS Time)),(80192111, CAST(0xA46001EF AS SmallDateTime), 60, CAST(0xA460022B AS SmallDateTime), CAST(0x07005A9426450000 AS Time), CAST(0x0700C258884D0000 AS Time)),(63151763, CAST(0xA46001F4 AS SmallDateTime), 720, CAST(0xA46004C4 AS SmallDateTime), CAST(0x07005A9426450000 AS Time), CAST(0x07003AC9BBA90000 AS Time)),(97681254, CAST(0xA46001FE AS SmallDateTime), 30, CAST(0xA460021C AS SmallDateTime), CAST(0x070074053F470000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(1279946, CAST(0xA46001FE AS SmallDateTime), 90, CAST(0xA4600258 AS SmallDateTime), CAST(0x070074053F470000 AS Time), CAST(0x070010ACD1530000 AS Time)),(2451549, CAST(0xA46001FE AS SmallDateTime), 30, CAST(0xA460021C AS SmallDateTime), CAST(0x070074053F470000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(2992861, CAST(0xA46001FE AS SmallDateTime), 30, CAST(0xA460021C AS SmallDateTime), CAST(0x070074053F470000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(23975539, CAST(0xA46001FE AS SmallDateTime), 30, CAST(0xA460021C AS SmallDateTime), CAST(0x070074053F470000 AS Time), CAST(0x0700A8E76F4B0000 AS Time)),(7116577, CAST(0xA46001FE AS SmallDateTime), 90, CAST(0xA4600258 AS SmallDateTime), CAST(0x070074053F470000 AS Time), CAST(0x070010ACD1530000 AS Time)),(9151341, CAST(0xA46001FE AS SmallDateTime), 60, CAST(0xA460023A AS SmallDateTime), CAST(0x070074053F470000 AS Time), CAST(0x0700DCC9A04F0000 AS Time)),(9190403, CAST(0xA46001FE AS SmallDateTime), 60, CAST(0xA460023A AS SmallDateTime), CAST(0x070074053F470000 AS Time), CAST(0x0700DCC9A04F0000 AS Time)),(9535042, CAST(0xA46001FE AS SmallDateTime), 60, CAST(0xA460023A AS SmallDateTime), CAST(0x070074053F470000 AS Time), CAST(0x0700DCC9A04F0000 AS Time)),(9919911, CAST(0xA46001FE AS SmallDateTime), 240, CAST(0xA46002EE AS SmallDateTime), CAST(0x070074053F470000 AS Time), CAST(0x07001417C6680000 AS Time)),(10565039, CAST(0xA46001FE AS SmallDateTime), 60, CAST(0xA460023A AS SmallDateTime), CAST(0x070074053F470000 AS Time), CAST(0x0700DCC9A04F0000 AS Time)),(11332503, CAST(0xA46001FE AS SmallDateTime), 60, CAST(0xA460023A AS SmallDateTime), CAST(0x070074053F470000 AS Time), CAST(0x0700DCC9A04F0000 AS Time)),(11336945, CAST(0xA46001FE AS SmallDateTime), 60, CAST(0xA460023A AS SmallDateTime), CAST(0x070074053F470000 AS Time), CAST(0x0700DCC9A04F0000 AS Time)),(11340274, CAST(0xA46001FE AS SmallDateTime), 60, CAST(0xA460023A AS SmallDateTime), CAST(0x070074053F470000 AS Time), CAST(0x0700DCC9A04F0000 AS Time)),(41961532, CAST(0xA46001FE AS SmallDateTime), 60, CAST(0xA460023A AS SmallDateTime), CAST(0x070074053F470000 AS Time), CAST(0x0700DCC9A04F0000 AS Time)),(61162342, CAST(0xA46001FE AS SmallDateTime), 45, CAST(0xA460022B AS SmallDateTime), CAST(0x070074053F470000 AS Time), CAST(0x0700C258884D0000 AS Time)),(61502310, CAST(0xA46001FE AS SmallDateTime), 20, CAST(0xA4600212 AS SmallDateTime), CAST(0x070074053F470000 AS Time), CAST(0x07008E7657490000 AS Time)),(63560086, CAST(0xA46001FE AS SmallDateTime), 100, CAST(0xA4600262 AS SmallDateTime), CAST(0x070074053F470000 AS Time), CAST(0x070010ACD1530000 AS Time)),(67801679, CAST(0xA46001FE AS SmallDateTime), 60, CAST(0xA460023A AS SmallDateTime), CAST(0x070074053F470000 AS Time), CAST(0x0700DCC9A04F0000 AS Time)),(69045173, CAST(0xA46001FE AS SmallDateTime), 30, CAST(0xA460021C AS SmallDateTime), CAST(0x070074053F470000 AS Time), CAST(0x0700A8E76F4B0000 AS Time))
DECLARE @times TABLE (start_qtr_hr_15_min TIME)INSERT INTO @times (start_qtr_hr_15_min) VALUES
('00:30:00.0000000'),('01:00:00.0000000'),('01:15:00.0000000'),('02:00:00.0000000'),('02:15:00.0000000'),('02:30:00.0000000'),('02:45:00.0000000'),('03:30:00.0000000'),('04:00:00.0000000'),('04:15:00.0000000'),('04:30:00.0000000'),
('05:00:00.0000000'),('05:30:00.0000000'),('06:00:00.0000000'),('06:15:00.0000000'),('06:45:00.0000000'),('07:00:00.0000000'),('07:15:00.0000000'),('07:30:00.0000000'),('07:45:00.0000000'),('08:00:00.0000000'),('08:15:00.0000000'),
('08:30:00.0000000'),('08:45:00.0000000'),('09:00:00.0000000'),('09:15:00.0000000'),('09:30:00.0000000'),('10:00:00.0000000'),('12:30:00.0000000'),('16:00:00.0000000'),('20:15:00.0000000')
SELECT COUNT(DISTINCT c.callID), c.Start_Qtr_Hr_15_Min
FROM @callsSample c
INNER JOIN @times t
ON t.start_qtr_hr_15_min BETWEEN c.Start_Qtr_Hr_15_Min AND c.End_Qtr_Hr_15_Min
GROUP BY c.Start_Qtr_Hr_15_Min
Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.

Similar Messages

  • I'm using same icloud and same apple ID on two iphones. Now i get calls from same number on both iphones at the same time. How to turn off that?

    I'm using same icloud and same apple ID on two iphones. Now i get calls from same number on both iphones at the same time. How to turn off that?

    Apple ID's are not device specific, so when you changed it on the iPad 2 it changed it on the iPhone 4 as well, since it's the same account still. What you need to do is create a second Apple ID (so you'll have two accounts, one for iPhone 4 and a seperate one for iPad 2).
    To create a new Apple ID on your iPad 2:
    1) Go into Settings > Store.
    2) If you are already signed in, tap your Apple ID on the screen and you will be given a few options, one of which is to sign out of your account.
    3) After you sign out, now click the "Sign in" button.
    4) Tap "Create New Apple ID" and follow the instructions on-screen.

  • My Ipad 2 external speakers does not work and headphones has popping sound. This all occured at the same time as my Iphone and Ipod headphones only played mono (no, the "mono" option is not on). How can there be audio issue for all these devices?

    My IPad 2 external speaker does not work and the original headphones have popping sound when used. This all occurred at the same time as my IPhone and IPod headphones only plays mono (and no, the "mono" option is not on) with the original headphones, as well as, other headphones tested.  How can there be audio issue for all these devices at the same time?
    As you may have noted from the list of Apple devices I own, I believed in the Apple and the products it was producing; but it is hard to believe from my experience and the other voices within the Apple Community that we are all experiencing the same hardware issues. Especially since I recently, I upgraded to an IPhone 4g (no, my faith in IPhone 5 series is very little) and is experiencing the same audio problem as described above. So now, I am off to the Apple store again to be told that it’s a hardware problem on new IPhone. Really? Apple, what happen to the pride in the product you were producing?

    Everyone does things a little differently. I love to "jam " along with iTunes ( or old Lp's) . Always have. That's where/how I've learned to play .
    I'm sure leonieDF is giving a proper way to jam along on a keyboard with an iTune. He blows my mind all the time with what he knows. Nuff respects to him !
    What I do is make a GB project I call "Jam With". I'll make several new tracks that are blank. Just has a few instruments named in the blank tracks. You can change those per song ...
    Because I'm not concerned about changing the pitch / key.... of the iTune or the tempo ... I can simply play along with it.
    Peace,
    P. Dreadie

  • How can i hide phone apps so that if kids take my mobile the couldnt be able to make calls. At the same time when someone call me I could be able to attend call. is there any control to lock phone's apps or hide it.

    how can i hide phone apps so that if kids take my mobile the couldnt be able to make calls. At the same time when someone call me I could be able to attend call. is there any control to lock phone's apps or hide it.

    Hi there
    Apple doesnt give this feauture and there are certain apps in app store under utilities which provide password facility under this app and u can store photos videos and orther stuff and lock so
    Kids will be not able to access this single app ortherwise there is no such feature of locking apps feature given by apple
    <Edited By Host>

  • How to count frequency of two signal at the same time ?

    Hello every one
    please help me with this one i am really stuck.
    The situation   : I have two square wave signal, and i want to measure the frequency of both of themat the same time.
    the problem : Error -50103 occurred at DAQmx Read (Counter DBL 1Chan 1Samp).vi:3
    Please see the attachement.
    i also have 3 analog inputs to be measured.
    but i dont have any problem with the analog inputs,,,multiple analog  inputs can easily be measured,,,,,but the prob lem is in the digitl (square wave ) signals. 
    Attachments:
    i want to use two counter input.GIF ‏54 KB
    two counter tasks1.vi ‏250 KB

    NI has an excellent overview of the accuracy and tradeoffs of the different freq measurement methods titled  "Making Accurate Frequency Measurements."  To boil down the essence of it, the (possibly) increased accuracy of the 2-counter method depends on a relatively long collection / accumulation time which would in turn typically limit the rate at which you could update your measured freq value.
    Now let me offer some friendly but blunt advice.  LabVIEW makes it easy to collect data.  However, there are many other factors affecting the usefulness of that data.  I support the dictum: "It is hard to measure *well*."  Choice of sensors, their sensitivity to environment, various sources of noise, an understanding of the decision to be made from the data, programming methods, etc.  And even more etc.
    What I mean is that just because a hardware freq measurement can be performed that is precise to 1 part per million, it would be very RARE in a test that ALL of those 6 significant digits prove useful.  In your app, the measurements are presently only approximately correlated in time.  And the gap of blind time between measurements will usually represent a much longer period of time than the measurement itself.
    Analogy: suppose you had a 100 minute film at 25 frames/sec for a total of 150_000 frames.  Now start selecting individual frames that are separated by some random # of frames between about 200 and 500.  In the end, you may end up with a sequence of 400 frames in the correct order.  Each individual frame is VERY accurate, but the collection of all of them can zip by in 16 seconds and not give you a much understanding about the movie.
    What would usually work out much better is to sacrifice some accuracy in order to collect a greater quantity of frames.  You trade off the instantaneous accuracy for the overall coherency.
    Sorry, got on a roll...   Back to your question.  My own preference is almost always to avoid consuming hardware resources when not truly necessary.  I've been toying with counters for many years and have still never once deployed an app using a 2-counter frequency measurement.  I do the 1-counter measurement and save the other counter(s) for other purposes. 
    If you've got an M-series board, the 80 MHz timebase allows you to measure a 500 kHz pulsetrain with a quantization error of only about 0.06% (1 part in 160).  There's a pretty fair chance that whatever physical process emits that pulsetrain isn't appreciably more stable than that
    -Kevin P.

  • How do you restric the number of songs downloaded at the same time?

    With the latest version of iTunes when I purchase an album from ITunes Store it starts to download upto three songs at the same time.
    This slows down the speed at which they are downloaded up to 6 times for each song what it takes when downloading a single song.
    Is there anyway to restrict the number of songs downloaded?
    You can pause all downloads and then manually download each one but then you have to sit at the computer the whole time.
    I'm using cable broadband with upto 512kbps.

    I have the same issue with TV shows. Purchasing more than one show starts downloads on several files (shows/songs/movies) at the same time. If I remember correctly, certain older versions of iTunes proceeded to download only one file at a time. If it finished one, it started the next on the list until the files were all downloaded, or the internet connection was interrupted, after which you had to "check for purchases" to start downloading where you left off.
    I wonder if there is a way to change that setting back to the old way? I'll be watching this thread for news...
    - Rob K.
    PowerBook G4, 1.5GHz, 1.25GB; PowerMac G4 (Quicksilver) 733MHz, 1.12 GB   Mac OS X (10.4.9)  

  • IPhone VZW vs. iPhone AT&T / Voice Calls & Internet at the Same Time

    Hello,
    I use to be a Verizon customer. Currently doing prepay. But I'm looking at purchasing an iPhone and I'm not sure if I'm going to come back to Verizon or go with AT&T. I've seen in the AT&T commercials how they claim that you can make a voice call & surf the web at the same time. And that with Verizon, you can't do that. I wanted to know, is it true that with Verizon's iPhone you cannot make a voice call & surf the web at the same time?
    Thanks
    Shirley

    Does Verizon use wifi for phone as well as data as an option? I was told by someone at the office who was talking to another friend who was about to go from TracPhone to either iPhone or Android. She was also considering how many minutes she would need. He told her with AT&T at his home or office he's on wifi for calls so it doesn't use his phone minutes. & I understand that you can have it set to automatically use wifi if it is available, otherwise 3G.
    So is this true for Verizon?
    & would that work to do phone & internet at the same time, both using wifi, or doesn't it work that way?
    I'm on a win mob 6.5 phone now which is a replacement & its not working well & I didn't like the OS anyway (got it for biz, but they have changed to web based so don't need it for that).
    So this one is having issues & is a downgrade from the phone I purchased originally.  So would really like to get the new iPhone 4S. So I'm kind of doing research right now.

  • Multiple ResultSets from the same connection occuring at the same time

    Is it possible to have the following code? The issue is that you are iterating through two result sets created from the same connection at the same time.
    try {
    Connection conn=createConnection();
    Statement s=conn.createStatement();
    ResultSet rs=s.executeQuery(someSQL);
    while (rs.next()) {
         Statement s2=conn.createStatement();
          ResultSet rs2=s2.executeQuery(someOtherSQL);
          while (rs2.next()) {
               //do something
    } catch (SQLException sqle) {
    } finally {
    freeConnection(conn);

    Joel,
    The code compiles, but I have not tried running it. It is a question I need to know, designing a program.
    The question is whether some error would come up or the first ResultSet would be corrupted because a second were created before the first one was closed.
    --Gabe                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Can a text vibrate but an inbound call ring at the same time?

    I have an iphone 4. I would like to keep the ringer on for inbond calls but silence texts. Can i do that?

    Suzzy G wrote:
    Same thing right?? Or would that allow the text to still vibrate?
    No, it's not the same thing. It would still allow the text to vibrate. "None" turns off all the text alerts. As far as the iPhone "knows" a tone that is merely a recording of silence is just as much a sound as the tritone. As long as you still have vibrate turned on, it will vibrate as well.

  • Can I Make 2 Remote Calls at the Same Time?

    Hi,
    Can I make 2 remote calls at the same time? For example, if I have the following remote objects:
    <mx:RemoteObject id="myRemote" destination="zend" source="MyData" showBusyCursor="true" fault="faultListener(event)">
         <mx:method name="getData" result="getDataListener(event)"/>
    </mx:RemoteObject>
    <mx:RemoteObject id="myRemote2" destination="zend" source="MyData2" showBusyCursor="true" fault="faultListener(event)">
         <mx:method name="getData2" result="getDataListener(event)"/>
    </mx:RemoteObject>
    And I call them at the same time:
    public function myFunction():void {
         myRemote.getData();
         myRemote2.getData2();
    Will it work? Will Flex "confuse" the results of one call with the results of the other call? Do I need an AsyncToken? If so, how do I use an AsyncToken in the above example?
    Thank you,
    -Laxmidi

    I do this all the time. I call one for the combobox that has a list of the people, a
    and another with that data about the people filling a datagrid. Then use the combobox to filter the datagrid.
    In your sample though mak another  result="getDataListener(event)" and name it getDataListener2, so there is a dataprovider for the first and a seperat for the second.
    If your going to the same event the second one will replace the first one.
    Hope this helps

  • How can I subscribe to 2 number at the same time

    Can you help? I have 2 numbers, I have a monthly subscription on one and I actually wanted it on both. I try to add a subscription and it tells me that I already have one running and that it will simply add onto the same one. I have now had to top up my other number with a PAYG as I can't find out how to have a monthly UK unlimited number for 2 numbers at the same time. please help
    thank you 

    tony.harrison wrote:
    THank you. the numbers I should have, and indeed are using are 
    020 XXXX 1135 this one doesn't have a monthly subscription and I want one
    020 XXXX 8511 this opne is OK and I think is alloctaed to xxxxxxxxxxxxxxxxxxxxxxxxxx
    Hello
    NEVER post any personal information on the Forum. This is a public internet site and can be (and is) accessed by anyone surfing the internet.
    1. Your account shows that the # ending in 1135 is an annual Subscription which expires on August 7th 2014. If you with to change the billing frequency please do so before the expiry date by using this link: please contact Skype customer service
    2. The same information and expiry dates apply to the # ending in 8511 registered to the second user. Please take the same action.
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • How to check 6 digital signals change value at the same time with PCI-6229??

    I am using DAQ card PCI-6229.
    Channel 1 generate a digital signal.
    Channel 2,3,4,5,6,7 acquire digital signals.
    I want to check:
    1. Whether the rising edge of Channel 2,3,4,5,6,7 occures at the same time;
    2. The time delay from the rising edge of Channel 1 to the rising edge of Channel 2,3,4,5,6,7 is within a certain range.
    I know I can use counter to get the two edge seperation time delay. But I only have two counter, it is two time-consuming if I check one by one.
    I don't know how to check the rising edge of 6 different channels occure at the same time.
    Does anyone has any suggestions?
    Thanks

    Hello,
    You can use the DAQ card's digital input change detection circuitry to detect changes in the input, you can then use a counter to measure the relative time between samples. Please read Page 6-9 DI Change Detection Applications for more information. Let me know if this helps
    Christian A
    National Instruments
    Applications Engineer

  • Using wireless phone and PC in the same time

    Hello, my mum would like to use a classic phone handset for skype calling and in the same time to use a computer for typing skype messages. Is it possible to do this with some phone divice? I have read that phone handsets usually do not need to be connected to the computer. But she needs to have skype program on PC (to read and write messages) and call with phone. Thank you very much for advice.

    Using either a device like the Freetalk Connect Me or a Skype USB adapter allows you to utilize a standard home phone for use with Skype.  Your mother would be able to utilize the handset to talk  and at the same time continue to text chat with someone over the computer.  If she's logged onto skype on more than one computer at a time, her chat messages will still go through.  If she wants a wireless home phone to work, she would have to have the phone base station connected to one of those adapters.

  • Build and Action at the same time

    Is it possible to have a build and an action occur at the same time. I have a photo I want to dissolve in as it is moving from one part of the screen to another. So far I've only been able to do one after the other is completed. Any way to do this?

    You can't do build in/outs and action builds at the same time.
    But you're in luck, because you CAN have two action builds at the same time! So have an Opacity action build from 0-100% at the same time as your Move action build, and you're set.

  • In addition to the FormsCentral subscription charge ($152.87 including tax) I was billed about the same time for $15.93. I can't find any way to get in touch with anyone from Adobe. The phone number I'm supposed to call is cut off on my invoice. Can someo

    In addition to the FormsCentral subscription charge ($152.87 including tax) I was billed about the same time for $15.93. I can't find any way to get in touch with anyone from Adobe. The phone number I'm supposed to call is cut off on my invoice. Can someone respond ASAP? Thanks

    I have forwarded your request to the support team that should be able to resolve this issue for you quickly. Expect to hear from them shortly.
    Andrew

Maybe you are looking for

  • Adobe Acrobat 8 Form Duplicate text error

    Hello World! I work for a school with 200+ computers installed with **. The problem I'm having is when a user downloads a PDF form from our web page and goes to start inserting data in the fields the text just duplicates in all the boxes. If you try

  • How to rename a column name while copying it from another table

    Hi All, I am copying rows between two table TableA to TableB but I wanted to insert data in he column name (username) in tableA to a column named (NewUser) in tableB How do I go about that? insert into TableB select Username from TableA Thanks

  • Changing movie widget title

    I successfully added an audio file to my book. The title still calls it Movie 5.1. Is it safe or even possible to change it to Audio 5.1? And also, is there a way to enlarge the player start/stop symbols in that audio widget? Thanks.

  • Bug in JDev 9.0.3.3 when removing joined entities from a view

    Hi, I observed in JDev 9.0.3.3 the following behavior for views containing several joined entities:      -I'm creating the view V1 based on the entity E1 and generate the row implementation java file with accessors (close wizard)      -I'm joining a

  • Posting asset  F-90

    Hi All, When i am trying to post an asset i am getting the following error. A fiscal year change has not yet been performed in Asset Accounting for company code 1000. I also tried to execute tcode ajrw to switch to a new fiscal year but still i get t