Is it possible to specify a condition in Count()
? I would like to count only the rows that have, for example, “Manager” in the Position column.
I want to do it in the count statement, not using WHERE
; I’m asking about it because I need to count both Managers and Other in the same SELECT
(something like Count(Position = Manager), Count(Position = Other))
so WHERE
is no use for me in this example.