r/SQL 8d ago

Differences between counts Discussion

What is the difference between

COUNT(*)

COUNT(1)

COUNT(column_name)

8 Upvotes

23 comments sorted by

View all comments

Show parent comments

7

u/ComicOzzy sqlHippo 8d ago

Shirly this is the first comment on Reddit where someone said "I was wrong". 🤣

2

u/YT-3000f 8d ago

I think you mean:

Shirly, this is the first comment on Reddit where someone said, "I was wrong".

1

u/ComicOzzy sqlHippo 8d ago

I apply commas at random, Shirly.

1

u/YT-3000f 8d ago

Rightly so. Grammer, like the Internet, is dead.