Skip to content

Instantly share code, notes, and snippets.

@pragmaticlogic
Last active December 15, 2015 15:09
Show Gist options
  • Save pragmaticlogic/5279484 to your computer and use it in GitHub Desktop.
Save pragmaticlogic/5279484 to your computer and use it in GitHub Desktop.
select * from sale where product_id = :product_id and
sale_date >= TO_DATE('03/30/2013 08:00', 'MM/DD/YYYY HH24:MI')
select * from sale where product_id=:product_id and
sale_date >= TO_DATE('03/30/2013 08:00', 'MM/DD/YYYY HH24:MI')
select * from sale where product_id = :product_id and
sysdate - :sale_date < 30
select * from sale where product_id=:product_id and
sysdate-:sale_date<30
select * from sale where product_id = :product_id and
sysdate - (:sale_date) < 30
select * from sale where product_id = :product_id and
sysdate-(:sale_date)<30
select * from sale where product_id = :product_id and
sysdate - 30 < :sale_date
select * from sale where product_id=:product_id and
sysdate-30<:sale_date
select * from sale where product_id = :product_id and
sysdate - 30 < (:sale_date)
select * from sale where product_id = :product_id and
sysdate-30<(:sale_date)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment