Quantcast
Channel: Answers for "Selecting multiple ranges from a set of dates"
Viewing all articles
Browse latest Browse all 12

Answer by Cyborg

$
0
0
SELECT MIN(TestDate),MAX(TestDate) FROM Dt GROUP BY CONVERT(VARCHAR,TestDate,101),DATEPART(HH,TEstDate),DATEPART(Mi,TestDate) Remarks: Dt Is the Table Name and TestDate is the column Name

Viewing all articles
Browse latest Browse all 12

Trending Articles