One SELECT SQL query consists of below keyword.
- SELECT
: it list all column to be shown in resultant set
SELECT empName, empId FROM employee;
SELECT e.empName, e.empId, e.departmentId, d.departmentName FROM employee e, department d;
SELECT Lname, Fname FROM employee WHERE Lname = ‘Yadav’;
SELECT * FROM employee GROUP BY departmentId;
SELECT * FROM employee GROUP BY departmentId HAVING departmentId = 10;
- SELECT Lname, Fname FROM employee ORDER BY Lname DESC;
- SELECT Lname, Fname FROM employee WHERE Lname STARTING WITH (‘Y%’);
Similarly
we have more keywords like BETWEEN, IN,
LIKE and many more. But above one are mainly used keywords in SELECT sql
No comments:
Post a Comment