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 query editor displaying variable.

SQL SERVER – Fix Error: Invalid object name STRING_SPLIT

May 3, 2018
Pinal Dave
SQL Tips and Tricks
Compatibility Level, SQL Error Messages, SQL Function, SQL Scripts, SQL Server, SQL String

A reader on SQL Server 2016 got Invalid object name STRING_SPLIT when trying the new function. Here is why the error shows up and how to fix it.

Read More
Year 1904 Answer.

SQL SERVER – Puzzle – How Does YEAR Function Work?

March 13, 2018
Pinal Dave
SQL Puzzle
SQL DateTime, SQL Function, SQL Scripts, SQL Server

SELECT YEAR(35000/20) returns 1904, which looks strange. This puzzle shows how the YEAR function treats a plain integer. Can you explain the result?

Read More
A ceramic channel takes one of two simple paths

What is Alternative to CASE Statement in SQL Server? – IIF Function – Interview Question of the Week #164

March 11, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL Function, SQL Scripts, SQL Server

What is the alternative to CASE statement in SQL Server? The IIF function. Here are two examples of CASE and IIF, and why IIF deserves more use.

Read More
Four bead strands show distinct leading beads in widened receiving recesses.

SQL SERVER – Puzzle – Get the First Name From Full Name Without CHARINDEX

February 21, 2018
Pinal Dave
SQL Puzzle
SQL Function, SQL Scripts, SQL Server, SQL String

This First Name From Full Name puzzle excludes CHARINDEX and SUBSTRING. It came from a customer query during a performance health check.

Read More
A row of vessels with equal fill heights grouped across a selection boundary

How Does TOP WITH TIES Work in SQL Server? – Interview Question of the Week #159

February 4, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL Function, SQL Order By, SQL Scripts, SQL Server

Question: How Does TOP WITH TIES Work in SQL Server?

Answer: This is an ancient question I just encountered in the recent Comprehensive Database Performance Health Check.

Read More
Different fallen leaves are sorted so one of each kind can be counted

How to Find DISTINCT COUNT of Column Rows Without Using Distinct Count Keywords? – Interview Question of the Week #157

January 21, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL Function, SQL Scripts, SQL Server

Only one of ten candidates solved this: find the DISTINCT COUNT of a column without using those keywords. Here are the traditional answer and the trick.

Read More
Performance observation of TRIM function.

SQL SERVER – Performance Observation of TRIM Function

January 17, 2018
Pinal Dave
SQL Performance
SQL Function, SQL Scripts, SQL Server

Does the new TRIM function slow your queries like other functions in a WHERE clause do? Here is my performance observation of TRIM function in SQL Server 2017.

Read More
Previous 1 … 12 13 14 15 16 17 18 … 92 Next
  • Books
  • Testimonials
  • Privacy Policy

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