आप CASE
. का उपयोग कर सकते हैं कथन:
SELECT count(id),
SUM(hour) as totHour,
SUM(case when kind = 1 then 1 else 0 end) as countKindOne
आप CASE
. का उपयोग कर सकते हैं कथन:
SELECT count(id),
SUM(hour) as totHour,
SUM(case when kind = 1 then 1 else 0 end) as countKindOne