Oracle_2
Oracle_2
Dual is a dummy table, it has only one column ( dummy ) with data type VARCHAR2 (1), and contains
one row with a value X.
It is a special table used for evaluating expressions or calling functions.
OPERATORS IN SQL
1) ARITHMETIC OPERATORS: ( +,-,*,/ )
3) RELATIONAL OPERATORS:
= à equal to
< àless than
> àgreater than
<= à less than equal to
>= à greater than equal to
!= à not equal to
<>à not equal to
4) SPECIAL OPERATORS: (IS, IN, LIKE , NOT LIKE, ANY/SOME, ALL, BETWEEN, NOT BETWEEN )
ANY/SOME:
It compares a value with every value in a list, it must be processed by = ,!=,>,<,>=,<=.
Ex: select * from emp where sal >= all (1400,3000);
5) SET OPERATORS:
Ex: select empno from emp union select mgr from emp;
select empno from emp union all select mgr from emp;
select empno from emp intersect select mgr from emp;
select empno from emp minus select mgr from emp;