|
INTERVIEW QUESTIONS
DATABASE
MS SQL SERVER
DETAILS
Question: What Are the Character String Functions Supported by SQL Server 2005?
Answer: SQL Server 2005 supports 23 character string functions:
* ASCII(char) - Returning the code value of a non-Unicode character. * CHAR(int) - Returning the non-Unicode character of a code value. * CHARINDEX(word, string, start_location) - Returning the location of the searched "word" in a string. * DIFFERENCE(string1, string2) - Returning an integer value that indicates the difference between the SOUNDEX values of two strings. * LEFT(string, length) - Returning a substring of "length" character from the left hand side. * LEN(string) - Returning the number of characters in the string. * LOWER(string) - Returning the same string with all upper case characters converted to lower case. * LTRIM(string) - Returning the same string with leading spaces removed. * NCHAR(int) - Returning the Unicode character of a code value. * PATINDEX(pattern, string) - Returning the location of the "pattern" in a string. * QUOTENAME(string, quote) - Returning the same string enclosed in "quote".
|
|
|
Category |
MS SQL Server Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 8663 users |
Added on |
9/23/2014 |
Views |
71179 |
Rate it! |
|
|
Question:
What Are the Character String Functions Supported by SQL Server 2005?
Answer:
SQL Server 2005 supports 23 character string functions:
* ASCII(char) - Returning the code value of a non-Unicode character. * CHAR(int) - Returning the non-Unicode character of a code value. * CHARINDEX(word, string, start_location) - Returning the location of the searched "word" in a string. * DIFFERENCE(string1, string2) - Returning an integer value that indicates the difference between the SOUNDEX values of two strings. * LEFT(string, length) - Returning a substring of "length" character from the left hand side. * LEN(string) - Returning the number of characters in the string. * LOWER(string) - Returning the same string with all upper case characters converted to lower case. * LTRIM(string) - Returning the same string with leading spaces removed. * NCHAR(int) - Returning the Unicode character of a code value. * PATINDEX(pattern, string) - Returning the location of the "pattern" in a string. * QUOTENAME(string, quote) - Returning the same string enclosed in "quote". Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
How To Convert a Unicode Strings to Non-Unicode Strings?
|
View Answer
|
|
What Happens When Unicode Strings Concatenate with Non-Unicode Strings?
|
View Answer
|
|
How To Concatenate Two Character Strings Together?
|
View Answer
|
|
How To Generate Random Numbers with the RAND() Function in MS SQL Server?
|
View Answer
|
|
How To Round a Numeric Value To a Specific Precision?
|
View Answer
|
|
How To Convert Numeric Values to Integers in MS SQL Server?
|
View Answer
|
|
What Are the Mathematical Functions Supported by SQL Server 2005?
|
View Answer
|
|
What Happens When Converting Big Values to NUMERIC Data Types?
|
View Answer
|
|
What Happens When Converting Big Values to Integers?
|
View Answer
|
|
How To Convert Character Strings into Numeric Values?
|
View Answer
|
|
How To How To Convert Numeric Expression Data Types using the CONVERT() Function??
|
View Answer
|
|
How To Convert Numeric Expression Data Types using the CAST() Function?
|
View Answer
|
|
How To Convert Numeric Expression Data Types by Assignment Operations?
|
View Answer
|
|
How To Convert a Numeric Expression from One Data Type to Another?
|
View Answer
|
|
What Is an Expression in MS SQL Server?
|
View Answer
|
|
What Are the Underflow and Overflow Behaviors on FLOAT Literals?
|
View Answer
|
|
How REAL and FLOAT Literal Values Are Rounded?
|
View Answer
|
|
How Extra Digits Are Handled with NUMERIC Data Type Literals?
|
View Answer
|
|
What Happens If an Integer Is Too Big for INT Date Type?
|
View Answer
|
|
What Are Out-of-Range Errors with Date and Time Literals?
|
View Answer
|