Place
'and date(r.site_timestamp) = h.first_order_date'
after WHERE

Best regards,
 Alexander Kirpa


---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Reply via email to