Friday afternoon and I'm fried. So fellow SQL aficionado's how to take the following WHERE clause in PostgreSQL and convert it to SQLite3 without using a compiled extension:
WHERE
DATE_TRUNC('day', c.start_date) <= DATE_TRUNC('day', q.date) AND
DATE_TRUNC('day', c.end_date) >= DATE_TRUNC('day', q.date)
going over the date/time functions in SQLite3 it seems like they're only for string formatting. Hope I'm seeing something wrong.
datedata type there can't be an equivalent.date(c.start_date)etc is what you're looking for?