-
Query to retrieve one entire column data
Write a query to retrieve one entire column data of multiple rows into one single column of single row?
Why do we use cursors ?
Guys can you please help me in realtime scenario?
Transaction management in triggers
Can we give COMMIT or ROLLBACK within a trigger?
Use of Indexes
What are indexes used for ? What are the different types of Indexes?
Access Cursor Output
How to access cursor output from web application and present the record set in tabular form?
What are Oracle Hints and How do you use them ?
Explain the real-time situation where would you use Oracle Hits
PL/SQL Procedure
What is the difference in CREATE or [REPLACE] Procedure and to drop a procedure and create it again? What does REPLACE do, Does it drop the existing one and create the new one with same name?
Triggering events in oracle
A table has both before insert and after insert trigger. Also we have declared both the trigger as pragma autonomous transaction for saving the error record alone in the error table if any exception occurs. Now if we have a error in the trigger will the before insert trigger will get executed and the error data will be stored in the error table?. what is the exact use of before and after insert trigger...
If we call oracle package inside another package
We have a oracle package that package is calling in user defined package ?from this user defined package how will u debug the oracle package?
Stored Procedure Vs Function
What is the impact of using a stored proc or a function on the performance? Which has a better performance? Also, why is it not possible to use DML in the functions called from a select query?
How to get 1st date of a month ?
During preparation of report in *.RDF , there are two things on date & to date
on date is the i/p value , but to date = 1st day of this month on date
how ?What is difference between % ROWTYPE and TYPE RECORD ?
% ROWTYPE is to be used whenever query returns a entire row of a table or view. TYPE rec RECORD is to be used whenever query returns columns of differenttable or views and variables. E.g. TYPE r_emp is RECORD (eno emp.empno% type,ename emp ename %type); e_rec emp% ROWTYPE cursor...
Define a RETURN statement
Is it possible to define a RETURN statement in the exception part of a function?
Explain it with example.
Ans