T-SQL: RIGHT, LEFT, SUBSTRING and CHARINDEX Functions
This article explains the functionality and uses of the LEFT, RIGHT, SUBSTRING and CHARINDEX functions in SQL. This article will leave you with sound knowledge and understanding that you can take away...
View ArticleTop 80 + SQL Query Interview Questions and Answers with Examples
Oracle Equivalent of SQL Server SUBSTRING is SUBSTR, Query : select substr(FIRST_NAME,0,3) from employee SQL Server Equivalent of Oracle SUBSTR is SUBSTRING, Query : select substring(FIRST_NAME,1,3)...
View ArticleOracle SUBSTR Function Explained with Examples
The Oracle SUBSTR function is used to get a smaller string (the substring ... The only way that I know of to get a SUBSTR from a LONG variable is to write a PL/SQL procedure that takes a ROWID, then...
View ArticleSQL Server – Transact SQL – Get File’s Folder name
begin return null end /* Get base file name and extension */ set @foldername = substring ( @filename , 1 , @iPosOfBackSlashSaved ) return @foldername END; GO grant execute on [dbo].[udfn_getFolderName]...
View ArticleWhat's New in Database Engine
Transact-SQL Improvements for memory-optimized tables There are several ... Parameters passed into string functions, such as into LTrim or Substring, in a native proc. Inline (meaning single statement)...
View ArticleTop 80 + SQL Query Interview Questions and Answers with Examples
Oracle Equivalent of SQL Server SUBSTRING is SUBSTR, Query : select substr(FIRST_NAME,0,3) from employee SQL Server Equivalent of Oracle SUBSTR is SUBSTRING, Query : select substring(FIRST_NAME,1,3)...
View ArticleT-SQL: RIGHT, LEFT, SUBSTRING and CHARINDEX Functions
This article explains the functionality and uses of the LEFT, RIGHT, SUBSTRING and CHARINDEX functions in SQL. This article will leave you with sound knowledge and understanding that you can take away...
View ArticleT-SQL UDF Quickly Determines How Often a Substring Appears
Microsoft SQL Server 2005 or Microsoft SQL Server 2000 database administrators sometimes come across the problem of hitting the 900-bytes limit for unique constraints. To work around the 900-byte...
View ArticleFinding the Longest Common Starting Substring Using SQL
How can I return a distinct list of the longest common sequences of characters at the start of a set of strings? For a given row, check whether any other rows start with the same character If there...
View ArticleStairway to Exploring Database Metadata Level 4: Using the Dynamic Online...
Get the SQL Server Central newsletter and get a new SQL Server article each day. Get Database Weekly for a roundup of all the biggest SQL news from around the web. Sign up No thanks Want more great...
View ArticleComparing SQL Server and MySQL Functions
You’ll be happy to know that the following functions are usable in both MySQL and SQL Server queries without any modifications: ASCII, LEFT, LOWER, LTRIM, REPLACE, REVERSE, RIGHT, RTRIM, SOUNDEX,...
View ArticleTop 80 + SQL Query Interview Questions and Answers with Examples
Oracle Equivalent of SQL Server SUBSTRING is SUBSTR, Query : select substr(FIRST_NAME,0,3) from employee SQL Server Equivalent of Oracle SUBSTR is SUBSTRING, Query : select substring(FIRST_NAME,1,3)...
View ArticleDe#Commissioning triggers in 12c
If you take the weekly DB Design quiz at the PL/SQL Challenge website, you may recognise this example ... by default coalesce( sys_context('APEX$SESSION','app_user')...
View ArticleT-SQL String Manipulation Tips and Techniques, Part 1
The task at hand involves counting the number of occurrences of a substring (@substr) within an input string ... of multiple contiguous spaces with one space. Peter Larsson, a SQL Server MVP, came up...
View ArticleSQL - String Functions
SQL> UPDATE table_test -> SET blob_col=LOAD_FILE('/tmp/picture') -> WHERE id=1; ..... The first syntax returns the position of the first occurrence of substring substr in string str. The...
View ArticleTop 80 + SQL Query Interview Questions and Answers with Examples
Oracle Equivalent of SQL Server SUBSTRING is SUBSTR, Query : select substr(FIRST_NAME,0,3) from employee SQL Server Equivalent of Oracle SUBSTR is SUBSTRING, Query : select substring(FIRST_NAME,1,3)...
View ArticleAX CRUD
This avoids a SQL bottleneck. for (int i = 0 ... Guid DMSStaticGUID = GetDMSStaticGUID(); string strTheGuid = DMSStaticGUID.ToString().Substring(0, 20); Interlocked.Increment(ref sequential); //string...
View ArticleUpgrade Planning for System Center 2016 - Service Manager
f.TABLE_NAME + '] ADD CONSTRAINT [PK_' + f.WarehouseEntityName + '] PRIMARY KEY NONCLUSTERED (' + SUBSTRING(f.PKList ... You can drop and recreate the primary key using the SQL script from the Before...
View ArticleStairway to Exploring Database Metadata Level 4: Using the Dynamic Online...
Below is the SQL to get all the relationships for a particular table in the database, via the system views SELECT SUBSTRING( (SELECT ' AND ' + Object_Schema_name(fk.Parent_object_ID) + '.' +...
View ArticleABAP #News for Release 7.51 – Case Insensitive Search in SQL and Other New...
All in all, there are the following new SQL functions available as built-in functions in ... A blank in char is significant. x x SUBSTRING( arg, pos, len ) Substring of arg from the position pos in the...
View Article