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 rows of colored beads keep the first two positions and reverse the last three

Interview Question of the Week #052 – Print String in Reverse Order

January 3, 2016
Pinal Dave
SQL Interview Questions and Answers

An interview question: how do you print a string in reverse order in SQL Server? Here is how the candidate solved it, with the script.

Read More
A folded paper bridge model sits beside a wooden bridge carrying a loaded cart

Interview Question of the Week #051 – Actual Execution Plan vs. Estimated Execution Plan

December 27, 2015
Pinal Dave
SQL Interview Questions and Answers
Execution Plan, SQL Server, SQL Server Management Studio

Do you use the actual or the estimated execution plan? A candidate asked me this in an interview. I always use the actual plan, and here is why.

Read More
Stone stacks have three distinct heights, with two middle-height stacks and one marked by a vermilion thread

Interview Question of the Week #050 – Query to Retrieve Second Highest Salary of Employee

December 20, 2015
Pinal Dave
SQL Interview Questions and Answers

A classic interview question: write a query to retrieve the second highest salary, or any Nth highest, from an employee table using a correlated subquery.

Read More
A closed vermilion barrier stops access to an intact wooden bridge

Interview Question of the Week #049 – Taking Database Offline

December 13, 2015
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts

Taking database offline is one line of T-SQL with ROLLBACK IMMEDIATE. But what if your boss wants to wait 30 seconds first? Here is that script too.

Read More
A tray holds the contents being moved between two storage chests

Interview Question of the Week #048 – How to Move TempDB to Another Drive?

December 6, 2015
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL TempDB

Can TempDB be moved to a different drive? Yes. Here are two reasons to do it and the exact steps to move TempDB to another drive.

Read More
Repeating groups of stepping stones show five worn weekday stones followed by two unworn stones

Interview Question of the Week #047 – Logic To Find Weekdays Between Two Dates

November 29, 2015
Pinal Dave
SQL Interview Questions and Answers

How do you find weekdays between two dates in SQL Server? Here is a simple user defined function that loops through the dates and skips Saturday and Sunday.

Read More
Seven herb pots form a sequence with the beginning marked by a vermilion pot

Interview Question of the Week #046 – How @@DATEFIRST and SET DATEFIRST Are Related?

November 22, 2015
Pinal Dave
SQL Interview Questions and Answers
SQL DateTime, SQL Scripts

How are @@DATEFIRST and SET DATEFIRST related? One sets the first day of the week for your session, the other reads it back, and language matters too.

Read More
Previous 1 … 35 36 37 38 39 40 41 … 58 Next
  • Books
  • Testimonials
  • Privacy Policy

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