Discussion :: MySQL Database MCQs
-
What will be the result of the query given below?SELECT emp_id,'ACTIVE' AS STATUS,emp_id * 3.14 AS emp_pi,UPPER (lname) AS last_nameFROM employee;
A.
emp_id, ACTIVE, emp_id * 314, UPPER(lname)
|
B.
emp_id, Status, emp_pi, last_name
|
C.
Error
|
D.
None of the mentioned
|
Answer : Option B
Explanation :
Status, emp_pi, last_name are "column aliases and Keyword "AS is optional.
Be The First To Comment