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
SQL SERVER - Solution to Puzzle - Shortest Code to Perform SSN Validation

SQL SERVER – Solution to Puzzle – Shortest Code to Perform SSN Validation

April 29, 2009
Pinal Dave
SQL Puzzle
Database, SQL Scripts

My solution to Jacob Sebastian’s puzzle: the shortest T-SQL code for SSN validation that removes invalid SSN values and returns only the valid ones.

Read More
SQL SERVER - Observation - Effect of Clustered Index over Nonclustered Index

SQL SERVER – Observation – Effect of Clustered Index over Nonclustered Index

February 4, 2009
Pinal Dave
SQL Puzzle
SQL Constraint and Keys, SQL Index, SQL Scripts

An observation from my query optimization work: the effect of clustered index on a nonclustered index, shown with a sample table and execution plans.

Read More
SQL SERVER - T-SQL Script for FizzBuzz Logic

SQL SERVER – T-SQL Script for FizzBuzz Logic

February 2, 2009
Pinal Dave
SQL Puzzle
SQL Scripts

FizzBuzz is a common interview puzzle: print 1 to 100, with Fizz for multiples of three and Buzz for five. Here is my T-SQL answer using a WHILE loop.

Read More
puzzle

SQL SERVER – Interview Questions – Difficult SQL Puzzle

December 7, 2008
Pinal Dave
SQL Puzzle
Database, SQL Scripts, SQL Server

Today at my organization, we had nearly 30 interviews scheduled of DBA and .NET developers. Let us see a difficult SQL puzzle.

Read More
SQL SERVER - Puzzle - Computed Columns Datatype Explanation

SQL SERVER – Puzzle – Computed Columns Datatype Explanation

September 27, 2008
Pinal Dave
SQL Puzzle
MVP, SQL Scripts

Jacob Sebastian explains that SQL Server casts to the data type with the highest precedence. That leads to my puzzle on computed columns datatype.

Read More
SQL SERVER - Simple Puzzle Using Union and Union All - Answer

SQL SERVER – Simple Puzzle Using Union and Union All – Answer

March 25, 2008
Pinal Dave
SQL Puzzle
Database, SQL Joins, SQL Scripts

The answer to yesterday’s Simple Puzzle Using Union and Union All, explained with an image. My UNION vs. UNION ALL article explains why it works.

Read More
SQL SERVER - Simple Puzzle Using Union and Union All

SQL SERVER – Simple Puzzle Using Union and Union All

March 24, 2008
Pinal Dave
SQL Puzzle
SQL Scripts, SQL Utility

A simple puzzle using UNION and UNION ALL: guess the output of two short scripts before you run them. The hint is my article on UNION vs. UNION ALL.

Read More
Previous 1 … 18 19 20 21 22 Next
  • Books
  • Testimonials
  • Privacy Policy

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