SQL Set Opeartion
SQL Set Opeartion
SYSTEM
UNIT III
INTRODUCTION TO SQL - PL/SQL
Presented By:
Prof. N.S.Kazzi
SET OPERATION
SQL stands for Structured Query Language.
It is used for storing and managing data in
System.
It enables a user to create, read, update and
UNION
UNION
UNION ALL
table.
Union All query will be like:
SELECT * FROM First
UNION ALL
INTERSECT
Example:
Using the above First and Second table.
Intersect query will be:
SELECT * FROM First
INTERSECT
MINUS
MINUS
or UNKNOWN.
COMPARISON OPERATOR
The following table describes different types of
comparison operators -
COMPARISON OPERATOR
Syntax :
SELECT[column_name| * |
expression]<comparison operator>
[column_name | * | expression ] FROM
<table_name> WHERE
<expression>[comparison
operator]<expression>;
COMPARISON OPERATOR
Parameters:
COMPARISON OPERATOR
Example: SQL Comparison operator
To get a comparison between two numbers from