In SQL, which of the following syntax is correct for the count?

  • A. SELECT COUNT(cid), gender FROM tblcustomer WHERE gender = ‘male’
  • B. SELECT COUNT(cid), gender FROM tblcustomer GROUP BY gender = ‘male’
  • C. SELECT COUNT(cid), gender FROM tblcustomer GROUP BY gender HAVING gender = ‘male’
  • D. None correct

Answer: Option A