Professional Documents
Culture Documents
V. ASSESSMENT
1. Define SQL string functions in your own words based on the examples above.
Own my own understanding, sql string function is to be able to input string such as
numbers, letters to the program it also convert all data type.
2. Give at least five (5) SQL string functions and give one (1) example for each
function.
3. Using customer table, give the result table of the given SQL string function queries:
Customer Table
LNAME FNAME MNAME ID
Doe John C. 001
Jones Jay Y. 002
De La Cruz Juan M. 003
Adams Smith A. 004
LNAME ID
Adams 004
LNAME
Adaams
Dee Laa Cruz
Doee
Jonees
LNAME
Jo
Ad
Do
De
LNAME
senoJ
smadA
eoD
zurC aL eD
h. Select CONCAT(LEFT(lname, 3, RIGHT(fname, 2), LENGTH(id)) as ID
From Customer order by lname
LNAME FNAME ID
ms Smi 004
La Cruz Ju 003
NULL Jo 001
es J 002