Is it possible to create an expression in QuerySpec (Self Servicing) that is equivalent to the SQL below?
SELECT COUNT(*)
FROM PROJECT p
WHERE CAST(p.LastReportSendDateUTC as DATE) = (SELECT CAST(MAX(LastReportSendDateUTC) AS Date) FROM PROJECT)
AND p.LastReportSendSuccessful = 1
Additional Info:
PROJECT.LastReportSendDateUTC as a DateTime in SQL Server