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
query cost

Tuning Query Cost 100% – SQL in Sixty Seconds #181

July 27, 2021
Pinal Dave
SQL Video
Execution Plan, SQL in Sixty Seconds, SQL Scripts, SQL Server

After the blog posts, lots of people asked me to build a video so here is the video discussing the topic of Tuning Query Cost 100%.

Read More
Gouache painting of a seesaw weighed down by one huge orange pumpkin at one end, with a tiny pumpkin raised at the other

Cost Relative to the Batch: Why One Query Shows 100%

July 23, 2021
Pinal Dave
SQL Performance
Execution Plan, SQL Scripts, SQL Server

Cost relative to the batch is a share of estimated cost. See why one query shows 100% and when the percent points at the wrong statement.

Read More
Gouache painting of a seedling in a glass jar on a windowsill with a vermilion watering can beside it

Query Hints on a View in SQL Server: Where OPTION Goes

July 14, 2021
Pinal Dave
SQL Tips and Tricks
Execution Plan, Query Hint, SQL Scripts, SQL View

Query hints on a view cannot sit inside the view. Learn where OPTION goes, what a view may contain, and how Query Store hints help.

Read More
Count Sum

One Scan for 3 Count Sum – SQL in Sixty Seconds #178

July 2, 2021
Pinal Dave
SQL Tips and Tricks
Execution Plan, SQL Function, SQL in Sixty Seconds, SQL Index, SQL Scripts, SQL Server

Well, the answer is pretty straight forward and that is what we are going to see in today’s video of One Scan for 3 Count Sum.

Read More
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
sum

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

June 29, 2021
Pinal Dave
SQL Video
Execution Plan, SQL Function, SQL in Sixty Seconds, SQL Scripts, SQL Server

Based on my recent two videos, I got lots of questions about SUM(1) vs COUNT(1) Performance Battle. Let us see that in today’s video.

Read More
Three tools inspect one populated source while a separate empty tray remains visible.

SQL SERVER – SUM(1) vs COUNT(*) – Performance Observation

June 25, 2021
Pinal Dave
SQL Performance
Execution Plan, SQL Scripts, SQL Server

My Performance Observation found similar counting plans for a nonempty table. SUM(1) and COUNT(*) still differ on empty input.

Read More
Previous 1 2 3 4 5 6 7 … 35 Next
  • Books
  • Testimonials
  • Privacy Policy

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