Q. What will be the output of the following MySQL statement?
SELECT emp_id, fname, lname
FROM employee
WHERE LEFT (fname, 1) =’F’ OR LEFT (lname, 1) =’F’;
β
Correct Answer: (A)
Only those employees are selected whose first name and last name started with 'F'
Explanation: This MySQL statement is designed to select employee information based on their first and last names. Let's break down the code: