Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

T-SQL Query

$
0
0
UsageStartTime                                       UsageCount
 7:42 AM7
 7:43 AM3
 7:44 AM13
 7:45 AM14
 7:46 AM9
 7:47 AM9
 7:48 AM3
 7:49 AM19
 7:50 AM1
 7:53 AM5
 7:54 AM16
 7:55 AM10
 7:56 AM14
 7:57 AM13
 7:58 AM13
 7:59 AM4
 8:04 AM10
 8:05 AM12
 8:06 AM10
 8:07 AM14
 8:08 AM13
 8:09 AM6
 8:10 AM1
 8:11 AM10
 8:12 AM6
 8:13 AM6
 8:14 AM4
 8:15 AM7
 8:19 AM4
 8:20 AM3
 8:21 AM6
 8:22 AM10
 8:24 AM10
 8:25 AM9
 8:26 AM17
 8:27 AM7
 8:28 AM9
 8:29 AM6
 8:32 AM10
 8:33 AM14
 8:34 AM4
 9:14 AM1
 9:15 AM15
 9:16 AM6
 9:17 AM3
 9:18 AM6
 9:19 AM10
 9:22 AM9
 9:23 AM14
 9:24 AM3
 9:25 AM10
 9:26 AM6
 9:27 AM7
 9:28 AM9
 9:29 AM6
 9:30 AM12
 9:31 AM13
 9:33 AM4
 9:34 AM6
 9:36 AM4
 9:37 AM3
 9:39 AM6
 9:44 AM14
 9:56 AM18
 9:57 AM5
 9:58 AM9
 9:59 AM12

Could you please suggest T-SQL  how can we convert the above output  to

7 AM to  8 AM  USerCount 100

8 AM to 9 AM User count 200

9 AM to 10 UserCount 10


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>