COALESCE Function SQL

What is COALESCE Function in SQL The SQL coalesce function will gives the first non-null string. Syntax: coalesce (strng1, string2, string3 … stringn)Ex: select coalesce('a','b','c'), coalesce(null,'a',null,'b') from dual; coalesce('a','b','c') ----------------------…

0 Comments

CHR Function

CHR The CHR function will return the character having the binary equivalent to the string in either the database character set or the national character set. The function returns the…

0 Comments

ASCII in SQL

ASCII This will return the decimal representation in the database character set of the first character of the string.Syntax: ascii (string) Ex: select ascii('a'), ascii('apple') from dual; output ascii('a') -----------…

0 Comments

Concatenation operator

CONCAT This will be used to combine two strings only.Syntax: concat (string1, string2) Ex: select concat('computer',' operator') from dual; output concat('computer',' operator') -------------------------------- computer operator concatenation in SQL some more…

0 Comments

Replace Function in SQL

REPLACE This will replace the set of characters, string by string.To replace multiple character at a time. Syntax: replace (string, old_chars [, new_chars]) Ex: select replace('india','in','xy'), replace('india','in') from dual; output…

0 Comments