This question is a duplicate – no argument on that count (ha, ha) – but not of the question that it was closed as a duplicate of.
Even if you know nothing about SQL, compare the answer to the closed question to the answer to the linked question - one says "these are different, and here's how" while the other says "there's no difference, and here's why." (Amusingly, both answers were given by the same user.)
I initially raised a custom flag to explain this:
This seems to have been marked as a dupe of the wrong question. The correct dupe is stackoverflow.com/q/59294/2359271; the linked dupe talks about () vs (1) rather than () vs (column) which is a different question and has a different answer. – AirThomas Aug 20 at 16:34
I noticed today that the flag has been declined. (The reason left was "a moderator reviewed your flag, but found no evidence to support it," which is a bit annoying – but no harm, no foul.)
After more research I found Brad Larson's answer here explaining why it's more appropriate for the community to handle these circumstances by voting to re-open the question and then close it with the proper duplicate target. I agree with this user that this proper target is:
In SQL, what's the difference between count(column) and count(*)?
3k rep users: Please review the question and cast your votes, if you agree, to reopen and reclose the question with the proper duplicate target.
COUNT(*)
vsCOUNT(1)
vsCOUNT(pk)
— which is better? as a duplicate ofCOUNT(*)
vsCOUNT(1)
, primarily based on the date asked (2010 for the 3-way question versus 2009 for the 2-way question). However, there might also be a case for designating the duplicates the other way around as the later question covers the earlier question in its entirety. Should the closure be reversed?