prev <<
9 PostgreSQL features I wish I learned earlier
>> next
Querying From-To-Dates
Now, of course the real query to get the currently active terms needs to check
valid_from
and
valid_until
:
SELECT uuid FROM term WHERE valid_from < now() AND valid_until > now();