- 
                    Group ByCreate a query using “ group by” that shows maximum salary for each department? 
- 
                    What happens to the base table transactions when procedure has some error?Procedure A calls procedure B. A updates table t1, t2. B updates table t3. If some error happens to B what happens to the updates in all those tables? Whether they will rollback or commit? If commits how far it will commit? 
- 
                    Reference table from inside a procedureHow do you reference a (updated) table from procedure A which is being updated by another procedure B? 
- 
                    Function purityWhat is function purity level and why we need it in PL/SQL function? 
- 
                    
- 
                    What is procedure and packageHi ,can any one tel pls what is use ofprocedures and packages? why we use can anyone tell me with one real time example 
- 
                    Why do we use cursors ?Guys can you please help me in realtime scenario? 
- 
                    
- 
                    
- 
                    
- 
                    Create an anonymous PL/SQL block to enroll a StudentCreate an anonymous PL/SQL block to enroll a student in a particular class. You will use the ENROLLMENTS table. Accept a STU_ID and CLASS_ID as input parameters. Use "today's date" for the ENROLLMENT_DATE and the string "Enrolled" for the STATUS. 
- 
                    Invoke a Procedure inside PackageCan you invoke a Procedure inside Package P1 from the other package P2 in the same schema? Explain 
- 
                    Validate String as AlphanumericWrite a PLSQL function that accepts some text and validates that the text has only Alphanumeic characters and returns true else returns false 
- 
                    Give the structure of the function ?FUNCTION name (argument list .....) Return datatype is local variable declarations Begin executable statements Exception execution handlers End; 
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
PL/SQL Interview Questions

 
  
  
  
		
Ans