Good day. There are entries with date type. begin_registration and end_registration of the timestamp type. This is the registration period for the seminar. How to get all the entries for which registration is open. Those. Today is June 06, 2016, and the beginning of registration is from June 05, 2016 to June 21, 2016. How to write a SQL query correctly
|
SYSDATE between begin_registration and end_registration. Replace SYSDATE with the function that receives the current date of the desired type in your SQL dialect (which you did not specify in the question) - Mikenow()orcurdate()(only date, no time) orcurrent_timestamp()(you wrote something about the timestamp there). - Mike