Professional Documents
Culture Documents
A view is stored procedure based on one or more tables, its a virtual table.
20 What is a cursor?
Oracle uses work area to execute SQL statements and store processing information PL/SQL construct
called a cursor lets you name a work area and access its stored information A cursor is a mechanism
used to fetch more than one row in a Pl/SQl block.
22 What are various privileges that a user can grant to another user?
SELECT CONNECT RESOURCES
30 There is a % sign in one field of a column. What will be the query to find it?
'' Should be used before '%'.
31 Suppose a customer table is having different columns like customer no, payments.What will be
the query to select top three max payments?
SELECT customer_no, payments from customer C1
WHERE 3<=(SELECT COUNT(*) from customer C2
WHERE C1.payment <= C2.payment)