Solved
sql query date format
helppp. i have an SQL query in a Thing. Im trying to extract the date from datetime column using Cast but its not working.
select
b.sysdat,
cast (b.sysdat as date),
a.itmcod ITEM_CODE,
d.itmdsc ITEM_DESC,
b.trntyp,
sum(b.trnqty) over (partition by a.itmcod,b.trntyp) QUANTITY
from sysdtl a join systrn b on a.trnseq=b.trnseq
join itmmst d on a.itmcod=d.itmcod


