SQL: 1. What is the diff between Exist and In Operator? A).

In operator test for the particular value in the subquery and exist operator is a boolean operator.so it works more efficient and faster than In operator. 2. What is the Diff between Delete and Truncate and Drop?
A).TRUNCATE is a DDL command whereas DELETE is a DML command. Hence DELETE

operation can be rolled back, but TRUNCATE operation cannot be rolled back. WHERE clause can be used with DELETE and not with TRUNCATE. 3. Can we drop the table if table is having the data? A). yes, we can drop the table 4. I have executed the Delete command after that I have created table whether deletions will be commit or not? if table is successfully created? Yes, committed, bcz Create is the DDL command, so DDL commands are auto committed and what ever we perform DML operations before DDL commands those are automatically committed. 5 I have executed the Delete command after the I have created table whether deletions will be commit or not? if table is not created? A. No it is not committed, bcz Create is the DDL command, so DDL commands are auto committed and any DDL command is performed successfully then before that any DML operation is there that automatically committed other wise not committed. 6. What is RowID? When it will be created? What is the format? What is the diff between RowID and Rownum? A. RowID is hexadecimal number and rownum is the normal number. RowId will be created while inserting a record into a table and rownum will be created while retrieving record using select stmt or along with the result set query. 7. Can we use RowID in the where clause? if Yes can we use like follows Where RowID = 12; A). Yes we can use in where clause. But Rowid =12 is invalid. Because rowid is always hexadecimal format not in normal number format.

What is NVL operator and what is the syntax when u have used in Oracle Apps? In Oracle/PLSQL. the NVL function lets you substitute a value when a null value is encountered. W and E. it would return the supplier_city value. S. replace_with ) string1 is the string to test for a null value. ‘E’.’West’.’North’. Example #1: select NVL(supplier_city. NVL2: it will identify the null values and filled values it returns exp3 if it is null other wise it returns exp2. . ‘UNKNOWN’ ) from customer. Note: By using this function we can perform multiple conditions on single colume. The SQL statement above would return 'n/a' if the supplier_city field contained a null value. Here we have to pass 3 parameters and In NVL we have to pass 2 parameters only. The syntax for the NVL function is: NVL( string1. Here is how we do this with the decode function: select decode( region. South.’South’. 'n/a') from suppliers. East and West. with values of N. we want to transform these values into North. 10. For example.9. ‘N’. replace_with is the value returned if string1 is null. What is Decode operator and what is the syntax when u have used in Oracle Apps? The Oracle decode statement was developed to allow us to transform data values at retrieval time. say we have a column named REGION. ‘W’. ‘S’. Otherwise. When we run SQL queries.’East’.

salary. If expr1 is null. 2).empno. Basically we have 5 types of Joins 1).deptno. In this tables must be having common column between them to apply this join. then NVL2 returns expr3.dept where emp. In this table must have the similar column repeated in itself to apply this join. Equi (or Inner or simple) Join: Used to retrieve the date from more than one data based on equality condition. salary) income FROM employees WHERE last_name like 'B%' ORDER BY last_name.mgr=manager. LAST_NAME SALARY INCOME ------------------------. Ex: select empno.emp manager Where worker. NVL2(commission_pct. Ex: list the employee and their names of their respective managers from employees.ename. Select worker. What is Join and types of Joins and what is Outer Join? A) Join is a kind of task in SQL. . By using this we can retrieve data from more than one tables based on join condition. job.job.deptno=dept. If N tables are joined „N-1‟ conditions must be provided.loc from emp.salgrade where sal between losal and hisal.ename “subordinate” Manager.---------.grade from emp. then NVL2 returns expr2.---------Baer 10000 10000 Baida 2900 2900 Banda 6200 6882 Bates 7300 8468 Bell 4000 4000 Bernstein 9500 11970 Bissot 3300 3300 Bloom 10000 12100 Bull 4100 4100 11.ename. SELECT last_name.If expr1 is not null. Ex: select empno. emp. dname.ename “superior” From emp worker.sal.deptno. 3)Self Join :Joining the table to itself.sal. salary + (salary * commission_pct). Non Equi Join: It is used to retrieved the data from more than one tables without any equality condition and using any other conditions.

