Mounir Bennacer
03/15/2022, 9:17 PMprisma.$queryRaw`
SELECT *
FROM MyTable
WHERE COMPANY_ID = 1
AND "[2020-01-01,2020-12-31]"::daterange @> during
GROUP BY 1
ORDER BY 1 ASC`
something like that where the date range is inclusive of bounds ( aka getting the whole day until 2020-12-31 000000 for say )Nurul
03/21/2022, 9:59 AMduring
would need to be casted by referring this stack overflow answer