SQL*PLUS
JYOTI
ASSISTANT PROFESSOR
COMPUTER SCIENCE & IT
🙢
INTRODUCTION:
🙢
Table 1 − CUSTOMERS Table�
🙢
Table 2 − ORDERS Table
🙢
���SQL> SELECT ID, NAME, AGE, AMOUNT FROM CUSTOMERS, ORDERS WHERE CUSTOMERS.ID = ORDERS.CUSTOMER_ID;This would produce the following result.�
🙢
🙢
SQL UNION
🙢
🙢
�Example:�Consider the following two tables.�Table 1 − CUSTOMERS Table is as follows.�
🙢
Table 2 − ORDERS Table is as follows
🙢
The UNION ALL Clause�
The UNION ALL operator is used to combine the results of two SELECT statements including duplicate rows.
🙢
SQL INTERSECT
🙢
Syntax
🙢
Table 1 − CUSTOMERS Table is as follows
🙢
Table 2 − ORDERS Table is as follows.
🙢
🙢
SQL – an example of a tree-walking�
🙢
is stored like this in database table:
🙢
SQL INDEXING
🙢
The CREATE INDEX Command�
🙢
Unique Indexes�
🙢
Composite Indexes�
🙢
Implicit Indexes�
🙢
When should indexes be avoided?�
🙢
THANK YOU�
🙢