Select Query


  1. Which among the following can also be included with “SELECT” clause while writing query in Mysql?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    “SELECT clause” can also include Literals like ‘ACTIVE’, Expressions like emp_id*314, Built_in functions like UPPER ().


  1. Is there any error in executing the following query?
    SELECT Student_id, ‘ACTIVE’,
    Student_id * 3.145,
    UPPER (LastName)
    FROM Student;











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    “SELECT clause” includes the following: Literals like ‘ACTIVE’, Expressions like Student_id*314, Built_in functions like UPPER ().



  1. Which Clause is used to select a particular table in Mysql?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    FROM


  1. What is the need of “column Aliases” in “SELECT” clause?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    “Column Aliases” are used to assign a new label to the columns in the result set without actually changing the column name.



  1. What will be the result of the query given below?
    SELECT Student_id,
    ‘ACTIVE’ STATUS,
    Student_id * 3.14 Student_pi,
    UPPER (LName) Last_Name
    FROM Student;











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Status, Student_pi, Last_Name are “column aliases”.