Beruflich Dokumente
Kultur Dokumente
ENAME
RAMASWAMY
NARAYAN
UMESH
BALAJI
Using the above data Select count(sal) from Emp will retrieve
SAL
3500
5000
5750
a. 1
b. 4
c. 3
d. None of the above
8. What are the different events in Triggers ?
a. Define, Create
b. Drop, Comment
c. Insert, Update, Delete
d. All of the above
9. What are cursor attributes?
a. %ROWCOUNT
b. %NOTFOUND
c. %FOUND
d. All of the above
10. Which of the following is not correct about Cursor ?
a. Cursor is a named Private SQL area
b. Cursor holds temporary results
c. Cursor is used for retrieving multiple rows
d. SQL uses implicit Cursors to retrieve rows
11. Which of the following is NOT VALID in PL/SQL block?
a Select ... into
b. Update
c. Create
d. Delete
12. The command to remove rows from a table 'CUSTOMER' is:
a. REMOVE FROM CUSTOMER ...
b. DROP FROM CUSTOMER ...
c. DELETE FROM CUSTOMER WHERE ...
d. UPDATE FROM CUSTOMER ...
13. What type of join is needed when you wish to return rows that do have matching
values?
a. Equi-join
b. Natural join
c. Outer join
17. To remove duplicate rows from the results of an SQL SELECT statement, the ________
qualifier specified must be included.
a. ONLY
b. Distinct
c. Single
d. Unique
18. Find the SQL statement below that is equal to the following: SELECT NAME FROM
CUSTOMER WHERE STATE = 'VA';
a. SELECT NAME IN CUSTOMER WHERE STATE IN ('VA');
b. SELECT NAME IN CUSTOMER WHERE STATE = 'VA';
22. The statement in SQL which allows to change the definition of a table is
a. Alter.
b. Update.
c. Create.
d. select.
23. Which of the following is correct:
a. a SQL query automatically eliminates duplicates.
b. SQL permits attribute names to be repeated in the same relation.
c. a SQL query will not work if there are no indexes on the relations
d. None of these
24. Which of the following operations need the participating relations to be union
compatible?
a. UNION
b. INTERSECTION
c. DIFFERENCE
d. All of the above
26. Which of the following database object does not physically exist?
a.base table
b.index
c.view
d.none of the above
27. NULL is
a.the same as 0 for integer
b.the same as blank for character
c.the same as 0 for integer and blank for character
d.not a value
28. Consider the join of a relation R with relation S. If R has m tuples and S has n tuples,
then the maximum size of join is:
a. mn
b. m+n
c. (m+n)/2
d. 2(m+n)
30. _____________ function divides one numeric expression by another and returns the
remainder.
a. POWER
b. MOD
c. ROUND
d. REMAINDER
d. VARCHAR
36. INSERTION through VIEW in the base table is prohibited if the view containsa.GROUP Functions
b.Any NOT NULL columns of base table are not selected in the view
c.DISTINCT Clause
d.All of above
37. Which of the following statement about PL/SQL block structure is false?
a. The DECLARE section is Compulsory and used to define PL/ SQL objects.
b. The BEGIN and END elements are main sections and body of the actions to be performed,
is enclosed in between BEGIN and END.
c. The EXCEPTION section is also optional and is placed immediately before the END.
d. None of these
39. Which of the following represents the steps while controlling Explicit Cursor?
a. Declare, Open, Fetch, Close
b. Declare, Fetch, Open, Close
c. Open, Fetch, Close
d. None of These
41. Which of the following mode is not used to pass the value to procedure?
a. IN
b. OUT
c. INOUT
d. OUTIN
43. Which of the following bind variables is NOT used to access the values of currently
processed row by the trigger?
a. :old
b. :new
c. :current
d. None of these
44.Which of the following types of triggers is used to validate the UPDATE, INSERT and
DELETE operations after they have taken place and allow rollback on exceptions raised?
a.Before Trigger
b.After Trigger
c.Row Trigger
d.Statement Trigger
Pseudofile
embedded SELECT statement
trigger
None of the above is correct.
Equi-join
Natural join
Outer join
Cartesian join
49. Which of the following is an SQL trigger supported by Oracle for VIEWS ?
a. BEFORE
b. INSTEAD OF
c. AFTER
d. ROW