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 barn weathervane pointing one way while the wheat field below bends the other way in a gust.

When Auto Update Statistics Is Not Enough

December 4, 2010
Pinal Dave
SQL Performance
DBA, Execution Plan, SQL Performance, SQL Statistics

Auto update statistics can miss important data patterns; inspect thresholds, ascending keys, sampling, and targeted update schedules.

Read More
Gouache painting: two sandwiches sit on matching plates and look identical from the front

CONCAT: Missing Inputs Produce Present Text

December 3, 2010
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Server

CONCAT builds display text from available inputs. Preserve missing-source flags when output alone cannot prove completeness.

Read More
Folded deckchairs taken from a tall stack and opened one by one in a long row along the beach.

Unpivoting Columns Into Rows With CROSS APPLY and VALUES

December 2, 2010
Pinal Dave
SQL Tips and Tricks
PIVOT and UNPIVOT, SQL NULL, SQL Scripts, SQL Server

Use CROSS APPLY and VALUES for unpivoting columns, retain nulls deliberately, preserve labels, and turn paired fields into aligned rows.

Read More
Gouache painting: three clarinet cases on a wooden table, one holding a single clarinet, one with two clarinets crammed in, and a larger case lined in deep red

WITHOUT_ARRAY_WRAPPER: Keep JSON Cardinality Explicit

December 1, 2010
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

WITHOUT_ARRAY_WRAPPER needs a single-row JSON contract. Compare one object with two unwrapped objects and validate the complete generated text.

Read More
A small pile of matching wooden beads with one visibly different bead separated on a table.

Finding the One Row That Broke Your Data Load

November 30, 2010
Pinal Dave
SQL Tips and Tricks
Best Practices, Data Warehousing, Database, ETL

Trace a data load error to its source row with raw staging, TRY_CONVERT, stable row identifiers, and a rejection report that supports a safe retry.

Read More
SQL SERVER - DBA or DBD? - Database Administrator or Database Developer

SQL SERVER – DBA or DBD? – Database Administrator or Database Developer

November 29, 2010
Pinal Dave
SQL Tips and Tricks
Database, DBA

My poll asked if you are a Database Administrator or Database Developer. Of 694 voters, 63.4% chose developer, so maybe DBD earns a dictionary spot.

Read More
SQL SERVER - Challenge - Puzzle - Why does RIGHT JOIN Exists

SQL SERVER – Challenge – Puzzle – Why does RIGHT JOIN Exists

November 28, 2010
Pinal Dave
SQL Puzzle
SQL Scripts

If LEFT JOIN does the same work, the puzzle is why RIGHT JOIN exists at all. Can you show a case where it is truly required? Share your answer.

Read More
Previous 1 … 617 618 619 620 621 622 623 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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