This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
Illustrated cover: SUM(1)

SQL Server – Single Scan for 3 Operations – COUNT(*) COUNT(1) SUM(1)

June 30, 2021
Pinal Dave
SQL Performance
Execution Plan, SQL Function, SQL Index, SQL Scripts, SQL Server, SQL Server Management Studio

Today we will take the same conversation to the next level by discussing Single Scan for 3 Operations – COUNT(*) COUNT(1) SUM(1).

Read More
Different inspection guides examine one complete tray beside a populated-value sample dish.

COUNT(*) and Index Frequently Asked Questions

June 22, 2021
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL Server

My Index Frequently Asked Questions discussion follows the counting video. I distinguish exact results, estimates and the expression being counted.

Read More
StarIndex

COUNT(*) and Index – SQL in Sixty Seconds #175

June 21, 2021
Pinal Dave
SQL Video
Execution Plan, SQL in Sixty Seconds, SQL Index, SQL Scripts, SQL Server

Earlier I wrote two blog post on the topic of COUNT(*) and Index and today I have to build a video on that topic as many of you really wanted.

Read More
Gouache painting of three bicycle wheels of different sizes on a rack, the smallest vermilion

Count Rows in a Heap: Which Scan Does SQL Server Use?

June 18, 2021
Pinal Dave
SQL Tips and Tricks
Clustered Index, Execution Plan, SQL Heap, SQL Index

Count rows in a heap and SQL Server scans every page. See the plan change with a clustered and a narrow index, and why a heap does not compact its pages.

Read More
Gouache painting of three vases in a row, the slimmest holding vermilion tulips

Index Used for COUNT(*): SQL Server Scans the Narrowest One

June 15, 2021
Pinal Dave
SQL Performance
Clustered Index, Execution Plan, SQL Index, SQL Scripts

The index used for COUNT(*) is the narrowest one that holds every row. See the pages, the scans and the reads that prove it in SQL Server.

Read More
good or bad

Index Scans – Good or Bad? – SQL in Sixty Seconds #174

June 14, 2021
Pinal Dave
SQL Video
Execution Plan, SQL in Sixty Seconds, SQL Index, SQL Scripts, SQL Server

Index Scans – Good or Bad? Lots of people ask about this question and I have built a blog post on the topic – SQL SERVER – Index Scans are Not Always Bad.

Read More
Illustrated cover: Scans Are Not Always Bad

SQL SERVER – Index Scans are Not Always Bad

June 11, 2021
Pinal Dave
SQL Performance
Execution Plan, SQL Index, SQL Scripts, SQL Server

Are Index Scans Bad? The answer No. Index Scans are Not Always Bad. This was in-depth discussed with my client during the Health Check.

Read More
Previous 1 … 5 6 7 8 9 10 11 … 62 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com