Which statement is true regarding the above query?

View the Exhibit and examine the description of the EMPLOYEES table. Your company
wants to give 5% bonus to all the employees on their annual salary. The SALARY column

stores the monthly salary for an employee. To check the total for annual salary and bonus
amount for each employee, you issued the following SQL statement: SELECTfirst_name,
salary, salary*!2+salary*12*.05 “ANNUAL SALARY + BONUS” FROM employees; Which
statement is true regarding the above query?

View the Exhibit and examine the description of the EMPLOYEES table. Your company
wants to give 5% bonus to all the employees on their annual salary. The SALARY column

stores the monthly salary for an employee. To check the total for annual salary and bonus
amount for each employee, you issued the following SQL statement: SELECTfirst_name,
salary, salary*!2+salary*12*.05 “ANNUAL SALARY + BONUS” FROM employees; Which
statement is true regarding the above query?

A.
It would not execute because the AS keyword is missing between the column name and
the alias.

B.
It would not execute because double quotation marks are used instead of single
quotation marks for assigning alias for the third column.

C.
It would execute but the result for the third column would be inaccurate because the
parentheses for overriding the precedence of the operator are missing.

D.
It would execute and give you the desired output.



Leave a Reply 0

Your email address will not be published. Required fields are marked *