使用 SQL Server 2000
01:00:00
我想像or 01:30:00
or 02:00:00
or or 02:30:00
or这样的时间来四舍五入03:00:00
表格1
ID TIME
001 02:15:00 'Format (HH:mm:ss)
002 02:17:00
003 02:47:00
004 03:00:00
005 02:00:00
....
Time
列的数据类型是nvarchar
健康)状况
02:00:00 to 02:15:00 - I want to show 02:00:00 only
02:16:00 to 02:44:00 - I want to show 02:30:00 only
02:45:00 to 03:00:00 - I want to show 03:00:00 only
...
表 1 的预期输出
ID TIME
001 02:00:00 'Less than or equal to 2.15 mins so it should change to 02 hrs
002 02:30:00 'Less than 2.44 mins so it should change to 2.30 mins
003 03:00:00 'Greather than 2.45 mins so it should change to 03 hrs
004 03:00:00 'Same
005 02:00:00 'Same
....
如何查询此条件
需要查询帮助