How to Create and Use INDEX in Oracle with Examples

In this tutorial, we will learn what are indexes and how they are used and created in Oracle. We might have noticed an index at the end of a technical book which contains all the important keywords and concepts listed alphabetically, so that we can quickly search and...

Correlated Subquery in Oracle

In a correlated subquery, the inner subquery refers to an object from outer query. Before we understand the concept behind correlated subquery, lets revisit the concept of subquery by seeing this example: SELECT * FROM employees WHERE salary > (SELECT salary FROM...

SUBQUERY in Oracle with Examples

A Subquery is a SELECT statement which is used inside other SELECT statement. It can also be used inside INSERT, UPDATE or DELETE statements. A Subquery can be placed inside either WHERE, FROM or HAVING clause after SELECT statement. Syntax: SELECT Column1, Column2,...

Sequence in Oracle with Examples

What is a Sequence? A Sequence is an Oracle Database Object that we create to generate numeric(integer) values. Often while working with Tables in Oracle database with Primary key constraint, we need to insert a new row into a table and manually input the primary_key...

Oracle MINUS Operator with Examples

We have seen UNION, UNION ALL and INTERSECT set operators till now and MINUS is the final set operator in Oracle. MINUS Set operator is used for returning rows that are present in the first query which are absent in second query. Syntax: The syntax of MINUS set...

Oracle INTERSECT Operator with Examples

The Oracle INTERSECT operator is used for finding the intersection of results of two queries. Syntax: The syntax of Oracle INTERSECT set operator is as follows: SELECT column1, column2, column_n … FROM Table1 INTERSECT SELECT column1, column2, column_n …...