Every time I run this query, I'm getting ora-00907 error:
ORA-00907: missing right parenthesis 00907. 00000 - "missing right parenthesis"
SELECT COUNT(*)
FROM jobseekerprofile
JOIN userprofile on jobseekerprofile.portalprofileid = userprofile.portalprofileid
WHERE TO_CHAR((jobseekerprofile.createddate >= '23-APR-2013'),
TO_CHAR(jobseekerprofile.createddate >='23-APR-2013 14:00:00'))
AND TO_CHAR((jobseekerprofile.createddate < '24-APR-2013'),
TO_CHAR(jobseekerprofile.createddate < '24-APR-2013 13:59:00'))
AND userprofile.domainid = 1