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 bulb planter beside separate clusters of shoots and empty planting hollows

Cohort Retention Tables in T-SQL: From Raw Events to a Grid

October 6, 2013
Pinal Dave
SQL Tips and Tricks
Business Intelligence, CTE, SQL DateTime, SQL Group By

Build a retention grid from raw orders with five rows you can check by eye. Includes the DISTINCT rule and why unfinished months show NULL.

Read More
A wooden cartwheel hub lying flat on a workshop bench with five spokes radiating out from it.

What Is a Star Schema?

March 3, 2013
Pinal Dave
SQL Tips and Tricks
Business Intelligence, Data Warehousing, Database, SQL Server

A star schema is one fact table surrounded by dimension tables. What facts and dimensions hold, why grain is the decision you cannot undo, why the data repeats on purpose, and a worked example in AdventureWorksDW.

Read More
A stone sundial in a walled garden at midday with a crisp shadow, a trowel and a basket of cut flowers on its plinth.

Designing a Date Dimension

January 20, 2013
Pinal Dave
SQL Tips and Tricks
Business Intelligence, Data Warehousing, SQL DateTime, SQL Server

A date dimension makes reporting calendars explicit with fiscal periods, holidays, weekdays, and a repeatable SQL Server build script.

Read More
SQL SERVER - Step by Step Guide to Beginning Data Quality Services in SQL Server 2012 - Introduction to DQS

SQL SERVER – Step by Step Guide to Beginning Data Quality Services in SQL Server 2012 – Introduction to DQS

September 4, 2012
Pinal Dave
SQL Tips and Tricks
Business Intelligence, Data Quality Services, Data Warehousing, SQL Server

A step by step introduction to Data Quality Services in SQL Server 2012 for beginners: build a Knowledge Base from an Excel file and use it to spot bad data.

Read More
A winding garden path with two small houses along it, the nearer older house with a red front door.

Slowly Changing Dimension Quiz: Type 1 or Type 2?

February 1, 2012
Pinal Dave
SQL Puzzle
Business Intelligence, Data Warehousing, ETL

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.

Read More
Two empty baking tins on a floured bench, a deep square one and a long shallow one, a hand reaching for the long tin.

SSAS Tabular vs Multidimensional: Choosing for a New Project

September 22, 2011
Pinal Dave
SQL Tips and Tricks
Business Intelligence, Data Warehousing, SQL Analysis Services, SQL Server

Compare Tabular vs Multidimensional for SSAS projects, including storage, relationships, write-back, team skills, and model checks.

Read More
A dog with a plain brass tag on its collar sitting beside a pile of older collars in different colors and sizes.

Surrogate Keys and Natural Keys

September 18, 2011
Pinal Dave
SQL Tips and Tricks
Business Intelligence, Data Warehousing, Primary Key, SQL Constraint and Keys, SQL Server

Surrogate keys keep warehouse history stable while natural keys preserve source identity; learn lookup, uniqueness, and change handling.

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

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