Interview Questions

How do you retrieve the first 5 characters of FIRSTNAME column of DB2 table EMP ?

DB2 INTERVIEW QUESTIONS


(Continued from previous question...)

How do you retrieve the first 5 characters of FIRSTNAME column of DB2 table EMP ?

SQL Query : SELECT SUBSTR(FIRSTNAME,1,5) FROM EMP;

(Continued on next question...)

Other Interview Questions