I need help with the syntax below to subtract two years from the current date
Thanks
Code:
select oe_hdr.customer_id from oe_hdr where year (oe_hdr.order_date) >= year (getdate()-2 )
Comment