21.deptno from emp.sal emp.ename. Note: here + indicate unmatched records from dept table. 20.deptno=dept. In this result is 0 joining conditions and combinations both tables data Ex: select empno. 12. Left Outer Join: Using this join . Ex: select *from emp e full outer join dept d using(deptno). Outer Join Outer join is a kind of join .4).sal. to_number() functions? A):To_date(c. Cross(Natural) Join : Used to retrieve the data from more than one tables without any condition. Select empno. 19.deptno(+)=dept. 18. date formate) Ex: select to_date(„100‟. Ex. To_char(d. Format indicates in which character is provided.job. Full outer Join: using this join we can retrieve matched and unmatched of both tables. What is the syntax for To_Date() and to_char().‟ddd‟) from dual.format): It can be used to convert the given character into date format.sal.loc from emp. 14. 5).ename. b).ename. Syntax: to_date(string. 17. we can retrieve the matched records from both tables and unmatched records of Left side table.job. List all the employee details with matching dept details.daname. Right Outer Join: using this join we can retrieve the matched records from both tables and unmatched records of right side table. .dept where emp.deptno c). The result is M*N no. by using we can retrieve matched records from both tables and unmatched records from specific table. Outer Join can be categorized 3 types a).format): it can be used to convert given da 13. 16.deptno. 15. What is Set operator and what are the types what is the diff between Set operators and Joins? What is View? What is the advantage? What are the types of views we have? When we can not update the view? What is Materialized view and what is Snap shot? What is the diff between Materialized view and Snap shot? What are the Inline views? What is synonym and what are the types and what is the advantage? What is Index? Advantege of Index? Types of Indexes? What are the Bit mapped Index? Advantage? What is sub-query and what is Co-Related Sub Query and diff between those two? 22. Tables2 have m rows. Ex: select empno. Note:Table1 will have n rows.dept. Here need to have common column between two tables.emp. dept.of records will come. o/p: 10-apr-10.deptno(+).deptno from emp.dept where emp.

What is the diff between Implicit and Explicit and Ref Cursor? 8. What is CURSOR? What are the Cursor types? what are cursor declaration steps? 7. In this character by replacement will be done. Ex:select translate(s. equal no.c2) from In this both strings must have dual. 30. In this value by value 2). 28. 33.c1. What is Explain plan and what is tkproff? 39. .23. What are the Pseudo columns we have? How to execute DOS Commands from SQL Prompt? How can we find out no of Indexes we have created against a Table? How to get second max salary from the table? How to delete duplicate rows from the table? What is where clause? What is having clause and what is the diff between these two clauses? How to handle the table level locks and column level locks? What are the constraints we have and how to declare? What is the diff between primary key and Unique? Can we compare two Null values? Can we insert more than one null value in the unique column? 35. 24. 26. What is RAISE_APPLICATION_ERROR?and what is PRAGMA INIT_EXCEPTION? 3.c1.It also replace a character another character in given string. When we is SELECT statement in the Execution block what are the Predefined exceptions we have to use in the Exception Block? 5. 27. How can u tune the query? (PL/SQL) 1. Ex: select replace(s. 2. What are the performing tuning levels? 38. What is Exception? Types of Exceptions? Exception Propagations? 2. What are the Predefined exceptions we have? 4. How to handle null values? 36. What are CBO and RBO? What is the diff between these two? 37. 29.It replace a character with 1). 31. 34. What is the diff between NO_DATA_FOUND and %NOT FOUND 6. with another character in given string.c2) from dual. What is diff between Replace and Translate? A): Replace Translate 1). 32.of characters. In which program u has used the Cursor? One example for implicit cursor? 25. character replacement will be done.

