hi, i come into a situation like this. My table is something similiar to below
table
id Name Status Datetime
1 Jack success 2006-06-06
2 Jack fail 2006-06-06
3 Jack success 2006-06-06
4 Jack success 2006-06-06
5 Mal fail 2006-06-06
6 Mal fail 2006-06-06
And i need to get the result from a specified column "Status", and the result will be something like below, which will COUNT() the no. of record. The success, fail is something calculated from "Status"
Result
Name Sucess Fail
Jack 3 1
Mal 0 2
Anybody have idea bout it?
Thanks
table
id Name Status Datetime
1 Jack success 2006-06-06
2 Jack fail 2006-06-06
3 Jack success 2006-06-06
4 Jack success 2006-06-06
5 Mal fail 2006-06-06
6 Mal fail 2006-06-06
And i need to get the result from a specified column "Status", and the result will be something like below, which will COUNT() the no. of record. The success, fail is something calculated from "Status"
Result
Name Sucess Fail
Jack 3 1
Mal 0 2
Anybody have idea bout it?
Thanks