Skip to content

FROM

SELECT *
FROM Employees;
+--------+-----------+------------+
| emp_id | emp_name | emp_email |
+--------+-----------+------------+
| 1 | Smith | s@xyz.com |
| 2 | Johnson | j@xyz.com |
| 3 | Williams | w@xyz.com |
| 4 | Brown | b@xyz.com |
| 5 | Jones | j@xyz.com |
+--------+-----------+------------+

The FROM clause in SQL is used to specify the table from which to retrieve data. In this example, the FROM clause specifies the Employees table. The SELECT * statement is used to select all columns from this table. It retrieves and displays an entire table of data. The output is a list of employees with their respective emp_id, emp_name and emp_email columns.