Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: date
Is the select statement ok
SELECT customerID, lname, fname, orderdate, SUM(c.cost, c.extracharges) * 100 AS percent
FROM customer c, customerCharges ch
WHERE c.customerID = ch.customerCharges
AND orderdate>=TO_DATE('1/1/2001','DD/MM/YYYY')
AND orderdate<TO_DATE('1/1/2002','DD/MM/YYYY')
And also is it possible to specify two dates example
AND (orderdate, shipdate)>=TO_DATE('1/1/2001','DD/MM/YYYY') AND (orderdate,shipdate)<TO_DATE('1/1/2002','DD/MM/YYYY')
thanks Received on Sun May 07 2006 - 19:35:48 CDT