Oracle SQL and Database Concepts
Test your knowledge of Oracle SQL including indexes, joins, constraints, views, sequences, and PL/SQL concepts
Questions
Can we use a subquery in insert statement
- True
- False
maximum limit of VARCHAR2 datatype in SQL & PLSQLRespectively
- 4000 / 4000
- 4000 / 32767
- 2000 / 4000
- None of these
Default type of compilation in Oracle
- INTERPRETTED
- NATIVE
- BOTH
- None of these
A Package spec is compulsory but a package Body is not compulsory
- True
- False
For a certain row ina table, a VARCHAR2 coilumn contains the value TCSLTD, padded to the right with seven spaces by the application when the length() function processes the coplumn value , what will be the value returned
- 6
- 13
- 30
- 60
Dropping of table has which of the following effects on the non unique index created on the table
- no effect
- The Index will be dropped
- The index will become unusable
- the index will have NULLvalues
- You cannot drop a table until you drop the index
Which of the following requires correlated subquery
- IN
- BETWEEN
- LIKE
- EXISTS
Which of the following is a valid statement for Sequences
- IDENTIFIED BY
- USING TEMPORARY TABLESPACE
- MAXVALUE
- ON DELETE CASCADE
- CURRVAL
- NEXTVAL
Can we modify Primary key constraint
- True
- False
Select the incorrect statement
- alter table table1 rename column column1 to column2
- alter table table1 rename to table 2
- alter table table1 add (c1 char(10))
- alter table table1 enable constraint t1_pk
We can update the value of the columns that is selected on view list
- yes always
- yes on simple views with group by
- no on simple views with group by and distinct clause
- yesy on complex views
The Default indexing system in oracle
- BALANCED TREE
- BITMAP
- FUNCTIONAL
- BINARY TREE
An Equi join can be:
- Natural join
- Inner Join
- Both
- Cross Join
What are the different methods of refreshing the materialized view?
- Complete
- Slow
- Fast
- Never
Which index will be beneficial to create on the column Gender of a table name employee which permits entry of only two values (M/F)?
- Compressed Index
- Function based Index
- Bitmap Index
- B*-Tree index
Which type of join is this?
- Left Outer Join
- Right outer Join
- Full Outer Join
- Inner Join
Which is not a valid join?
- Equi Join
- Natural Join
- Left Inner Join
- Cartesian product
There are 10 rows in Table A and 0 Rows in table B. If you fire the following query:
- 10
- 0
- 1
- Syntax Error
What does the following query Do?
- Null
- The Null values of COMMISSION column will be displayed as Null after addition to sal
- The Null values of COMMISSION column will be changed to 0 & will be added to sal
- Syntax error
Examine the SQL Statements that creates ORDERS table: For which columns would an index be automatically created when you execute the above SQL statement?
- ) SER_NO, PROD_ID_NUMBER
- ORDER_ID and ORDER_DATE
- SER_NO, Composite index on ORDER_ID and ORDER_DATE
- SER_NO, ORDER_ID and ORDER_DATE