Quantcast
Channel: Substring In Sql | Automatic Website Traffic RSS
Browsing all 989 articles
Browse latest View live

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 Article


Top 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 Article


Oracle 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 Article

SQL 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 Article

What'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 Article


Top 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 Article

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 Article

T-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 Article


Finding 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 Article


Stairway 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 Article

Comparing 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 Article

Top 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 Article

De#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 Article


T-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 Article

SQL - 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 Article


Top 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 Article

AX 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 Article


Upgrade 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 Article

Stairway 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 Article

ABAP #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
Browsing all 989 articles
Browse latest View live