Home » MYSQL » Select Query » Question
  1. What will be the output of a query given below?
    SELECT Employee_id, FirstName, LastName
    FROM Employee
    WHERE Employee_id=1;
    1. Show all columns and rows
    2. Shows only columns Employee_id
    3. Show only columns(Employee_id, FirstName, LastName) but only those rows which belongs to Employee_id=1
    4. All of above
    5. None of these
Correct Option: C

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



Your comments will be displayed only after manual approval.