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 sieve retains two kinds of smooth pebbles while unwanted sand falls into a bowl

How to Extract Alphanumeric Only From A String? – Interview Question of the Week #214

February 24, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL Datatype, SQL Scripts, SQL Server, SQL String

A reader wanted only the values that mix letters and numbers from a column. Here is how to extract alphanumeric values from a string with simple pattern matching.

Read More
A woven motif remains intact on a source cloth and a separately framed copy.

PostgreSQL – Storing Unicode Characters is Easy

February 16, 2019
Pinal Dave
SQL Tips and Tricks
PostgreSQL, SQL Function, SQL String, Unicode

PostgreSQL varchar can store Unicode with suitable database and client encodings. My example stores ЯНВАРЬ, the Russian word for January.

Read More
Cooking spoons hang in ascending bowl sizes regardless of their handle colors

How to Sort a Varchar Column Storing Integers with Order By? – Interview Question of the Week #206

December 30, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL Datatype, SQL Order By, SQL Scripts, SQL Server, SQL String

How do you sort a Varchar column storing integers with Order By when you cannot change the datatype? Here are two simple solutions I shared with a developer.

Read More
A handplane removes fine shavings while the wooden board remains intact

How to Trim TIME Part in DATETIME Values? – Interview Question of the Week #200

November 18, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL DateTime, SQL Function, SQL Server, SQL String

How to trim TIME part in DATETIME values? A reader wanted to keep only the date and the hour, so here are ways to cut off the minutes and seconds.

Read More
Two sheepdogs on a hillside pushing a flock opposite ways while a shepherd seen from behind raises a whistle.

Collation Precedence: Which Collation Wins in a Comparison

November 5, 2018
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL Error Messages, SQL Server, SQL String

Explain collation precedence with explicit and implicit labels, reproduce a conflicting join, and choose comparison rules.

Read More
A to Z alphabet smiley faces.

Alphabets – SQL SERVER – Retrieving Rows With All Alphabets From Alphanumeric Data

September 4, 2018
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL String

I got an email from one of my blog readers asking for an easy way to identify if a given string contains only alphabets. There can be methods.

Read More
Milk pouring into a whole row of glass bottles at once from a bar of spouts in a dairy

Tally Table: Replacing WHILE Loops With a Set of Numbers

June 22, 2018
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server 2022, SQL String

Use a tally table or GENERATE_SERIES to replace repeated date, character, and missing-number loops with ordered sets of rows.

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

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