Category: SQL server 2017

Translate function in Sql server 2017

With the new translate function in SQL server 2017 you can now replace the string for multiple characters at the same time. In earlier version of SQL server with replace function we have to use replace multiple times if we have to replace the string multiple times . Below is the syntax for Translate function

Trim function in sql server 2017

Before Sql server 2017 we only had LTRIM and RTRIM function available to remove spaces from left and right separately.  With trim function now being available in sql server 2017 it can be used for two purposes. Lets look at the syntax of Trim function  first. TRIM ( [ characters FROM ] string ) Trim

SQL Server concat_ws function available starting 2017

SQL Server concat_ws function available starting 2017: Concat_ws is a new function introduced in sql server 2017. Syntax: CONCAT_WS ( separator, argument1, argument1 [, argumentN]… ) Concat_ws will take the separator as the first argument and will then concatenate variable number of argument into a single string. You will need a separator and minimum of