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
Gouache painting of five matching tea cups in a row with the second from the left in vermilion

Get the Second Row From a Table in SQL Server

October 28, 2019
Pinal Dave
SQL Tips and Tricks
Ranking Functions, SQL Function, SQL Scripts, Temp Table

To get the second row from a table, first decide what second means, because a table has no order until you give it one. This post builds a small demo and compares ROW_NUMBER, OFFSET and FETCH, and TOP inside TOP. It also covers every second row, the second row in each group, ties and the cost of each method.

Read More
Illustrated cover: Table Variable vs Temp Table

SQL SERVER – Table Variables or Temp Tables – Performance Comparison – SELECT

September 23, 2019
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL TempDB, SQL Variable, Temp Table

Today we are going to discuss the performance comparison of table variables and temp tables when we are running SELECT queries.

Read More
Temporary luggage rests in designated storage spaces on a shelf

Where is Table Variable Created? – Interview Question of the Week #243

September 22, 2019
Pinal Dave
SQL Interview Questions and Answers
Disk, SQL Scripts, SQL Server, SQL TempDB, Temp Table

Question: Where is Table Variable Created?

Answer: On Hard Disk and NOT in Memory.

I suggest you read the following blogs

Read More
Illustrated cover: #Temp

SQL SERVER – Table Variable or Temp Table – Performance Comparison – INSERT

September 21, 2019
Pinal Dave
SQL Performance
SQL Scripts, SQL Server, SQL Variable, Temp Table

In this blog post, we will talk about Performance Comparison between Table Variable or Temp Table. Comprehensive Database Performance Health Check

Read More
Illustrated cover: Temp Table Logging

SQL SERVER – Regular Table or Temp Table – TempDB Logging Explained

September 20, 2019
Pinal Dave
SQL Performance
SQL Scripts, SQL Server, SQL TempDB, Temp Table, Transaction Log

After the blog posts about temp and regular table, I have received questions about it hence I am writing this blog post about TempDB Logging.

Read More
Illustrated cover: Regular vs Temp Table

SQL SERVER – Regular Table or Temp Table – A Quick Performance Comparison

September 19, 2019
Pinal Dave
SQL Performance
ETL, SQL Scripts, SQL Server, Temp Table

For a data load, which is faster: a regular table or temp table? My client asked, and I answered with proof and a working demo you can run yourself.

Read More
A garden path of alternating cream and blue slabs from a red slab at the gate, one slab missing by a tree root

A Schedule Table That Repeats Every Other Week

September 2, 2019
Pinal Dave
SQL Tips and Tricks
SQL System Table, SQL Table Operation, Table Partitioning, Temp Table

Build an every other week schedule in T-SQL, skip holiday dates, find the next occurrence, and check rota weeks from one anchor.

Read More
Previous 1 2 3 4 5 6 7 … 11 Next
  • Books
  • Testimonials
  • Privacy Policy

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