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
TOP and DISTINCT

SQL SERVER – TOP and DISTINCT – Epic Confusion – SQL in Sixty Seconds #141

November 4, 2020
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Operator, SQL Performance, SQL Scripts, SQL Server

DBAs from the client’s organization ended up an argument about how T-SQL works. The discussion was about the epic confusion about TOP and DISTINCT.

Read More
Efficient Query

Performance Challenge – Write Efficient Query – SQL in Sixty Seconds #140

October 30, 2020
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Operator, SQL Performance, SQL Scripts, SQL Server, SQL Server Management Studio

Recently while working with my client I ended up in a very interesting situation where my client wanted me to write an Efficient Query.

Read More
arrow

Arrow in Execution Plan – SQL in Sixty Seconds #136

October 20, 2020
Pinal Dave
SQL Video
Execution Plan, SQL in Sixty Seconds, SQL Operator, SQL Server, SQL Server Management Studio

Do you know what a single arrow means in an execution plan? While we popularly call it the arrow, there is a technical name for these little arrows.

Read More
Gouache painting of three fruit bowls in a row where two hold pears and the middle one is empty and vermilion

Add Columns With NULL in SQL Server: ISNULL, COALESCE or SUM

October 19, 2020
Pinal Dave
SQL Tips and Tricks
SQL NULL, SQL Operator, SQL Scripts

To add columns with NULL in SQL Server, first decide what an empty value means. This post sums three nullable columns with the plus operator, ISNULL, COALESCE and SUM, shows where each one differs on a row of all NULLs, and compares their CPU cost on two million rows.

Read More
Comparison

Performance Comparison – IN vs BETWEEN – SQL in Sixty Seconds #127

October 2, 2020
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Operator, SQL Performance, SQL Scripts, SQL Server

Yesterday I blogged about SQL SERVER – Performance Comparison – BETWEEN, IN, and Operators. Following that, I got many emails about the topic.

Read More
Gouache painting of a wooden marble run with a bend and a single vermilion marble rolling down it

BETWEEN vs IN in SQL Server: Which One Reads Less?

October 1, 2020
Pinal Dave
SQL Performance
SQL Index, SQL Operator, SQL Scripts, SQL Server

BETWEEN vs IN looks like a style choice, and it is not. This post builds a demo table and measures BETWEEN, the two operators and an IN list with and without an index. It shows that BETWEEN and the operators share one plan, that IN seeks once for every value and that sparse values change the question.

Read More
Single Column

Single Column Single Row and TABLE SCAN – SQL in Sixty Seconds #111

August 27, 2020
Pinal Dave
SQL Video
Execution Plan, SQL in Sixty Seconds, SQL Operator, SQL Performance, SQL Scripts, SQL Server

Can a single column and single row result do an entire table scan? I recently got this question in my  Comprehensive Database Performance Health Check.

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

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