Paradox Community

Items in pnews.paradox-client_server

Subject:SQL DATE + TIME
Date:23 Sep 2020 11:49:49 -0400
From:"Thies Grimm" <thies.grimm@t-online.de>
Newsgroups:pnews.paradox-client_server

Hi, in my table there are two fields, one date and one time field.
I like to add these both values to a single field datetime.

SQL
   SELECT (fldDate + fldTime) AS fldDateTime
endSQL

doesn't work (Type mismatch in expression) 

So I tried 
SQL
   SELECT (CAST(fldDate AS TIMESTAMP) 
           + CAST(fldTime AS TIMESTAMP)) AS fldDateTime
endSQL

Same error

So how do I do it? 

Thanks 


Copyright © 2004 thedbcommunity.com