SUM(1) vs COUNT(1) Performance Battle – SQL in Sixty Seconds #177

SUM(1) vs COUNT(1) Performance Battle.Based on my recent two videos COUNT(*) and Index – SQL in Sixty Seconds #175 and COUNT(*) and COUNT(1): Performance Battle – SQL in Sixty Seconds #176, I got lots of questions about SUM(1) vs COUNT(1) Performance Battle. Let us see that in today’s video.

I personally, had great fun building this video. You can watch the video over here.

You can get the script used in this video from here: SQL SERVER – SUM(1) vs COUNT(*) – Performance Observation

Well, that’s it for today. If you liked this video, please do not forget to subscribe to my YouTube Channel – SQL in Sixty Seconds.

Here are my few recent videos and I would like to know what is your feedback about them.

Published by Pinal Dave on SQLAuthority. More of my work at pinaldave.com.

Execution Plan, SQL Function, SQL in Sixty Seconds, SQL Scripts, SQL Server
Previous Post
COUNT(*) and COUNT(1): Performance Battle – SQL in Sixty Seconds #176
Next Post
June 2021 Summary for SQL in Sixty Seconds

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.