Home » MYSQL » Select Query » Question
  1. What will be the result of the query given below?
    SELECT Person_id,
    ‘ACTIVE’ AS STATUS,
    Person_id * 3.14 AS Person_pi,
    UPPER (LName) AS Last_Name
    FROM Person;
    1. Error
    2. Person_id, ACTIVE, Person_id * 314, UPPER(LName)
    3. Person_id, Status, Person_pi, Last_Name
    4. All of above
    5. None of these
Correct Option: C

Status, Person_pi, Last_Name are “column aliases” and Keyword “AS” is optional.



Your comments will be displayed only after manual approval.