I have a table named PRODUCT and I need to make a comparison between two columns, the column DATA_INICIAL AND DATA_FINAL , for each line covered, if the product does not agree enter the value 0
in the PROD_ATIVO column.
Rule: If the start date is greater than the current date or the end date is less than the present date the product should not be displayed.
Product (Exemplification) :
Product name: Danoninho
Product display date: 3/27/2017 to 3/30/2017.