Select I.Fee From Item I WHERE GETDATE() - I.DateCreated < 365 days
How can I subtract two days? Result should be days. Ex: 365 days. 500 days..
use DATE_DIFF
DATE_DIFF
Select I.Fee From Item I WHERE DATEDIFF(day, GETDATE(), I.DateCreated) < 365