Question
problem with mysql count with where clauese
i think my query is wrong. can please someone guide me.
I am trying to get the countedvalue of myinbox table
but i am running into big trouble.
i tried searching the google but could not find the
relevant data.
please guide me
cheers
SELECT COUNT(sendTo) as sendtoCounted FROM
myinbox
GROUP BY sendTo
HAVING
read = <cfqueryparam cfsqltype="cf_sql_numeric"
value="1">
AND
recievedOn >= #DateAdd('d',-
7,DateFormat(now(),'mm/dd/yyyy'))#
I am trying to get the countedvalue of myinbox table
but i am running into big trouble.
i tried searching the google but could not find the
relevant data.
please guide me
cheers
SELECT COUNT(sendTo) as sendtoCounted FROM
myinbox
GROUP BY sendTo
HAVING
read = <cfqueryparam cfsqltype="cf_sql_numeric"
value="1">
AND
recievedOn >= #DateAdd('d',-
7,DateFormat(now(),'mm/dd/yyyy'))#
