Bit of an SQL newbie question..
If I have a table along the lines of the following :
host fault fatal groupname Host A Data smells iffy n research Host B Flanklecrumpet needs a cuddle y production Host A RAM loves EWE n research Host Z One of the crossbeams gone askew on the treadle y research
.. and I want to get some stats, I can..
select count(distinct host) as hosts, count(host) as faults, group from tablename group by groupname
.. which gives me the number of faults and affected hosts per groupname.
hosts faults groupname
2 3 research
1 1 production
Can I, in the same query, show the number of fatal entries?