Consider this table
Name - Course - Paper Written - Exam Passed
John Math True True
Mary Math True True
John History True False
Mary Biology False True
John Econ True True
What would be SQL command to give me this result:
Student No - Papers Written - Exams Passed
John 3 2
Mary 1 2
I can get to count one field with
SELECT firmalar.adi, firmalar.kodu, COUNT(*) as asd FROM firmalar, urunler WHERE urunler.fkodu = firmalar.kodu GROUP BY urunler.fkodu
but not two fileds at the same time
Thanks