hello am using the follwing
SELECT
Sum(IIf(attendance.present='P',1,0)) AS TotalPresent from Attendance...
it gives me error tht incorrect sytex near=..
if i replace my iif with CASE such as
SELECT
case Present
when 'P'
then 1
else 0
end as TotalPresen from Attendance
then how can i apply SUM function
Thnx in advance