Professional Documents
Culture Documents
wrong
And for some questions I don't know the answers.
2) Pragma that will call itself independently and can separate main user query from
it is �
� Pragma autonomous transaction
� Pragma exception init
� None of options
� Pragma restrict references
6)Which operation is used for joining two tables which have same number of columns:
� Union
8) how to you display the employee and department table, even if there are no
matching departments (unable to frame question exactly )
9)Which of the following are used to release all database locks? (check box)
� Commit
� Rollback
� Save
� Savepoint
10) DECLARE
p_emp_no NUMBER :=1;
BEGIN
FOR I IN 1....10 LOOP
update employee
set ename='John'
WHERE emp_no=p_emp_no;
END LOOP;
END;
ans: all
(for this question they might change the ques ,keeping the ans unchanged, read the
ques carefully and ans accordingly)
21)The user needs to perform certain data manipluation operations through a view
called EMP_DEPT_VU, which he/she previously created. The user wants to look at the
definition of the view. How he/she obtain the definition of the view using a query?
a. Query the USER_VIEWS data dictionary to search for the EMP_DEPT_VU view.
b. Query the USER_OBJECTS data data dictionary view to search for the EMP_DEPT_VU
c. Query the USER_SOURCE data dictionary view to search for the EMP_DEPT_VU view
d. Use the DEFINE VIEW command on the EMP_DEPT_VU view.
a. COUNT(start_date)
b.AVG(start_date,end_date)
c.SUM(start_date)
d.MIN(start_date)
ans: count,min
25) All users currently have INSERT privileges on the LIBRARY table.You want only
your users to insert into this table using the ADD_BOOK procedure.Which two actions
muct you take?
26) trunc(56.892)
ans:56
31) You cannot add a subquery to a SELECT clause as a cloumn expression in the
SELECT list.
ans: False
32)With SQL,how do you select all the records from a table named "Persons" where
the value of the cloumn " FirstName" starts with "a"?
33) Consider a "DEPARTMENT" table with five records.How many rows will be updated
by the below query?
ans: False
ans: NN
37)Under which two circumstances do you design database triggers? (Choose two)
(same ques different option came)
A. To duplicate the functionality of other triggers.
B. To replicate built-in constraints in the Oracle server such as primary key
and foreign key.
C. To guarantee that when a specific operation is performed, related actions are
performed.
D. For centralized, global operations that should be fired for the triggering
statement, regardless of which user or application issues the statement.
ans: c and d