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 full molasses ladle hangs beside an empty ladle and a bare hook.

Percent Change Between Rows: Handling Zero and NULL Safely

December 13, 2008
Pinal Dave
SQL Tips and Tricks
Best Practices, Mathematical Function, SQL Function, SQL NULL

One zero month can kill a revenue report. Here is how to get percent change without errors or lies.

Read More
Gouache painting: on a glassworker's bench, a long clear glass cane lies against a fixed stop block that only allows whole-unit lengths

POWER: Why an Integer Base Changes Fractional Results

December 2, 2008
Pinal Dave
SQL Tips and Tricks
Mathematical Function, SQL Datatype, SQL Server

POWER uses the base type when returning a result. Cast before calculation when fractional results matter and inspect decimal precision and scale.

Read More
A curved brass strip over a straight ivory bar between dark wooden end blocks, beside two ochre stones.

ACOS: Check the Cosine Domain Before Calculating Angles

May 4, 2008
Pinal Dave
SQL Tips and Tricks
Mathematical Function, SQL Function, SQL Server

ACOS calculates an angle from a supported cosine ratio. Keep invalid and missing inputs visible while displaying valid radians at a chosen scale.

Read More
A knife leveling flour in the smallest of a set of measuring spoons

Decimal Precision and Rounding in SQL Server

November 12, 2007
Pinal Dave
SQL Tips and Tricks
Mathematical Function, SQL Datatype, SQL Function, SQL Server

Decimal precision in SQL Server controls arithmetic results and rounding; use explicit scales, test boundaries, and compare money with decimal.

Read More
A woven willow arch on a wooden bench with a taut string crossing it at two red-marked points.

ASIN: A Sine Ratio Does Not Recover Every Original Angle

May 4, 2007
Pinal Dave
SQL Tips and Tricks
Mathematical Function, SQL Function, SQL Server

ASIN returns an angle from a sine ratio. Preserve the original branch, use explicit units and keep invalid or missing ratios visible.

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

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