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 market stall of identical brown paper bags, a hand opening them one by one to find what is inside.

Entity-Attribute-Value Tables: Why They Hurt Queries

May 8, 2020
Pinal Dave
SQL Tips and Tricks
JSON, Normalization, Schema, SPARSE Columns, SQL Server

Understand entity-attribute-value query costs, lost types, indexing limits, and alternatives using real columns, sparse columns, or JSON.

Read More
Bracelet with attachable moon, gem, and leaf ornaments beside a fixed cuff

JSON or Real Columns: Deciding Where Attributes Live

August 23, 2014
Pinal Dave
SQL Tips and Tricks
Computed Column, JSON, Normalization

Putting everything in a JSON column is tempting. Here is what it costs in reads, type checks and null handling, and when to promote a property.

Read More
Slim bicycle beside its detached bulky canvas pannier

Vertical Partitioning: Moving Rarely Used Columns Off a Hot Table

June 2, 2014
Pinal Dave
SQL Tips and Tricks
Normalization, SQL Data Storage, SQL Performance

Moving rarely used columns to a side table can cut reads, or change nothing. Here is how to measure it and what it costs your writes.

Read More
A steel connector joins one cream cord to an eyelet while a second cord remains unattached

Polymorphic Associations: Why One Column Cannot Point at Many Tables

October 15, 2013
Pinal Dave
SQL Tips and Tricks
Normalization, Schema, SQL Constraint and Keys

One column that points at many tables cannot be enforced by SQL Server. Here is the demo, the orphans it allows, and a design that says no to bad rows.

Read More
Gouache painting of storage objects in a row showing time passing: a bound paper ledger, a wooden card catalog drawer with a vermilion handle, a metal filing cabinet, a tall server rack with small lights, and a soft cloud floating above an open shelf.

Evolution of Big Data: From Flat Files to the Lakehouse

October 3, 2013
Pinal Dave
SQL Tips and Tricks
Cloud Computing, Data Warehousing, Database, Normalization

Evolution of Big Data follows one pattern: data grew, the old tool strained, and someone built the next one. This post walks from flat files and the relational model through warehouses and the cloud to the lakehouse.

Read More
Three tables side by side. Orders has four rows and Plants has five rows. The OrderItems table between them has seven rows, and each row pairs one order number with one plant number and a quantity

Many-to-Many Bridge Table in SQL Server: Model and Query It

August 8, 2011
Pinal Dave
SQL Tips and Tricks
Normalization, SQL Constraint and Keys, SQL Joins, SQL Scripts

A many-to-many bridge table links two tables that each have many partners in the other, such as orders and plants. This post builds one with a composite key and two foreign keys, then joins it three ways. It also shows what the keys block and why an inner join hides plants nobody ordered.

Read More
A mandoline slices a cucumber beside separate dishes of cucumber and radish slices.

Turning a Comma-Separated Column Into a Proper Child Table

December 20, 2010
Pinal Dave
SQL Tips and Tricks
CSV, Normalization, SQL Constraint and Keys, SQL String, SQL Table Operation

A list stuffed in one column makes every search a guess. Split it, clean it and move it into a child table, then check the result before you drop anything.

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

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