Hello every one,
I have a field with dates when some products go out of date, and I have to make a query which checks if this products are out of date or no.I will be glad if someone help.
Hello every one,
I have a field with dates when some products go out of date, and I have to make a query which checks if this products are out of date or no.I will be glad if someone help.
This will show which Products have passed the BesttBeforeDate.
SELECT ProductName
, BestBeforeDate
FROM tblProducts
WHERE
BestBeforeDate - Date < 0;