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
Shiny golden coins and dollar bills.

SQL SERVER – Puzzle – Error While Converting Money to Decimal

December 5, 2010
Pinal Dave
SQL Puzzle
SQL Datatype, SQL Scripts, SQL Server

The answer to my puzzle on Converting Money to DECIMAL(5,2): why it fails with arithmetic overflow, and why DECIMAL(7,2) works, since precision includes scale.

Read More
SQL SERVER - 3 Simple Puzzles - Need Your Suggestions

SQL SERVER – 3 Simple Puzzles – Need Your Suggestions

December 1, 2010
Pinal Dave
SQL Puzzle

Last month I posted three simple puzzles on the FAST hint, converting money to decimal and RIGHT JOIN. Send your answers and I will publish them with credit.

Read More
SQL SERVER - Challenge - Puzzle - Why does RIGHT JOIN Exists

SQL SERVER – Challenge – Puzzle – Why does RIGHT JOIN Exists

November 28, 2010
Pinal Dave
SQL Puzzle
SQL Scripts

If LEFT JOIN does the same work, the puzzle is why RIGHT JOIN exists at all. Can you show a case where it is truly required? Share your answer.

Read More
SQL SERVER - Puzzle - Challenge - Error While Converting Money to Decimal

SQL SERVER – Puzzle – Challenge – Error While Converting Money to Decimal

November 27, 2010
Pinal Dave
SQL Puzzle
SQL Error Messages, SQL Scripts

A puzzle for you: why does converting money to decimal throw Msg 8115, an arithmetic overflow error, when you cast 12345.67 as DECIMAL(5,2)? Share your answer.

Read More
SQL SERVER - Challenge - Puzzle - Usage of FAST Hint

SQL SERVER – Challenge – Puzzle – Usage of FAST Hint

November 26, 2010
Pinal Dave
SQL Puzzle

When does the FAST hint help? It asks SQL Server to return the first rows quickly, yet my tests showed no change in time. Can you find a good example?

Read More
SQL SERVER - SQL Challenge - SQL Puzzle - Query Creating Most TempDB IO Usage

SQL SERVER – SQL Challenge – SQL Puzzle – Query Creating Most TempDB IO Usage

October 27, 2010
Pinal Dave
SQL Puzzle
Best Practices, Database, SQL Scripts, SQL TempDB

My SQL puzzle: which queries create the most TempDB IO and grow its size? Answer with any DMV, and all valid answers get published here with credit.

Read More
SQL SERVER - SQL Quiz - The View, The Table and The Clustered Index Confusion

SQL SERVER – SQL Quiz – The View, The Table and The Clustered Index Confusion

October 7, 2010
Pinal Dave
SQL Puzzle
SQL View

I am a quiz master in Jacob Sebastian’s month-long SQL Quiz. My question: if you index a view built on a table, does the table have two clustered indexes?

Read More
Previous 1 … 20 21 22 23 24 25 26 27 Next
  • Books
  • Testimonials
  • Privacy Policy

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