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 joins tool.

MySQL – How to do Natural Join in MySQL? – A Key Difference Between Inner Join and Natural Join

March 10, 2014
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Joins

MySQL supports NATURAL JOIN, which maps matching columns from both tables on its own. I show how it works and the key difference from INNER JOIN.

Read More
MySQL - Reset Row Number for Each Group - Partition By Row Number

MySQL – Reset Row Number for Each Group – Partition By Row Number

March 9, 2014
Pinal Dave
SQL Tips and Tricks
MySQL, Ranking Functions

MySQL has no ROW_NUMBER() OVER (PARTITION BY), so here is how to reset row number for each group with a variable, using a simple example.

Read More
A corridor of wooden gym lockers with small brass number plates, receding into soft light.

MySQL – Generating Row Number for Each Row Using Variable

March 8, 2014
Pinal Dave
SQL Tips and Tricks
MySQL, Ranking Functions, SQL Scripts

MySQL has no ROW_NUMBER() function like SQL Server. Here are two methods for generating row number values for each row with a variable in a SELECT statement.

Read More
SQL SERVER - Retrieve Maximum Length of Object Name with sp_server_info

SQL SERVER – Retrieve Maximum Length of Object Name with sp_server_info

March 7, 2014
Pinal Dave
SQL Tips and Tricks
SQL Stored Procedure

How long can a table name be in SQL Server? The answer is 128, and you can confirm it yourself by running the stored procedure sp_server_info.

Read More
Diagram of performance statistic collection: Windows Perfmon every five minutes, loaded into a database, an SSRS report, emailed every morning to the administrators, with the Windows Server and SQL Server counter groups to collect

Performance Statistic Collection: Notes from the Field #018

March 6, 2014
Pinal Dave
SQL Performance
Notes from the Field, SQL Counter, SQL Monitoring, SQL Performance, SQL Server

Good tuning starts with good numbers. In Notes from the Field #018, David Klee explains performance statistic collection and how DBAs should gather server data.

Read More
A cannoli forming tube beside a filled pastry shell and an empty matching shell

Sending an HTML Table by Email With sp_send_dbmail

March 5, 2014
Pinal Dave
SQL Tips and Tricks
Database Mail, HTML, SQL XML

Turn a wall of report text into a clean table. FOR XML PATH escapes your data, and a few small tricks handle NULL values and empty days.

Read More
A chalk line reel beside a persistent blue mark and cord ready for another snap

The Outbox Table: Publishing Changes Reliably From a Transaction

March 4, 2014
Pinal Dave
SQL Tips and Tricks
Output Clause, SQL Lock, SQL Transactions

Orders commit and the message vanishes? Save both in one transaction, then let a worker claim, send and retry with a lease. Duplicates are still possible.

Read More
Previous 1 … 441 442 443 444 445 446 447 … 845 Next
  • Books
  • Testimonials
  • Privacy Policy

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