Select Query


  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. Is there any error in executing the following query?
    SELECT USER (),
    VERSION (), DATABASE ();











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Clause “FROM” is not necessary when we used “Built in” function with “SELECT” clause.


  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 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. Which clause is mandatory with clause “SELECT” in Mysql?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    “SELECT” clause cannot be used without clause “FROM”.