Oracle Database and PL/SQL Concepts
Test your knowledge of Oracle database concepts including SQL queries, transactions, triggers, constraints, data types, and PL/SQL programming
Questions
A Database Procedure is stored in the Database
- In compiled form
- As source code
- Both A & B
- Not stored
If an UNIQUE KEY constraint on DATE column is created, will it accept the rows that are inserted with SYSDATE?
- will
- won't
- sometimes possible
- None of the above
What is the Result of the following 'AXA'||NULL||'US' ?
- Error
- NULL
- AXA US
- AXAUS
Use these data for the following Questions EMPNO ENAME SAL A822 RAMASWAMY 3500 A812 NARAYAN 5000 A973 UMESH 2850 A500 BALAJI 5750 Select SAL from EMP E1 where 3 > ( Select count(*) from Emp E2 where E1.SAL > E2.SAL ) will retrieve
- 3500,5000,2850
- 5000,2850
- 2850,5750
- 5000,5750
What is a trigger?
- A piece of logic written in PL/SQL
- Executed at the arrival of a SQL event
- Both A & B
- None of the above
A Transaction ends
- Only when it is Committed
- Only when it is Rolled back
- When it is Committed or Rolled back
- None of the above
What are the different events in Triggers?
- Define, Create
- Insert, Update, Delete
- Drop, Comment
- All of the above
Use these data for the following Questions EMPNO ENAME SAL E100 John 3250 E200 Praveen 2000 E300 Mahesh E400 Prasanth 5500 E500 Vikram 6650 Select count (sal) from Emp will retrieve
- 1
- 0
- 3
- 4
- None of the above
The Data Manipulation Language statements are
- INSERT
- UPDATE
- SELECT
- All of the above
Declare a number := 5; b number := null; c number := 10; Begin if a > b AND a < c then a := c * a; end if; End; What will be the value of 'a' after execution?
- 50
- NULL
- 5
- None of the above
Find the ODD Datatype out
- VARCHAR2
- RECORD
- BOOLEAN
- RAW
A Database Procedure is stored in the Database
- In compiled form
- As source code
- Both A & B
- Not stored
If an UNIQUE KEY constraint on DATE column is created, will it accept the rows that are inserted with SYSDATE?
- will
- won't
- sometimes possible
- None of the above
What is the Result of the following 'AXA'||NULL||'US' ?
- Error
- NULL
- AXA US
- AXAUS
Use these data for the following Questions EMPNO ENAME SAL A822 RAMASWAMY 3500 A812 NARAYAN 5000 A973 UMESH 2850 A500 BALAJI 5750 Select SAL from EMP E1 where 3 > ( Select count(*) from Emp E2 where E1.SAL > E2.SAL ) will retrieve
- 3500,5000,2850
- 5000,2850
- 2850,5750
- 5000,5750
What is a trigger?
- A piece of logic written in PL/SQL
- Executed at the arrival of a SQL event
- Both A & B
- None of the above
A Transaction ends
- Only when it is Committed
- Only when it is Rolled back
- When it is Committed or Rolled back
- None of the above
In "Select 1 from dual;" who is the owner of Dual table?
- scott
- john
- sys
- system
Dropping a table causes its synonym to drop.
- True
- False
can we rename a Synonym?
- True
- False