Answers:
What are cursors and how many types of cursors?
Cursor is a pointer variable in a memory and use for DML operations. Cursor
basically is a private SQL memory area it is also use to improve the
performance of the database.
1- Implicit cursor
2- Explicit cursor
2- %found (If cursor fetch the data then %found return true)
3- %notfound (If cursor fetches not data then %notfound return true)
4- %rowcount (It return no. of rows that are in cursor and also give position of
record)
Index is using for performance tuning and also give us faster data retrieval of
record from tables. Index can create on any column in table by default oracle
B-Tree index.
One query contains more than one sub-query. The inner most query run first
then second outer then third outer and so on. If we will not use relation on
inner query to outer query then this query is called sub-query if we use relation
then this query called Correlated query.