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
Feb1

Slowly Changing Dimension Quiz: Type 1 or Type 2?

Pinal Dave
SQL Puzzle
Business Intelligence, Data Warehousing, ETL
2 Comments

This Slowly Changing Dimension Quiz asks which type to use when a customer moves from Denver to Austin and sales before the move must stay under Denver. The answer is Type 2. A tested script runs Type 1 and Type 2 side by side, checks the move date and shows both reports.

Continue Reading
Jan31

Table Partitioning Quiz: When Does It Make a Query Faster?

Pinal Dave
SQL Puzzle
Execution Plan, SQL Index, SQL Performance, Table Partitioning
2 Comments

This Table Partitioning Quiz asks whether a query for last month runs faster once a sales table is partitioned by month. The answer is only when the filter lets SQL Server skip partitions. A tested script shows the partition count, the reads, and a partition SWITCH.

Continue Reading
Jan30

Query Store Quiz: Where Is Last Week’s Slow Query?

Pinal Dave
SQL Puzzle
Execution Plan, Query Store, SQL Performance, SQL Server 2022
2 Comments

This Query Store Quiz starts with a slow query from last week and a plan cache that restarted empty. The answer is Query Store, which keeps plans and run times inside the database. A tested T-SQL script finds the query, its plan and its duration.

Continue Reading
Jan29

Reclaiming Space Quiz: Does Deleting Rows Shrink the File?

Pinal Dave
SQL Puzzle
Shrinking Database, SQL Data Storage, SQL Index, SQL Performance
No Comments

This Reclaiming Space Quiz asks what happens to the data file after you delete half the rows of a big table. The file keeps its size, and the space stays free inside it. A tested script shows the numbers, then what a shrink costs.

Continue Reading
Jan28

Date Functions Quiz: What Does DATEDIFF Count?

Pinal Dave
SQL Puzzle
SQL Datatype, SQL DateTime, SQL Function
1 Comment

This Date Functions Quiz asks what DATEDIFF returns for two dates one day apart, when the unit is year. The answer is 1, because DATEDIFF counts boundaries crossed. A tested script shows an age calculation that works, plus DATETRUNC and EOMONTH.

Continue Reading
Jan27

Common Table Expressions Quiz: Why Did My Second Query Fail?

Pinal Dave
SQL Puzzle
CTE, SQL Coding Standards, SQL Error Messages
4 Comments

This Common Table Expressions Quiz defines one CTE, reads it once, and then reads it again. The answer is error 208, because a CTE lives for one statement only. A tested script shows the error, the missing semicolon trap and the recursion limit.

Continue Reading
Jan26

SQLAuthority News – Interview with Book Authors after 2 Months of Book Released

Pinal Dave
SQL Interview Questions and Answers
SQLAuthority Book Review
3 Comments

Sanjay Shetty and Raj Chaudhuri of INETA APAC did an interview with book authors Vinod Kumar and me, two months after our interview book came out.

Continue Reading
Previous 1 … 555 556 557 558 559 560 561 … 847 Next

SQL Server slow? Let's fix it together in about four hours.

Pinal Dave

In my Comprehensive Database Performance Health Check, you share your screen, I guide you, and we fix your biggest performance troublemakers. No passwords. No remote access.

You keep every script, and the know-how to fix it yourself next time.

Want your whole team to learn it?

My Practical Workshop has no PowerPoint, just live demos. My AI Enablement Workshop shows your team where AI saves hours, and where it quietly costs them.

Over 400 customers have worked with me this way, and not one shared a password. See all consulting options.


Who We Are

Pinal Dave is an SQL Server Performance Tuning Expert and independent consultant with over 24 years of hands-on experience. He holds a Masters of Science degree and numerous database certifications.

Pinal has authored 19 books and 125 Pluralsight courses. To freely share his knowledge and help others build their expertise, Pinal has also written more than 5,800 database tech articles on his blog at https://blog.sqlauthority.com.

Pinal is also a CrossFit Level 1 Trainer (CF-L1) and CrossFit Level 2 Trainer (CF-L2).


Nupur Dave is a social media enthusiast and an independent consultant. She primarily focuses on the database domain, helping clients build short and long-term multi-channel campaigns to drive leads for their sales pipeline.


Shaivi Pinalkumar Dave is a book author and a women’s artistic gymnast.

  • Books
  • Testimonials
  • Privacy Policy

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