Querying From-To-Dates
- Now, of course the real query to get the currently active terms needs to check
valid_from
andvalid_until
:
SELECT uuid FROM term WHERE valid_from < now() AND valid_until > now();
SELECT uuid FROM term WHERE now() < valid_from AND valid_until < now();