Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL count distinct

How can I do a count distinct selection? Basically I have all these charges and I want to count only the number of distinct employees involved with that charge. (I already have other fields for the group by)

like image 885
CodeKingPlusPlus Avatar asked Dec 06 '25 19:12

CodeKingPlusPlus


1 Answers

SELECT COUNT(DISTINCT employeeid) FROM ....
like image 116
EkoostikMartin Avatar answered Dec 08 '25 07:12

EkoostikMartin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!