Oracle
1Z0-007 · Question #184
Evaluate this SQL statement: SELECT e.employee_id, (.15 e.salary) + (.5 e.commission_pct) + (s.sales amount (.35 e.bonus)) AS CALC_VALUE FROM employees e, sales s WHERE e.employee_id = s.emp_id…
Sign in or unlock 1Z0-007 to reveal the answer and full explanation for question #184. The question stem and answer options stay visible for context.
Basic SQL SELECT Statements
Question
Evaluate this SQL statement:
SELECT e.employee_id, (.15* e.salary) + (.5 * e.commission_pct) + (s.sales amount * (.35 * e.bonus)) AS CALC_VALUE FROM employees e, sales s WHERE e.employee_id = s.emp_id; What will happen if you remove all the parentheses from the calculation?
Options
- AThe value displayed in the CALC_VALUE column will be lower.
- BThe value displayed in the CALC_VALUE column will be higher.
- CThere will be no difference in the value displayed in the CALC_VALUE column.
- DAn error will be reported.
Unlock 1Z0-007 to see the answer
You've previewed enough free 1Z0-007 questions. Unlock 1Z0-007 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#operator precedence#arithmetic expressions#parentheses#SELECT expressions