Which of the following statements will help you to accomplish the task?

You work as a Database Administrator for Domain.com. The company uses MySQL as its
database.

You have created a table named Employees in the database. You want to create a list of
employees working in the organization, but you do not want to display any duplicate row in the
report. Which of the following statements will help you to accomplish the task?

You work as a Database Administrator for Domain.com. The company uses MySQL as its
database.

You have created a table named Employees in the database. You want to create a list of
employees working in the organization, but you do not want to display any duplicate row in the
report. Which of the following statements will help you to accomplish the task?

A.
SELECT emp_id, emp_name FROM Employees;

B.
SELECT emp_id, emp_name FROM Employees GROUP BY emp_id;

C.
SELECT emp_id, emp_name FROM Employees ORDER BY emp_id;

D.
SELECT DISTINCT emp_id, emp_name FROM Employees;



Leave a Reply 0

Your email address will not be published. Required fields are marked *