SQL Query : SELECT SUBSTR(FIRSTNAME,1,5) FROM EMP;
6) What are aggregate functions?
Bulit-in mathematical functions for use in SELECT clause.
7) Can you use MAX on a CHAR column?
8) My SQL statement SELECT AVG(SALARY) FROMEMP yields inaccurate results. Why?
Because SALARY is not declared to have NULLs and theemployees for whom the salary is not known are alsocounted.
9) How do you concatenate the FIRSTNAME andLASTNAME from EMP table to give a completename?
SELECT FIRSTNAME ||
|| LASTNAME FROM EMP;
10) What is the use of VALUE function?
1. Avoid -ve SQLCODEs by handling nulls and zeroes incomputations2. Substitute a numeric value for any nulls used incomputation