Oracle
 sql >> Database >  >> RDS >> Oracle

Converti il ​​campo datetime in solo un campo data in SQL (Oracle)

Basta usare la funzione TRUNC.

SELECT DISTINCT
TRUNC(C.RECEIPTDATE),
(I.CLIENTID ||' - '||PO.CLIENTNAME) AS CLIENT,
D.INVOICEID,
TRUNC(D.SVCFROMDATE),
TRUNC(D.SVCTODATE),
D.SVCCODE
FROM M_EQP_ORDERS
WHERE.....