Interview Questions
You'll Most Likely Be Asked
www.vibrantpublishers.com
*****
This ebook is licensed for your personal use only. This ebook may not be re-sold or given away to other people. If you
would like to share this book with another person, please purchase an additional copy for each recipient. If youre
reading this book and did not purchase it, or it was not purchased for your use only, then please return to
Smashwords.com and purchase your own copy. Thank you for respecting the hard work of this author.
This publication is designed to provide accurate and authoritative information in regard to the subject matter
covered. The author has made every effort in the preparation of this book to ensure the accuracy of the information.
However, information in this book is sold without warranty either expressed or implied. The Author or the Publisher
will not be liable for any damages caused or alleged to be caused either directly or indirectly by this book.
Vibrant Publishers books are available at special quantity discount for sales promotions, or for use in corporate
training programs. For more information please write to bulkorders@vibrantpublishers.com
*****
Table of Contents
1. General-Theory
2. DDL-DML
3. Exception Handling
4. Data Types
5. Execution Control Statements
6. Cursors
7. Procedures and Functions
8. Sequence Index
9. Joins
10. Packages and Triggers
11. Operators
12. HR Questions
INDEX
*****
*****
General-Theory
1: What is SQL?
Answer:
Structured Query Language (SQL) is a language that provides an interface to relational database systems.
In common usage SQL also encompasses DML (Data Manipulation Language), for INSERTs, UPDATEs,
DELETEs and DDL (Data Definition Language), used for creating and modifying tables and other
database structures.
2: What is database normalization?
Answer:
Normalization is the process of efficiently organizing data in a database. There are two goals of the
normalization process: eliminating redundant data (for example, storing the
same data in more than one table) and ensuring data dependencies make sense (only storing related data
in a table). Both of these are worthy goals as they reduce the amount
of space a database consumes and ensure that data is logically stored.
5: What is a Dual?
Answer:
Dual is a Table that contains a single row. It has only one column which has
varchar2 data type and the value "X".
e.g.
SQL> describe dual;
SQL> Name Null? Type
DUMMY VARCHAR2(1)
D
-X
6: What is a User Account in Oracle?
Answer:
A user account is identified by a user name and it defines the user's attributes
like,
a) Password for database authentication
b) Privileges & role
c) default tablespace for data objects
Answer:
Unless your program is an anonymous block, your errors will not be reported.
Instead, SQL*Plus will display the message
"warning: procedure created with compilation errors''.
11: Are views automatically updated when base tables are updated?
Answer:
Yes