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 |
|
kuttan939
Starting Member
4 Posts |
Posted - 2009-03-10 : 01:32:47
|
| Hi,I have different tables (say table1, table2,etc) with the following fields.table1(Timestamp,value1)table2(Timestamp,value2)...All have same timestamp. I have to merge all tables into single tabletable(timestamp,value1,value2,…..)I think the time stamp can be updated as datetime format. But I dont know how to update columns by comparing with the timestamp. Please helpThanks |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-03-10 : 02:57:03
|
| i dont you can convert the timestamp to datetime value |
 |
|
|
kuttan939
Starting Member
4 Posts |
Posted - 2009-03-10 : 04:27:58
|
quote: Originally posted by visakh16 i dont you can convert the timestamp to datetime value
Yes we can convert timestamp to datetime |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2009-03-10 : 04:49:12
|
| declare @t table(i int, t timestamp)insert into @t(i)select 1 union all select 56select i,cast(t as datetime) as dates,t from @tMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|