Select Query


  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”.


  1. What will be the output of a query given below?
    SELECT  * FROM Employee
    WHERE Employee_id=1;











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Clause “WHERE” is also used, which tell the compiler to show only that rows which belong to Employee_id=1.



  1. What will be the output of a query given below?
    SELECT Employee_id, FirstName, LastName
    FROM Employee
    WHERE Employee_id=1;











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Clause “WHERE” is also used, which tell the compiler to show only that rows which are belong to Employee_id=1.


  1. Find the error?
    SELECT *;











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

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



  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 ().