TeradataTip3 – Combine date and time into a timestamp
CREATE TABLE T( dt date, tm time(0));
INSERT INTO T VALUES (date '2009-05-28', time '14:53:45');
SELECT dt, tm,
cast( dt AS timestamp(0)) +
(tm - time '00:00:00' hour TO second) ts
FROM T;
dt tm ts
---------- -------- -------------------
2009/05/28 14:53:45 2009-05-28 14:53:45
Tags: TeradataTip
This entry was posted
on Thursday, May 28th, 2009 at 15:35:21 and is filed under TeradataTipInfo.
You can follow any responses to this entry through the RSS 2.0 feed.
You can skip to the end and leave a response. Pinging is currently not allowed.