Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

28/08/2023

===========

SELECTION:- iF we want to retrive the data from the database table by selecting both row and columns t
hen we should go
for selection.
i)WHERE clause:-

syntax:- SELECT COLNAME FROM TABLENAME


WHERE <FILTERED CONDITION>;
SELECT--3rd
FROM --1st
WHERE---2nd

1) WAQTD the name of employees whose name is Smith.


Ans:- SELECT * FROM EMP WHERE ENAME=’SMITH’;

where clause is used to filter the rows.

waqtd the ename and deptno of employees those are working in dept no =20.
waqtd the name of the employees and salary,those sal is greater than 3000.
WAQTD THE NAME AND HIREDATE OF THE EMPLOYEESLOYEES THOSE ARE HIRED ON 9-JUNE-
1981
WAQTD THE DETAILS OF THE EMPLOYEE THOSE ARE HIRED AFTER 1981.
WAQTD THE DETAILS OF EMPLOYEE WORKING AS ANALYST.

OPERATOR
=========
1)Arithmetic
2)Concatination:-
3)Logical
4)Comparison
5)Relational
6)Special:---
i)IN
ii)NOT IN
iii) IS
iv) IS NOT
v)BETWEEN
vi)NOT BETWEEN
vii)LIKE
viii)NOT LIKE
Concatination:- It is used to join 2 strings (||).

You might also like