What are the Cursor attributes we have? 10. What is Instead of Trigger? How can u use that? 36. What is Global temporary table what diff between PL/SQL table and Temporary table? 34.9. What is the diff between After Parameter Form and Before Report Trigger? 10. What is mutating trigger how can you handle this? 37. What is the Advantage of Package? 20. How to Debug PL/SQL Code? 28. What is the diff between Procedure and Function? 15. What if Format and validation and action triggers? . Can we declare Procedure directly in the package body without declaring in the package specification? 24. Can we commit inside of trigger? How to delete the Trigger? How many triggers we can use maximum? 26. What is Package Variable what is advantage? 31. What is Bind Parameter and Lexical Parameter and what is the diff? 4. What are the report triggers? 8. What is Trigger 25. What is the RND and WND? 14. What is diff between Trigger and Procedure? 30. What is PL/SQl Table what is the advantage of that when we will use PL/SQL Table? 33. What are The DML Triggers? What is diff between Row and Statement level trigger? 27. How to Recompile the Package? 22. What are SYSTEM Parameters? 3. Can we issue the commit inside of the Cursor for Loop? 11. What if Frame. What are the other objects we can group inside of Package? 21. Repeating frame and Anchor Objects? 2. What is %ROWTYPE? 35. What are PL/SQL table attributes? (Reports) 1. What is the seq of triggers firing? 9. When we will use Lexical Parameters? 5. Tell me where u have used Lexical parameters in u r exp? 7. What are the Trigger Predicates we have? 29. When we will create Procedure and when we will create function? 16. If we drop the table which we have used in the procedure do we need to recompile the procedure then how? 18. Where we will Handle the Lexical parameters? 6. What is the diff between Package procedure and Standalone procedure? 17. What is For Update OF Clause in the Cursors? 12. How to get the Procedure Source code from database? 19. When we will go for creation of Package? Can we create Package body without creation of Package Specification? 23. What are the Collections? 32. What is Procedure and what is Function? 13.

What is Drill down and Matrix report? How to call another report from report? What if confine mode and Flex Mode? How to Define Anchor? What are SRW Packages we have? What is User Exit? What is Formula. and Placeholder column? and diff? What is the diff between Data link and Group by? What is the purpose of Between Pages trigger? If out put is 10 pages how many times between pages trigger will be fired if go from last page to first page whether the trigger will be created? (Forms) 1) When we open the form what are the triggers will be fired? 2) What are trigger level? What is the sequence of triggers sequence firing? How to override that sequence? 3) What are the types of canvases we have? 4) What is default Canvas and diff between Stacked and Content? When we will use stacked canvas? 5) How to develop Tabular forms in D2k? 6) What is Pre-query and Post-Query trigger and what is the diff? 7) While developing whether we will tables or views? If view how to handle the Non updatable 8) What are property clauses and visual attributes? 9) What is diff between PC and VA? How to call VA dynamically? 10) Can we write the triggers on Property clause? 11) What is the diff between CALL_FORM. 15. 17. OPEN_FORM.fmx? 21) If cursor transfer from one text item to another text item then what is the trigger sequence fire? 22) What are the areas we can use object groups? 23)When we create Master detail form what are the triggers will gets created and at what level and what are the names and what is the functionalities? 24) What are the types of relationships and what is the diff? . 18. 19. NEW_FORM? 12) What are the ways we can call the report from the form? 13) What is the diff between PRE-FORM and WHEN-NEW-FORM-INSTANCE? 14) Can we create table through form if so how? 15) What is the form Prameters? How to pass parameters? 16) What is the diff between standard procedure and form procedure? 17) What are the object groups? 18) What is the diff between Library and Package? 19) How to change form layout dynamically? 20) What are the ways we can generate . Summary. 14.11. 13. 12. 16.