Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to search date from certain date onwards

I want to show all dates onward when searching dates. For eg. i searched 2012-12-24, all dates going forward will appear.

Here’s my query right now that can search the exact date only and not including date onward.

SELECT * 
FROM user u 
where cast(u.start_date as varchar) = '2012-12-24'

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Use an inequality:

SELECT *
FROM user u
WHERE u.start_date >= '2012-12-24';
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading