InterviewSolution
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.
| 201. |
If Any Other Table Same As Dual Is Created Would It Act Similar To Dual? |
|
Answer» Yes. Yes. |
|
| 202. |
If Content Of Dual Is Updated To Some Value Computation Takes Place Or Not ? |
|
Answer» Yes. Yes. |
|
| 203. |
Can Dual Table Be Deleted, Dropped Or Altered Or Updated Or Inserted ? |
|
Answer» Yes. Yes. |
|
| 204. |
What Is The Difference Between Foreign Key And Reference Key ? |
|
Answer» FOREIGN KEY is the key i.e. attribute which refers to another table primary key. REFERENCE key is the primary key of table REFERRED by another table. Foreign key is the key i.e. attribute which refers to another table primary key. Reference key is the primary key of table referred by another table. |
|
| 206. |
What Is The Effect Of Synonym And Table Name Used In Same Select Statement ? |
|
Answer» Valid. Valid. |
|
| 207. |
What Is The Difference Between Alias And Synonym ? |
|
Answer» ALIAS is temporary and USED with ONE QUERY. Synonym is PERMANENT and not used as alias. Alias is temporary and used with one query. Synonym is permanent and not used as alias. |
|
| 208. |
What Is The Difference Between A View And A Synonym ? |
|
Answer» Synonym is just a second NAME of table used for multiple link of database. VIEW can be created with many TABLES, and with virtual columns and with CONDITIONS. But synonym can be on view. Synonym is just a second name of table used for multiple link of database. View can be created with many tables, and with virtual columns and with conditions. But synonym can be on view. |
|
| 209. |
Can You Create Index On View ? |
|
Answer» No. No. |
|
| 210. |
Can You Alter Synonym Of View Or View ? |
|
Answer» No. No. |
|
| 211. |
Can Database Trigger Written On Synonym Of A Table And If It Can Be Then What Would Be The Effect If Original Table Is Accessed? |
|
Answer» YES, DATABASE TRIGGER WOULD FIRE. Yes, database trigger would fire. |
|
| 212. |
How Can You Avoid Indexes ? |
|
Answer» TO make index ACCESS PATH unavailable - Use FULL hint to OPTIMIZER for full table scan - Use INDEX or AND - EQUAL hint to optimizer to use one index or set to indexes instead of another. - Use an expression in the Where CLAUSE of the SQL.. TO make index access path unavailable - Use FULL hint to optimizer for full table scan - Use INDEX or AND - EQUAL hint to optimizer to use one index or set to indexes instead of another. - Use an expression in the Where Clause of the SQL.. |
|
| 213. |
When To Create Indexes ? |
|
Answer» To be CREATED when table is queried for LESS than 2% or 4% to 25% of the table rows. To be created when table is queried for less than 2% or 4% to 25% of the table rows. |
|
| 214. |
While Designing In Client/server What Are The 2 Important Things To Be Considered ? |
|
Answer» Network OVERHEAD (traffic), Speed and Load of CLIENT SERVER. Network Overhead (traffic), Speed and Load of client server. |
|
| 215. |
Which Are Initial Rdbms, Hierarchical & Network Database? |
|
Answer»
Hierarchical - IMS. Network - DBTG. RDBMS - R system. Hierarchical - IMS. Network - DBTG. |
|
| 216. |
What Is Multi Threaded Server (mta) ? |
|
Answer» In a Single Threaded ARCHITECTURE (or a DEDICATED server CONFIGURATION) the database manager creates a separate process for each database user. But in MTA the database manager can assign multiple users (multiple user processes) to a single DISPATCHER (server process), a controlling process that queues REQUEST for work thus reducing the databases memory requirement and resources. In a Single Threaded Architecture (or a dedicated server configuration) the database manager creates a separate process for each database user. But in MTA the database manager can assign multiple users (multiple user processes) to a single dispatcher (server process), a controlling process that queues request for work thus reducing the databases memory requirement and resources. |
|
| 217. |
Definition Of Relational Database By Dr. Codd (ibm)? |
|
Answer» A RELATIONAL Database is a database where all data VISIBLE to the user is organized STRICTLY as tables of data VALUES and where all database operations work on these tables. A Relational Database is a database where all data visible to the user is organized strictly as tables of data values and where all database operations work on these tables. |
|
| 218. |
Consider A Sequence Whose Currval Is 1 And Gets Incremented By 1 By Using The Nextval Reference We Get The Next Number 2. Suppose At This Point We Issue An Rollback And Again Issue A Nextval. What Will The Output Be ? |
|
Answer» 3. 3. |
|
| 220. |
If All The Values From A Cursor Have Been Fetched And Another Fetch Is Issued, The Output Will Be : Error, Last Record Or First Record ? |
|
Answer» Last Record. |
|
| 221. |
Can A Trigger Written For A View? |
|
Answer» No. No. |
|
| 222. |
Are Views Automatically Updated When Base Tables Are Updated ? |
|
Answer» Yes. Yes. |
|
| 223. |
Which Symbol Preceeds The Path To The Table In The Remote Database? |
|
Answer» @. @. |
|
| 224. |
How Many Rows Will The Following Sql Return : Select * From Emp Where Rownum = 10; |
|
Answer» No ROWS. No rows. |
|
| 225. |
How Many Rows Will The Following Sql Return : Select * From Emp Where Rownum < 10; |
|
Answer» 9 rows. |
|
| 226. |
Can You Use %rowcount As A Parameter To A Cursor ? |
|
Answer» Yes. Yes. |
|
| 227. |
What Are The Various Types Of Rollback Segments ? |
| Answer» | |
| 228. |
Can You Pass A Parameter To A Cursor ? |
|
Answer» Explicit cursors can take PARAMETERS, as the example below SHOWS. A CURSOR parameter can appear in a QUERY wherever a CONSTANT can appear. CURSOR c1 (median IN NUMBER) IS SELECT job, ename FROM emp WHERE sal > median; Explicit cursors can take parameters, as the example below shows. A cursor parameter can appear in a query wherever a constant can appear. CURSOR c1 (median IN NUMBER) IS SELECT job, ename FROM emp WHERE sal > median; |
|
| 229. |
What Is The Maximum Number Of Columns A Table Can Have ? |
|
Answer» 254. 254. |
|
| 230. |
Can You Rollback To Any Savepoint ? |
|
Answer» Yes. Yes. |
|
| 231. |
Can You Define Multiple Savepoints ? |
|
Answer» Yes. Yes. |
|
| 232. |
An Insert Statement Followed By A Create Table Statement Followed By Rollback? Will The Rows Be Inserted? |
|
Answer» No. No. |
|
| 233. |
What Is The Difference Between Unique Key And Primary Key? |
|
Answer» UNIQUE KEY can be NULL; PRIMARY key cannot be null. Unique key can be null; Primary key cannot be null. |
|
| 234. |
What Are The States Of A Rollback Segment ? What Is The Difference Between Partly Available And Needs Recovery ? |
|
Answer» The various STATES of a rollback segment are : ONLINE, OFFLINE, PARTLY AVAILABLE, NEEDS RECOVERY and INVALID. The various states of a rollback segment are : ONLINE, OFFLINE, PARTLY AVAILABLE, NEEDS RECOVERY and INVALID. |
|
| 235. |
What Are The Minimum Extents Allocated To A Rollback Extent ? |
|
Answer» Two. Two. |
|
| 236. |
Can Check Constraint Be Used For Self Referential Integrity ? How ? |
|
Answer» YES. In the CHECK condition for a COLUMN of a table, we can REFERENCE some other column of the same table and thus enforce SELF REFERENTIAL integrity. Yes. In the CHECK condition for a column of a table, we can reference some other column of the same table and thus enforce self referential integrity. |
|
| 237. |
Can Null Keys Be Entered In Cluster Index, Normal Index ? |
|
Answer» Yes. Yes. |
|
| 238. |
Can Long/long Raw Be Clustered ? |
|
Answer» No. No. |
|
| 239. |
What Are The Disadvantages Of Clusters ? |
|
Answer» The TIME for INSERT INCREASES. The time for Insert increases. |
|
| 240. |
What Are The Advantages Of Clusters ? |
|
Answer» ACCESS TIME REDUCED for JOINS. Access time reduced for joins. |
|
| 241. |
What Is The Use Of Data Dictionary ? |
|
Answer» USED by ORACLE to store information about various physical and logical Oracle structures. e.g. TABLES, Tablespaces, DATAFILES, ETC... Used by Oracle to store information about various physical and logical Oracle structures. e.g. Tables, Tablespaces, datafiles, etc... |
|
| 242. |
What Is The Use Of Control Files ? |
|
Answer» CONTAINS POINTERS to locations of VARIOUS data files, redo log files, ETC. Contains pointers to locations of various data files, redo log files, etc. |
|
| 243. |
Can You Increase The Size Of A Tablespace ? How ? |
|
Answer» YES, by ADDING DATAFILES to it. Yes, by adding datafiles to it. |
|
| 244. |
Describe Oracle Database's Physical And Logical Structure ? |
|
Answer» PHYSICAL : Data FILES, Redo Log files, Control file. Logical : Tables, Views, TABLESPACES, ETC. Physical : Data files, Redo Log files, Control file. Logical : Tables, Views, Tablespaces, etc. |
|
| 245. |
What Are Constraining Triggers ? |
|
Answer» A trigger giving an INSERT / UPDATE on a table having referential INTEGRITY CONSTRAINT on the triggering table. A trigger giving an Insert / Update on a table having referential integrity constraint on the triggering table. |
|
| 246. |
What Are Mutating Triggers ? |
|
Answer» A TRIGGER GIVING a SELECT on the table on which the trigger is WRITTEN. A trigger giving a SELECT on the table on which the trigger is written. |
|
| 247. |
What Are Cascading Triggers? What Is The Maximum No Of Cascading Triggers At A Time? |
|
Answer» When a STATEMENT in a trigger body CAUSES another trigger to be fired, the TRIGGERS are said to be CASCADING. MAX = 32. When a statement in a trigger body causes another trigger to be fired, the triggers are said to be cascading. Max = 32. |
|
| 248. |
What Are The Values Of :new And :old In Insert / Delete / Update Triggers ? |
|
Answer» INSERT : NEW = new VALUE, OLD = NULL. DELETE : new = NULL, old = old value. UPDATE : new = new value, old = old value. INSERT : new = new value, old = NULL. DELETE : new = NULL, old = old value. UPDATE : new = new value, old = old value. |
|
| 249. |
Can Views Be Specified In A Trigger Statement ? |
|
Answer» No. No. |
|
| 250. |
What Is The Maximum Number Of Statements That Can Be Specified In A Trigger Statement ? |
|
Answer» One. One. |
|