I need to select all the records which are not older than 18 months. I wrote this query for SQL Server. But it don’t seem to work.
SELECT DISTINCT Company,
Name,
PhoneNumber,
FROM Request
WHERE Company LIKE @Company
AND RequestDate >= ADD_MONTHS(SYSDATE, -18)
1 Answer