Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
sqlserverdeveloper
Posting Yak Master
243 Posts |
Posted - 2009-07-09 : 14:18:07
|
| I want to convert the following time values into HH:MIAM or HH:MIPM,I have the following data in my table:Create table #temp(time char(4))Insert into #tempselect '0900'union select '0915'union select '0930'unionselect '1200'unionselect '1300'unionselect '1515'unionselect '1530'unionselect '1545'unionselect '1600'select * from #tempI want for example the following output:9AM for '0900'3:45PM for '1545'Thanks! |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
|
|
|