Single-Row Functions
Single-Row Functions
SELF TEST
The following questions will help you measure your understanding of the material presented in this
chapter. Read all the choices carefully because there might be more than one correct answer. Choose
all the correct answers for each question.
10. Assuming SYSDATE=30-DEC-2007, what value is returned after executing the following
statement?
SELECT TRUNC(SYSDATE,'YEAR') FROM DUAL; (Choose the best answer.)
A. 31-DEC-2007
B. 01-JAN-2008
C. 01-JAN-2007
D. None of the above
LAB QUESTION
Using SQL Developer or SQL*Plus, connect to the OE schema and complete the following tasks.
Several quotations were requested for prices on color printers. The supplier information is not avail-
able from the usual source, but you know that the supplier identification number is embedded in the
CATALOG_URL column from the PRODUCT_INFORMATION table. You are required to retrieve
the PRODUCT_NAME and CATALOG_URL values and to extract the supplier number from the
CATALOG_URL column for all products which have both the words COLOR and PRINTER in
the PRODUCT_DESCRIPTION column stored in any case.