Knowledge Check 7 Solution
Knowledge Check 7 Solution
Feedback:
Feedback:
B) correct. If we use an alias the result will display the alias name instead of the
original column name.
What happens if parentheses is removed from the formula (choose the correct
option)
Feedback:
C) correct. There will not be any difference in the value displayed in the
CALC_VALUE column..
Feedback:
LAST_NAME VARHCAR2(25),
SALARY NUMBER (6,2),
DEPARTMENT_ID NUMBER(6)
Write a SQL statement to display the employees who have not been assigned to
any department.
ENAME VARCHAR2(35)
SALARY NUMBER(8,2),
HIRE_DATE DATE
Management wants a list of names of employees who have been with the
company for more than five years. Which SQL Statement displays the desired
results?
Feedback:
A) Incorrect. C is the correct answer. The left hand side of the WHERE clause
will give only the number of days between the two dates.
C) Correct. The difference between two dates will result in number of days
elapsed. If you divide it by 365 you will get number of years.
A. _ and %;
B. % and _ ;
C. * and _
D. _ and *
Feedback:
A) Correct.
B) Incorrect.
C) Incorrect.
D) Incorrect.
Feedback:
A) Correct.
B) Incorrect.
C) Incorrect.
A. IN
B. BETWEEN
C. LIKE
D. NULL
Feedback:
A) InCorrect.
B) Correct.
C) Incorrect.
D) Incorrect
10. ________ key in the where clause specifies an inclusive list to search
A. IN
B. BETWEEN
C. LIKE
D. NULL
Feedback:
A) Correct.
B) InCorrect.
C) Incorrect.
D) Incorrect