Have picked up someone\'s code and this is a part of a where clause, anyone know what the double colon indicates?
b.date_completed > a.dc::date + INTERVA
It is a CAST operation(cast to a date type).
CAST
Example:
SELECT now()::timestamp(0);
Is equivalent to:
SELECT CAST (now() AS timestamp(0));
They both result in casting now() to timestamp in the following format: YYYY-MM-DD HH:MM:SS
now()
timestamp
YYYY-MM-DD HH:MM:SS