Clause | Description |
---|---|
FROM | It is used for selecting a table name in a database. |
WHERE | It specifies which rows to retrieve. |
GROUP BY | It is used to arrange the data into groups. |
HAVING | It selects among the groups defined by the GROUP BY clause. |
ORDER BY | It specifies an order in which to return the rows. |
AS | It provides an alias which can be used to temporarily rename tables or columns. |
SELECT * FROM employee
WHERE salary >=10000;
OR
SELECT eid, ename, age, salary
WHERE salary >=10000;