SQLServer2000の使用
01:00:00
または01:30:00
または02:00:00
または02:30:00
またはのように時間を締めくくりたい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
...
table1の期待される出力
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
....
この条件を照会する方法
クエリのヘルプが必要