Answers for "is it better to comapre dates in sql query or to get all data and then compare"

SQL
2

compare date in sql

WHERE DATEDIFF(my_date,'2008-11-20') >=0;
WHERE my_date >= '2008-11-20';
WHERE to_date(my_date, 'YYYY-MM-DD') >= '2008-11-20';
WHERE to_date(my_date, 'YYYY-MM-DD') >= to_date('2008-11-20', 'YYYY-MM-DD');
Posted by: Guest on April-04-2021

Code answers related to "is it better to comapre dates in sql query or to get all data and then compare"

Code answers related to "SQL"

Browse Popular Code Answers by Language