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
Three pale ceramic bowls, two filled with blue and terracotta stones and one empty, beside two loose stones.

XQuery Comparisons: General Equality Is Not Singleton Equality

November 22, 2013
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL XML

XQuery Comparisons use different rules for general sequence operators and singleton value operators. I make equality and inequality visible side by side. A general unequal-pair result is not always the inverse of an equal-pair result.

Read More
SQL SERVER - Implementing IF ... THEN in SQL SERVER with CASE Statements

SQL SERVER – Implementing IF … THEN in SQL SERVER with CASE Statements

November 4, 2013
Pinal Dave
SQL Tips and Tricks
SQL Function

Moving IF … ELSE logic from .NET code into a stored procedure? Here is how to rewrite it using CASE statements, with examples for SQL Server 2008 and 2012.

Read More
Gouache painting of a tidy desk with no one at it: a magnifying glass, an open notebook showing a hand-drawn curve and plain dots, a rack of test tubes with colored liquids and a brass compass, one test tube painted vermilion.

What a Data Scientist Does: The Skills That Still Matter

October 25, 2013
Pinal Dave
SQL Tips and Tricks
Business Intelligence, Data Warehousing, Mathematical Function, Python, SQL Function

What a data scientist does is turn a vague question into an answer that people can trust and act on. This post walks through the work as a loop, and shows the summary statistics step in T-SQL on a small bike rental log.

Read More
Gouache painting of a wooden ladder with four rungs leaning against a tall window, with a small brass telescope on the sill at the top looking out over a wide landscape, the top rung painted vermilion.

Big Data Analytics: Descriptive, Diagnostic, Predictive and Prescriptive

October 24, 2013
Pinal Dave
SQL Tips and Tricks
Business Intelligence, Data Warehousing, Mathematical Function, SQL Function

Big Data Analytics answers four kinds of questions: what happened, why it happened, what will happen next and what to do about it. This post climbs that ladder with one small business and shows each step in T-SQL window functions.

Read More
A row of meshed brass gears getting smaller, ending in a tiny red gear, one broken gear set aside

The PRODUCT Aggregate: Multiplying Values Across Rows

October 22, 2013
Pinal Dave
SQL Tips and Tricks
Mathematical Function, SQL Function, SQL NULL, SQL Server

Use the PRODUCT aggregate in SQL Server 2025 for growth factors and independent probabilities, with checks for NULL, zero, and precision.

Read More
Gouache painting of a wooden mail sorting rack where blank envelopes in three colors are sorted into their own columns, with three bundles tied with string at the end of the counter, one tied in vermilion.

MapReduce Explained: Map, Shuffle and Reduce Step by Step

October 9, 2013
Pinal Dave
SQL Tips and Tricks
Data Warehousing, Database, Parallel, SQL Function

MapReduce splits a big job into many small map tasks, moves the results by key in a shuffle, and adds them up in reduce tasks. This post walks one word count through every step, with a recreated diagram and the same idea in T-SQL.

Read More
SQL SERVER - How to Access the Previous Row and Next Row value in SELECT statement? - Part 4

SQL SERVER – How to Access the Previous Row and Next Row value in SELECT statement? – Part 4

September 25, 2013
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL Table Operation

Part 4 on reading the previous row and next row value in a SELECT statement. My friend Szymon Wojcik shows how a numbers table can make the query even faster.

Read More
Previous 1 … 27 28 29 30 31 32 33 … 92 Next
  • Books
  • Testimonials
  • Privacy Policy

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