Question:
In a project tracking database, one of the columns in a table contains the date in this format: MM/DD/YY. I would like to be able to see a listing of projects that are overdue. Is it possible to query the table so that the SQL statement returns only records with dates before the current date? How do I retrieve today’s date?
Answer:
I’ll assume that the field you are talking about is defined as a date. (If not, you will have to use either the convert function or some of the string functions with the convert to have it treated as a date). You could then simply say:
select * from projectswhere projdate < getdate()
?getdate returns today's date
Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.
Related Posts
- Panasonic TOUGHPAD introduces Performance version of its large screen 4K tablet
- How To Find Downloads On Android
- RISC-V mini-ITX motherboard review: Xiangshan K100 debuted
- How Eyebuydirect Leverages New Tech to Stand Out in the E-Commerce Space
- Runway launches Gen-3 Alpha for hyper-realistic video creation























