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
Error dialog showing an error in an SQL query.

SQL SERVER – Understanding Table Hints with Examples

November 19, 2009
Pinal Dave
SQL Performance
SQL Joins, SQL Scripts

What are hints in SQL Server and when should you use them? Understanding table hints with examples, plus a word of caution about overriding the optimizer.

Read More
SQL SERVER - Interesting Observation - Query Hint - FORCE ORDER

SQL SERVER – Interesting Observation – Query Hint – FORCE ORDER

October 6, 2009
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Index, SQL Joins, SQL Scripts, SQL Server

A junior developer used the FORCE ORDER query hint without knowing what it does. Here is how it works and how much this one hint can change performance.

Read More
SQL SERVER - Outer Join in Indexed View - Question to Readers

SQL SERVER – Outer Join in Indexed View – Question to Readers

September 25, 2009
Pinal Dave
SQL Performance
SQL Index, SQL Joins, SQL View, SQL White Papers

Why can’t you use an outer join in indexed view definitions? The SQL Server 2008 white paper answer, plus my question to you: can you show an example?

Read More
Two long layered ice cores side by side, a gloved hand stretching a red thread across both at the same band.

Joining Two History Tables at a Point in Time With FOR SYSTEM_TIME AS OF

August 19, 2009
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Joins, SQL Server, Temporal Table

Use FOR SYSTEM_TIME AS OF to join temporal tables at one UTC instant, compare range forms, and index the history lookup correctly.

Read More
SQL Server - Multiple CTE in One SELECT Statement Query

SQL Server – Multiple CTE in One SELECT Statement Query

August 8, 2009
Pinal Dave
SQL Tips and Tricks
CTE, SQL Joins, SQL Scripts

How do you use multiple CTE in one SELECT statement? Two simple examples: independent CTEs joined together, and a second CTE built on the first.

Read More
Six empty ceramic cups in two rows, with terracotta, blue and pale glazes.

CROSS APPLY VALUES: Unpivot Fixed Columns and Preserve NULLs

July 3, 2009
Pinal Dave
SQL Tips and Tricks
PIVOT and UNPIVOT, SQL Joins, SQL Scripts, SQL Server

CROSS APPLY VALUES can turn a fixed set of columns into rows without dropping their NULL values. I make any missing-value filter explicit. That keeps the reshaping step separate from the decision to exclude data.

Read More
SQL Server - Understanding Table Hints with Examples

SQL Server – Understanding Table Hints with Examples – 2

June 20, 2009
Pinal Dave
SQL Performance
Query Hint, SQL Joins, SQL Scripts

A plain guide to understanding table hints in SQL Server: the three kinds of hints, what NOLOCK really means, and a checklist before you use one.

Read More
Previous 1 … 9 10 11 12 13 14 15 … 21 Next
  • Books
  • Testimonials
  • Privacy Policy

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