Zapytanie SQL Server, aby uzyskać dane dla określonej daty i godziny
select *
from table_name
WHERE (SELECT CONVERT(char(5),SYSDATETIMEOFFSET() AT TIME ZONE 'Central Standard Time', 108))
BETWEEN CONVERT(VARCHAR(5),column_name,108) AND CONVERT(VARCHAR(5), DATEADD(mi, 30,column_name),108)
Tiny Coders