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 - Understanding How to Play With Row Constructor

SQL SERVER – Understanding How to Play With Row Constructor

September 5, 2016
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL String

A code review surprised me with an unusual use of the Row Constructor. Here is what the code did and how you can play with row constructors yourself.

Read More
SQL SERVER - Maintain Carriage Return (Enter Key) in SQL Server 2016 Management Studio While Copy and Paste

SQL SERVER – Maintain Carriage Return (Enter Key) in SQL Server 2016 Management Studio While Copy and Paste

June 3, 2016
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Server 2016, SQL Server Management Studio, SQL String

Copy grid results with line breaks and paste them: SQL Server 2016 Management Studio drops the carriage returns. Here is the setting that keeps them.

Read More
SplitMyString SQL Server result set.

SQL SERVER – Puzzle – Solve Splitting Strings Puzzle

June 2, 2016
Pinal Dave
SQL Puzzle
SQL Function, SQL Scripts, SQL Server, SQL String

A Splitting Strings puzzle: take a column holding delimited values, split them and return how many values each row has. How would you solve it?

Read More
MySQL - ELT() and FILED() Functions to Extract Index Position From List

MySQL – ELT() and FILED() Functions to Extract Index Position From List

March 25, 2016
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Function, SQL String

MySQL’s ELT() returns the value at a given index position in a list, and FIELD() does the reverse. Here is how both functions work, with simple examples.

Read More
Decimal, space, etc. table.

SQL SERVER – How to Remove All Characters From a String Using T-SQL?

August 1, 2015
Pinal Dave
SQL Tips and Tricks
SQL String

A reader wanted only the digits from a string like ab123ce234fe. Here is a simple T-SQL loop to remove all characters from a string and keep the numbers.

Read More
SQL SERVER - CONCAT function and NULL values

SQL SERVER – CONCAT function and NULL values

April 11, 2015
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL String

The CONCAT function and NULL values: CONCAT in SQL Server 2012 simply ignores NULL, while the + operator returns NULL. Here is a simple example.

Read More
An unfinished rope-knot challenge sits between two empty interview chairs

Interview Question of the Week #008 – Write Scripts to Convert String to Title Case or Proper Case

February 22, 2015
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, SQL String

Convert string values to title case with a corrected function, ordered SQL Server aggregation, and clear limits for personal names.

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

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