Am trying to query data from two joined tables with a date as criteria using the query below but it brings nothing, can someone please show me what I did wrong.
SELECT Journal_T.GL_ID as Akaunti
,coa_t.gl_name_vc
,SUM(Amount_NU) as YTD
FROM Journal_T
JOIN coa_t
ON journal_t.gl_id = coa_t.gl_id
WHERE CAST(date_dt AS DATE) BETWEEN '25/08/2017' AND '25/08/2017'
AND bs_category_vc='Rev'
GROUP BY coa_t.gl_name_vc
,Journal_T.GL_ID