Friday, August 24, 2018

SQL Server Casting and Format commands

Select       cast('9:30 AM' as time) -- <-- this convert the string into a Time
       format ([First_call],'HH\:mm') --<-- This converts time into 24 hour clock format

No comments:

Post a Comment

Postgress - Read a XML file from a postgress table XML column

SELECT xmltable.* FROM xmldata, XMLTABLE('//ROWS/ROW' PASSING data COLUMNS id int PATH ...