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
Accessing previous and next row in query results.

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

September 22, 2013
Pinal Dave
SQL Tips and Tricks
SQL Function

How do you access the previous row and next row value in a SELECT statement? In SQL Server 2012 the LEAD and LAG analytic functions make it simple.

Read More
A rose branch pressing a red doorbell in the wind with nobody at the door.

UPDATE() in a Trigger Is True Even When Nothing Changed

September 21, 2013
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL NULL, SQL Server, SQL Trigger

Understand why UPDATE() in a trigger fires for unchanged SET values and log only real changes with inserted and deleted row comparisons.

Read More
standup meeting

Developer – Best Practices for Daily Stand-Up or Daily Scrum – Rules and Regulations

September 20, 2013
Pinal Dave
SQL Tips and Tricks
Best Practices

Scrum is an Agile Software Development framework that helps teams complete projects efficiently while maintaining high quality.

Read More
Hands sorting loose screws and nuts into a muffin tin, one cup empty and one bent screw set apart

Turning Key-Value Pairs Into Columns for Reporting

September 19, 2013
Pinal Dave
SQL Tips and Tricks
PIVOT and UNPIVOT, SQL Reports, SQL Scripts, SQL Server

Turn key-value pairs into reporting columns with conditional aggregation and PIVOT, handle missing values and conversions.

Read More
Veneer packets beside one aligned marquetry band and an unused duplicate strip

Set Operator Rules: Column Names, Types and ORDER BY With UNION

September 18, 2013
Pinal Dave
SQL Tips and Tricks
SQL Operator, SQL Server, SQL Union clause

Why did my UNION change its headers, fail on a word, or sort wrong? Small examples show each rule and the error it produces.

Read More
Berry picker gathering several berries beside one berry handled separately

Single-Row Inserts in a Loop: Why Commits Cost So Much

September 17, 2013
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Transactions, SQL Wait Stats

A loop that inserts one row at a time waits for the log on every row. Here is how to see it, and three ways to wait far less.

Read More
SQLCMD Mode.

SQL SERVER – Execute Operating System Commands in sqlcmd

September 16, 2013
Pinal Dave
SQL Tips and Tricks
sqlcmd

Tired of leaving sqlcmd to check something in Windows? Here is a simple trick to execute operating system commands while you are still in the sqlcmd prompt.

Read More
Previous 1 … 310 311 312 313 314 315 316 … 572 Next
  • Books
  • Testimonials
  • Privacy Policy

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