<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi,</p>
<p>For a project I have point data for events with a start_time and end_time, both columns are of type timestamp without timezone (in PostgreSQL).</p>
<p>I want to have three different rules for events in the past, current events and future events.</p>
<p>Past and future events work fine, but I am struggling with the query for the current events.</p>
<p>I use the query</p>
<p>start_time <= now() AND end_time >= now()</p>
<p>But the query fails - the object aren't selected - even if I am sure that there are matching objects in my database. Is this not a valid query? Any other idea on how to test for current events? In PostgreSQL I could use intervals and test for overlaps - but this isn't available in QGIS.</p>
<p>Thanks for any hints,</p>
<p>Andreas</p>
<div> </div>
</body></html>