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
Two red ceramic pitchers stand beside a blue pitcher on a sunlit workbench.

SUM DISTINCT: Equal Amounts Are Not Duplicate Rows

August 14, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL NULL, SQL Scripts, SQL Server

SUM DISTINCT totals different amounts without checking order identity. I’d establish the row grain first. Compare equal-priced orders, repeated copies and missing amounts.

Read More
SQL SERVER - Reason for SQL Server Agent Starting Before SQL Server Engine Service

SQL SERVER – Reason for SQL Server Agent Starting Before SQL Server Engine Service

August 13, 2009
Pinal Dave
SQL Tips and Tricks
Database, SQL Server Agent, SQL Server Security

Why is SQL Server Agent starting before SQL Server Engine service? A user group member asked me, and here are my quick reasons, from jobs to OS tasks.

Read More
SQL SERVER - Backup master Database Interval - master Database Best Practices

SQL SERVER – Backup master Database Interval – master Database Best Practices

August 12, 2009
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Backup and Restore

How often should you back up master? It holds logins and server settings, so here are my master database best practices for backup timing.

Read More
SQL SERVER - Discussion - Effect of Missing Identity on System - Real World Scenario

SQL SERVER – Discussion – Effect of Missing Identity on System – Real World Scenario

August 11, 2009
Pinal Dave
SQL Puzzle
Database, DBA, SQL Constraint and Keys, SQL Index

Is there any real world reason to list a missing identity in a table? Readers had no new script, but a lively discussion on whether gaps matter.

Read More
Gouache painting: a round revolving spice carousel stands on a counter with seven jars around its rim, one lid vermilion to mark the first position

Modulo: Negative Values Keep the Dividend Sign

August 10, 2009
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

Modulo can return a negative remainder for a negative dividend. A second expression normalizes a positive-divisor bucket while keeping the original input and remainder visible.

Read More
SQLAuthority News - Interview with SQL Server MVP Glenn Berry

SQLAuthority News – Interview with SQL Server MVP Glenn Berry

August 9, 2009
Pinal Dave
SQLAuthority News
Database, MVP

My interview with SQL Server MVP Glenn Berry, Database Architect at NewsGator and longtime SQL Server teacher at University of Denver.

Read More
SQL Server - Multiple CTE in One SELECT Statement Query

SQL Server – Multiple CTE in One SELECT Statement Query

August 8, 2009
Pinal Dave
SQL Tips and Tricks
CTE, SQL Joins, SQL Scripts

How do you use multiple CTE in one SELECT statement? Two simple examples: independent CTEs joined together, and a second CTE built on the first.

Read More
Previous 1 … 690 691 692 693 694 695 696 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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