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
A large and a small copy of the same book on a library shelf, a hand sliding the small one back out.

Case-Insensitive Unique Constraints in a Case-Sensitive Database

September 25, 2023
Pinal Dave
SQL Tips and Tricks
Computed Column, SQL Collation, SQL Constraint and Keys, SQL Index, SQL Server

Enforce case-insensitive unique user names in a case-sensitive database using an indexed computed column with an explicit collation.

Read More
brent pinal

SQL SERVER – Performance: OR vs IN – A Summary and Further Reading

September 12, 2023
Pinal Dave
SQL Performance
Clustered Index, Computed Column, SQL Index, SQL Server

The varied responses led me to write a detailed blog post to clarify the correct answer. If you missed it, you can read it here. Let us see A Summary and Further Reading.

Read More
retrieve column names

SQL SERVER – Scripts to Retrieve Column Names

August 22, 2023
Pinal Dave
SQL Tips and Tricks
Computed Column, SQL Column, SQL DMV

Understanding how to retrieve column names from a table is one of the fundamental operations you should be familiar with.

Read More
Hatpins with repeated colored heads and one bare pin in a fabric cushion

COUNT(*), COUNT(column) and COUNT(DISTINCT): Basics That Trip People

March 5, 2021
Pinal Dave
SQL Tips and Tricks
Computed Column, SQL Column, SQL Server

Why do two counts of the same table disagree? Five tiny demos show NULL, blank text, LEFT JOIN placeholders, bigint and join multiplication.

Read More
Compute Scalar Operators

SQL SERVER – Computed Column and Compute Scalar Operators

July 11, 2020
Pinal Dave
SQL Performance
Computed Column, Execution Plan, SQL Function, SQL Operator, SQL Scripts, SQL Server

One of my clients recently asked me a very interesting question about the computed column and Compute Scalar Operators. Let us learn about it today.

Read More
two identity columns

SQL SERVER – Having Two Identity Columns for A Single Table

June 5, 2020
Pinal Dave
SQL Tips and Tricks
Computed Column, SQL Identity, SQL Scripts, SQL Server, SQL Server DBCC

In yesterday’s session, a DBA asked an interesting question that if it is possible to have two identity columns for a single table. Yes and No. 

Read More
A potato spiralizer preserving a fine ribbon beside coarse whole potato pieces

AVG of an Integer Column Returns an Integer: Getting Decimals Back

October 3, 2019
Pinal Dave
SQL Tips and Tricks
Computed Column, SQL Column, SQL Server

The dashboard says the average is 1 when everyone can see it is 1.5. Here is why AVG does that and the one-line fix.

Read More
1 2 3 4 Next
  • Books
  • Testimonials
  • Privacy Policy

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