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 pale jigsaw puzzle with one red piece fitting into the gap and two loose gray pieces lying to the side.

Joining Tables in SQL Server: INNER, LEFT and FULL Joins

August 8, 2013
Pinal Dave
SQL Tips and Tricks
Database, SQL Joins, SQL NULL, SQL Scripts, SQL Table Operation

Joining Tables lets one query combine rows from two tables that share a value. This post uses small Customers and Orders tables to show what INNER, LEFT and FULL OUTER joins return, how many rows each one gives, and how to read the rows that have no match.

Read More
Gouache illustration for INNER JOIN: two matching oak corners use the same fitted joint construction.

SQL – Difference Between INNER JOIN and JOIN

July 16, 2013
Pinal Dave
SQL Tips and Tricks
SQL Joins, SQL Scripts, SQL Server

INNER JOIN and JOIN express the same inner join in this T-SQL syntax. I prefer spelling out the join type for readability.

Read More
A hand picking a red lure from an open, neatly sorted tackle box

A T-SQL Cheat Sheet for Everyday Work

July 9, 2013
Pinal Dave
SQL Tips and Tricks
Cheatsheet, SQL Joins, SQL Server, SQL Transactions, Starting SQL

This T-SQL cheat sheet gathers daily SELECT, JOIN, GROUP BY, window, TRY_CONVERT, and transaction patterns with short examples.

Read More
Image of database table.

SQL SERVER – Script to Update a Specific Column in Entire Database

June 4, 2013
Pinal Dave
SQL Tips and Tricks
SQL Joins

A reader added a ModifiedDate column to every table and left it NULL. Here is a script to update a specific column in the entire database at once.

Read More
SQL SERVER - DELETE From SELECT Statement - Using JOIN in DELETE Statement - Multiple Tables in DELETE Statement

SQL SERVER – DELETE From SELECT Statement – Using JOIN in DELETE Statement – Multiple Tables in DELETE Statement

May 3, 2013
Pinal Dave
SQL Tips and Tricks
SQL Joins

After my UPDATE from SELECT post, many readers asked about using JOIN in DELETE statement. It is possible, and I show how with multiple tables.

Read More
SQL SERVER - UPDATE From SELECT Statement - Using JOIN in UPDATE Statement - Multiple Tables in Update Statement

SQL SERVER – UPDATE From SELECT Statement – Using JOIN in UPDATE Statement – Multiple Tables in Update Statement

April 30, 2013
Pinal Dave
SQL Tips and Tricks
SQL Joins

A developer wrote a cursor because he did not know how to UPDATE from SELECT. I show how to use JOIN and multiple tables in an UPDATE statement.

Read More
A hand topping cupcakes with red raspberries, the last cupcake left plain on the tray.

CROSS APPLY and OUTER APPLY in Everyday Queries

April 13, 2013
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Joins, SQL Scripts, SQL Server

Use CROSS APPLY and OUTER APPLY for per-row functions, reusable expressions, VALUES unpivoting, DMV text, plans, and latest rows.

Read More
Previous 1 … 4 5 6 7 8 9 10 … 21 Next
  • Books
  • Testimonials
  • Privacy Policy

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