Documente Academic
Documente Profesional
Documente Cultură
750 (*)
751
700
751.3
2. ROUND and TRUNC functions can be used with which of the following Datatypes?
Correct
3. Which number function may be used to determine if a value is odd or even?
TRUNC
BINARY
ROUND
MOD (*)
Correct
True
False (*)
Correct
(1) Points
1282
1282.25
1200
1300 (*)
Correct
6.
STYLE_ID
STYLE_NAME
CATEGORY
COST
895840
SANDAL
85940
12.00
968950
SANDAL
85909
10.00
869506
SANDAL
89690
15.00
809090
LOAFER
89098
10.00
890890
LOAFER
89789
14.00
857689
HEEL
85940
11.00
758960
SANDAL
86979
12.00
(1) Points
You query the database and return the value 79. Which script
did you use?
Correct
8.
9.
True
False (*)
Correct
10. You query the database with this SQL statement:
CONCAT
SUBSTR
LOWER (*)
All three will be evaluated simultaneously.
Correct
11. Which
Mark for Review
function
would you
use to
(1) Points
return the
current
database
server
date and
time?
CURRENTDATE
DATETIME
SYSDATE (*)
DATE
Correct
12.
You need to subtract three months from the current date. Which function should you
use?
ROUND
MONTHS_BETWEEN
ADD_MONTHS (*)
TO_DATE
Correct
13.
What function would you use to return the highest date in a month?
END_DAY
HIGHEST_DAY
FINAL_DAY
LAST_DAY (*)
Correct
14.
SELECT SYSDATE - 7
FROM employees;
SELECT SYSDATE + 600 / 24
FROM employees;
SELECT ROUND(hire_date, DAY)
FROM employees;
SELECT (SYSDATE - hire_date) / 7
FROM employees;
(*)
Correct
15.
(*)
SELECT TRUNC(YEARS_BETWEEN(SYSDATE,'19-Mar-1979') /12)
AS YEARS
FROM DUAL;
SELECT MONTHS_BETWEEN(SYSDATE,'19-Mar-1979') /12
AS YEARS
FROM DUAL;
None of the above