raju1
asked on
Count Field in SQL
Dear Experts,
I have a table( id, duration) and its data are as follows:
id duration
= =====
1 0
2 5
3 0
4 1
5 2
6 9
I want a result by SQL query with the following two fields:
Count(duration only 0) Count(duration not 0)
============== ==============
2 4
I have a table( id, duration) and its data are as follows:
id duration
= =====
1 0
2 5
3 0
4 1
5 2
6 9
I want a result by SQL query with the following two fields:
Count(duration only 0) Count(duration not 0)
============== ==============
2 4
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Error message:
"Function Sum does not exist;"