This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 101. |
How Do I Display Row Number With Records? |
|
Answer» To achive this USE rownum PSEUDOCOLUMN with query, like Output: To achive this use rownum pseudocolumn with query, like Output: |
|
| 102. |
Explicit Cursor Attributes |
|
Answer» There are four cursor ATTRIBUTES USED in ORACLE cursor_name%Found, There are four cursor attributes used in Oracle cursor_name%Found, |
|
| 103. |
Find Out Nth Highest Salary From Emp Table |
|
Answer» SELECT DISTINCT (a.sal) FROM EMP A WHERE &N = (SELECT COUNT (DISTINCT (B.sal)) FROM EMP B WHERE a.sal<=b.sal); Enter VALUE for n: 2 SELECT DISTINCT (a.sal) FROM EMP A WHERE &N = (SELECT COUNT (DISTINCT (b.sal)) FROM EMP B WHERE a.sal<=b.sal); Enter value for n: 2 |
|
| 104. |
To View Installed Oracle Version Information |
|
Answer» SQL> select banner from V$version; SQL> select banner from v$version; |
|
| 105. |
Display Odd/ Even Number Of Records |
|
Answer» Odd number of records: Even number of records: Odd number of records: Even number of records: |
|
| 106. |
Which Date Function Returns Number Value? |
|
Answer» months_between months_between |
|
| 107. |
Any Three Pl/sql Exceptions? |
|
Answer» Too_many_rows, Too_many_rows, |
|
| 108. |
What Are Pl/sql Cursor Exceptions? |
|
Answer» Cursor_Already_Open, Invalid_Cursor Cursor_Already_Open, Invalid_Cursor |
|
| 109. |
What Are The More Common Pseudo-columns? |
|
Answer» SYSDATE, USER , UID, CURVAL, NEXTVAL, ROWID, ROWNUM SYSDATE, USER , UID, CURVAL, NEXTVAL, ROWID, ROWNUM |
|
| 110. |
What Is The Output Of Sign Function? |
|
Answer» 1 for POSITIVE value, 1 for positive value, |
|
| 111. |
What Is The Maximum Number Of Triggers, Can Apply To A Single Table? |
|
Answer» 12 triggers. |
|
| 112. |
What Is A Cartesian Product? What Causes It? |
|
Answer» A Cartesian product is the result of an UNRESTRICTED join of TWO or more tables. The result set of a three table Cartesian product will have X * y * z number of ROWS where x, y, z correspond to the number of rows in each table involved in the join. It is causes by specifying a table in the FROM clause without joining it to ANOTHER table. A Cartesian product is the result of an unrestricted join of two or more tables. The result set of a three table Cartesian product will have x * y * z number of rows where x, y, z correspond to the number of rows in each table involved in the join. It is causes by specifying a table in the FROM clause without joining it to another table. |
|
| 113. |
What Is An Advantage To Using A Stored Procedure As Opposed To Passing An Sql Query From An Application. |
|
Answer» A STORED procedure is pre-loaded in memory for FASTER execution. It allows the DBMS control of PERMISSIONS for security PURPOSES. It ALSO eliminates the need to recompile components when minor changes occur to the database. A stored procedure is pre-loaded in memory for faster execution. It allows the DBMS control of permissions for security purposes. It also eliminates the need to recompile components when minor changes occur to the database. |
|
| 114. |
What Is The Difference Of A Left Join And An Inner Join Statement? |
|
Answer» A LEFT JOIN will take ALL values from the first DECLARED table and MATCHING values from the second declared table based on the COLUMN the join has been declared on. An INNER JOIN will take only matching values from both tables A LEFT JOIN will take ALL values from the first declared table and matching values from the second declared table based on the column the join has been declared on. An INNER JOIN will take only matching values from both tables |
|
| 115. |
When A Query Is Sent To The Database And An Index Is Not Being Used, What Type Of Execution Is Taking Place? |
|
Answer» A table SCAN. A table scan. |
|
| 116. |
What Are The Pros And Cons Of Using Triggers? |
|
Answer» A trigger is one or more statements of SQL that are being executed in event of data modification in a table to which the trigger belongs. Triggers enhance the security, efficiency, and standardization of databases. Triggers can be beneficial when used:
A trigger is one or more statements of SQL that are being executed in event of data modification in a table to which the trigger belongs. Triggers enhance the security, efficiency, and standardization of databases. Triggers can be beneficial when used: |
|
| 117. |
What Are Some Advantages To Using Oracle's Create Database Statement To Create A New Database Manually? |
|
Answer» You can script the PROCESS to include it in a SET of install scripts you deliver with a product. You can PUT your create database script in CVS for version control, so as you make changes or adjustments to it, you can track them like you do changes to software code. You can LOG the output and review it for errors. You learn more about the process of database creation, such as what OPTIONS are available and why. You can script the process to include it in a set of install scripts you deliver with a product. You can put your create database script in CVS for version control, so as you make changes or adjustments to it, you can track them like you do changes to software code. You can log the output and review it for errors. You learn more about the process of database creation, such as what options are available and why. |
|
| 118. |
Why Is A Union All Faster Than A Union? |
|
Answer» The UNION operation, you will recall, BRINGS two sets of DATA together. It will *NOT* HOWEVER produce duplicate or redundant rows. To perform this feat of magic, a SORT operation is done on both tables. This is obviously computationally intensive, and uses significant memory as well. A UNION ALL conversely just dumps collection of both sets together in random ORDER, not worrying about duplicates. The union operation, you will recall, brings two sets of data together. It will *NOT* however produce duplicate or redundant rows. To perform this feat of magic, a SORT operation is done on both tables. This is obviously computationally intensive, and uses significant memory as well. A UNION ALL conversely just dumps collection of both sets together in random order, not worrying about duplicates. |
|
| 119. |
What Is Oracle 10g? |
|
Answer» Oracle 10G is a version of the Oracle DATABASE. The G stands for "grid" to indicate that 10g is "grid-computing ready". Oracle 10g is a version of the Oracle Database. The g stands for "grid" to indicate that 10g is "grid-computing ready". |
|