0% found this document useful (0 votes)
11 views

SQL and PLSQL Questions Sample 2020 - Complete List

Uploaded by

nasreen
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

SQL and PLSQL Questions Sample 2020 - Complete List

Uploaded by

nasreen
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 58

QUESTION_ID

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146

147
148
149
150
151
152

153

154
155

156

157

158

159
160
161
162
163
164
165

166
167
168

169

170

171
172
173

174

175
176

177
178
179
180
181
182
183
184
185
186
187
188
189

190

191

192

193
194

195

196

197

198

199

200

201

202

203

204
205
206
207
208
209

210
211

212

213

214
215
216
217
218
219
220

221
222

223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249

250
QUESTION
Dual table is what type of object type in apps schema
Which data manipulation command is used to combines the records from one or more tables?
Which statement in SQL allows us to change the definition of a table is?
Which of the following is not a valid SQL type?
Which operator is used to compare a value to a specified list of values?
The SQL used by front-end application programs to request data from the DBMS is called _______
The command used to delete a particular column in a relation is ____________
Which of the following operations requires the relations to be union compatible?
Which of the following is a legal expression in SQL?
What is the full form of DDL ?
Select sysdate + sysdate from dual; what will be the result ?
What type of join is needed when you wish to include rows that do not have matching values?
Which of the following is true concerning a procedure?
A CASE SQL statement is which of the following?
Which of the following is one of the basic approaches for joining tables?
How many tables may be included with a join?
SQL views can be used to hide:
Which of the following is NOT a type of SQL constraint?
Which of the following are the five built-in functions provided by SQL?
To define what columns should be displayed in an SQL SELECT statement:
Which operator performs pattern matching?
What operator test column for the absence of data?
In SQL which command(s) is (are) used to change a table's storage characteristics?
In SQL which of the following is not a data definition language command?
A command that lets you change one or more field in a record is
Which of the SQL statements is correct
What is a view?
Which of the following is a SQL aggregate function
The SQL statement select SUBSTR('123456789',INSTR('abcabcabc','b'),4) from dual;
Which of the following group functions ignore NULL values?
Which of the following is a correlated subquery?
The HAVING clause does which of the following?
The following SQL is which type of join: SELECT CUSTOMER_T. CUSTOMER_ID, ORDER_T. CUSTOMER_ID, NAME, ORDER_ID F
SELECT SUBSTR(‘123456789’,
Table Employee INSTR(‘abcabcabc’,
has 10 records. It has a non-NULL‘b’), 4) FROM
SALARY DUAL;
column which is also UNIQUE.
The SQL statement SELECT COUNT(*) FROM Employee WHERE SALARY > ANY (SELECT SALARY FROM EMPLOYEE);
Which of the following is illegal?
TRUNCATE statement in SQL is a –
A type of query that is placed within a WHERE or HAVING clause of another query is called
Which of the below point(s) are true with respect to joins:
Second normal form should meet all the rules for
Which of the following must be enclosed in double quotes ?
What is the meaning of like '%0%0%'
Select 'Hi' from dual where null= null; Output will be
If a query involves NOT, AND, OR with no parenthesis
Which of the following join is also called an 'inner Join'
A subquery in an SQL select statement is enclosed in
Which of th following do you need to consider when you make a table in SQL
Name the tool for tuning SQL statements.
All of the following can only be used with numeric data types except:
Which of the following are the pseudo-columns?
Which of the following is the fastest query method for a table?
_______________ are padded with space characters to match the specified length.
How many different types of triggers can exist in a table in Oracle?
Which of the following statements is true?
To determine the time zone under which a database was operating?
Which type of index should be used on a fact table?
A database trigger is an alternative for
A stored procedure is only executed
What operator is used to prevent the error: ‘ORA-01427:single row sub query returns more than one row’ ?
Which of the following are types of background processes in Oracle?
Which of the following is true concerning systems information in an RDBMS?
A RDBMS consists a collection of
The term attribute refers to a ___________ of a table.
Address field of a person should not be part of primary key, since it is likely to ?
Database __________ , which is the logical design of the database, and the database _______,which is a snapshot of the data
Full form of RDBMS is
Primary Key should be chosen such that its attribute values are never
Query Language is a language in which a user ____
Student(ID, name, dept name, tot_cred) In this query which attribute form the primary key?
A snapshot of the data in the database at a given instant in time is known as
A relation, say r1, may include among its attribute the primary key of another relation, say r2. the r1 is known as
______ produces the relation that has attributes of R1 and R2
The master list of an indexed file
In a relational database a referential integrity constraint can be specified with the help of
A primary key
In a relation
What is the degree of a table with 1000 rows and 10 column
A super key is a set of one or more attribute that, taken collectively , asslow us
Normalization of database is used to
Functional dependencies are a generalization of
Manager’s salary details are hidden from the employee. This is
Define compound key
A schema describes
Information can be transferred between the DBMS and a
What is the full form of ACID?
A DBMS that runs on many different operating systems is said to be
The most open source DBMS.
An enterprise solution with data storage, a client interface and a security system is
A data dictionary includes?
_________ collection of data files?
Data about data is normally termed as?
This is an authorization command of SQL?
Rollback of transition is normally used to?
Which two statements are true about the primary key constraint in a table?
How should a many-to-many relationship be handled?
A data block is
Which of the following relational algebra operations do not require the participating tables to be union-compatible?
Which of the following is not a property of transactions?
Tree structures are used to store data in
The rule that a value of a foreign key must appear as a value of some specific table is called a
What is a disjoint less constraint?
It is an abstraction through which relationships are treated as higher level entities
A relation is in ____________ if an attribute of a composite key is dependent on an attribute of other composite key
What is data integrity?
Fifth Normal form is concerned with
If a transaction T has obtained an exclusive lock on item Q, then T can
If two relations R and S are joined, then the non matching tuples of both R and S are ignored in
In 2NF
R (A,B,C,D) is a relation. Which of the following does not have a lossless join dependency preserving BCNF decomposition
The normal form that is not necessarily dependency preserving is
A functional dependency of the form yx → is trivial if
The normalization was first proposed by ______________.
Assume transaction A holds a shared lock R. If transaction B also requests for a shared lock on R.
What is the full form of SQL?
Which is the subset of SQL commands used to manipulate Oracle Database structures, including tables?
Which of the following is buffered by SQL*Plus?
Script files can be executed by the
Which operator performs pattern matching?
Which command should be used to turn on the output of PL/SQL commands in SQL*Plus?
In an SQL statement, which of the following parts states the conditions for row selection?
In SQL, which of the following is not a data definition language commands?
Which of the following is not a subtype of PLS_INTEGER datatype?
A command that lets you change one or more fields in a record is
Which of the following is not a valid SQL type?
A SQL query automatically eliminates duplicates (True / False) ?
Which data type can store unstructured data in a column?
Which function is used to divides one numeric expression by another and get the remainder
What are the different types of identifiers?
Which of the following activities arc you allowed to do after executing the DISCONNECT command
In SQL, which command is used to issue multiple CREATE TABLE, CREATE VIEW and GRANT statements in a single transaction?
Which character function can be used to return a specified portion of a character string?
What are the different events in Triggers
Which of the following correctly describes the use of a %TYPE attribute?
When SQL statements are embedded inside 3GL, we call such a program as ..........
. ................ provides option for entering SQL queries as execution time, rather than at the development stage.
What is a data block?
What operator performs pattern matching?
Which processes is an instance made of Oracle?
Which prefixes are available to Oracle triggers?
What is the type of Oracle backup in which all uncommitted changes have been removed from the datafiles?
To change the format of the date returned by SYSDATE. use the command
The DUAL table has
What is the use of extent in Oracle?
20. which is the extension of an Oracle SQL*Plus file ?
Which of the following can be used as an argument for a procedure parameter?

Which of the following is true concerning a procedure?


Which of the following statements is true concerning routines and triggers?
Which of the following statements is true concerning subqueries?
In SQL, which command is used to remove a stored function from the database?
Which is not true about the exception handling section of a PL/SQL block?
A composite key is made up of …………….

If two groups are not linked in the data model editor, what is the hierarchy between them?

Where can overloaded subprograms be used in PL/SQL?


Which of the following types of triggers can be fired on DDL operations?

Which of the following statement is true?

The only required sections of a PL/SQL block are the ____ sections.

What is the purpose of the SQL AS clause?

Which of the following is a legal expression in SQL?


The COUNT function in SQL returns the number of _____
The SQL statement - SELECT SUBSTR('abcdefghij', INSTR('123321234', '2', 3, 2), 2) FROM DUAL; Prints
Which of the following must be enclosed in double-quotes?
A subquery in an SQL SELECT statement is enclosed in:
Which of the following do you need to consider when you make a table in SQL?
CREATE DATABASE has how many mandatory parameters?

For every unique constraint on a column, SQL server will create


An index can be defined for a single column

Which is/are correct statements about primary key of a table?


The SQL WHERE clause:

The wildcard in a WHERE clause is useful when?

A view is which of the following?


ON UPDATE CASCADE ensures which of the following?
The SQL keyword(s) ________ is used with wildcards.

In an SQL SELECT statement querying a single table, according to the SQL-92 standard the asterisk (*) means that:

The HAVING clause does which of the following?


Subprograms and anonymous blocks can be called by other applications.

The SQL -92 wildcards are ____ and ____ .


When three or more AND and OR conditions are combined, it is easier to use the SQL keyword(s):
SGA stands for
Which command is used to get input from the user?
Which of the following SQL•Plus commands can be used to see the compilation errors in a PUSQL code?
What does the / command do?
What command should you try if DBMS_OUTPUT.PUT_LINE is not doing what it is sup-posed to do?
SQL*Plus will know you are typing a PUSQL block when it encounters the keyword
Which of the following methods cannot be used to specify a comment In SQL•Plus scripts?
The DESCRIBE command if used on a table, will not display information about
The ALL Data Dictionary view lets you access any object
Which of the following is not a type of data dictionary view?
The owner of the DUAL table is
Assume employee table as Employee(empname,salary) (Ravi,10000; Gopi, 50000;Siva,60000). what is the output of
below sql statement:
Select count(*) from Employee;
Assume employee table as Employee(empname) (Ravi, Gopi,Siva,Apple). what is the output of below sql
statement:
Select count(5) from Employee;
Assume employee table as Employee(empname,salary) (Ravi,10000; Gopi, 50000;Siva,6000). what is the output of
below sql statement:
Select max(salary) from Employee;
Assume employee table as Employee(empname,salary) (Ravi,10000; Gopi, 50000;Siva,6000). what is the output of
below sql statement:
Select min(salary) from Employee;
Assume employee table as Employee(empname,salary) (Ravi,10000; Gopi, 50000;Siva,6000). what is the output of
below sql statement:
Select avg(salary) from Employee;
Assume employee table as Employee(empname,salary) (Ravi,10000; Gopi, 50000;Siva,6000). what is the output of
below sql statement:
Select empname from Employee where salary > 10000 order by 1;
Assume Dept table as Dept(Deptname) (Admin,Operations,Finance,Human Resource,IT). what is the output of
below sql statement:
Select Deptname from Dept order by deptname desc;

Assume Dept table as Dept(Deptname) (Admin,Operations,Finance,Human Resource,IT). what is the output of


below sql statement:
Select Deptname from Dept where Deptname like 'fin%';
Assume Dept table as Dept(Deptname) (Admin,Operations,Finance,Human Resource,IT). what is the output of
below sql statement:
Select upper(Deptname) from Dept where Deptname like 'OPERATIONS';
Assume Dept table as Dept(Deptname) (Admin,Operations,Finance,Human Resource,IT). what is the output of
below sql statement:
Select lower(Deptname) from Dept where upper(Deptname) like 'ADMIN';
Assume employee tables as Emp1(empname) (Ravi,Gopi) and Emp2(empname) (John,Ravi). what is the output of
below sql statement:
Select empname from emp1
union all
Select empname from emp2

Assume employee tables as Emp1(empname) (Ravi,Gopi) and Emp2(empname) (John,Ravi). what is the output of
below sql statement:
Select empname from emp1
union
Select empname from emp2

Assume Dept table as Dept(Deptname) (Admin,Operations,Finance,Human Resource,IT). Identify the correct


statement
Assume Dept table as Dept(Deptname) (Admin,Operations,Finance,Human Resource,IT). Identify the correct
statement
You cannot delete from a view except through INSTEAD OF triggers if the defining query of the view contains one
of the following constructs:
Identify the correct statement
The TRUNCATE TABLE statement is used to delete the data inside a table, but not the table itself.
Identify the correct statement
TRUNCATE is faster than DELETE
You can rollback data after using delete statement.
Does below query will identify duplicate records:
select a.* from Employee a where rowid !=
(select max(rowid) from Employee b where a.Employee_num =b.Employee_num;
Assume Students table as Students(name,subject,marks) (Ravi,Maths,20; Ravi,
Chemistry,50;John,Maths,60;John,Chemistry,55). what is the output of below sql statement:
Select name,sum(marks) from Students;
Assume Students table as Students(name,subject,marks) (Ravi,Maths,20; Ravi,
Chemistry,50;John,Maths,60;John,Chemistry,55). what is the output of below sql statement:
Select name,sum(marks) from Students group by name;

Assume Students table as Students(name,subject,marks) (Ravi,Maths,20; Ravi,


Chemistry,50;John,Maths,60;John,Chemistry,55). what is the output of below sql statement:
Select name,sum(marks) from Students group by name having sum(marks) <=50
Assume Students table as Students(name,subject,marks) (Ravi,Maths,20; Ravi,
Chemistry,50;John,Maths,60;John,Chemistry,55). what is the output of below sql statement:
Select name,sum(marks) from Students group by name having sum(marks) >= 100
Specify correct order of clauses in select statement
Functions can be used in SQL statements
Procedures can be used in SQL statements
It's possible to update the base table associated with a view
The MERGE statement reduces table scans and can perform the operation in parallel if required
The MERGE statement will be used to insert or update data depending on its presence
Assume employee table as Employee(empname,salary) (Ravi,10000; Gopi, 50000;Siva,60000). Identify correct
statement to update salary for Ravi as 25000

Update statement wihout where calse will update all records.


What is the output of below sql statement:
select level
from dual
connect by level < 6;

Connect by level caluse will be used to display sequence.


Using Upper and Lowe statements will increase the performance
Identify correct statement to alter employee table and add email columns
Identify correct statement to alter employee table and to change datatype of salary from varchar2 to number
What are the different type of SQL statements.
Identify the correct statement
When do we need to use Commit
Which of the statements is true?
Which Operator Performs Pattern Matching
Which SQL Function needs a Group by Clause after Where clause
If you don’t specify ASC or DESC after a SQL ORDER BY clause, the following is used by default
Having Caluse is used in
The UNION SQL clause can be used with
Which Clause will remove Duplicates while merging multiple queries
Which of the statements about Delete is true?
What type of join is needed when you wish to include rows that do not have matching values?
Simple View will be saved in DB as
Materialized View will be saved in DB as
Primary key can be defined only on
Which of the Following statements are true About Index
Which of the Following statements are true
Which of the Following statements are true About Create
Primary Key is a Superset of
Primary Key can be dropped through Alter Command
Which statement is true about COUNT
Primary Key Constraint Must have a foreign key constraint defined
Which of these query will display the the table given above ?

The ________ clause is used to list the attributes desired in the result of a query.
IMAGE_PATH OPTION1 (A) OPTION2 (B) OPTION3 ©
View Table Global temporary table
SELECT PROJECT JOIN
ALTER UPDATE CREATE
DECIMAL NUMERIC FLOAT
BETWEEN ANY IN
DML DDL VDL
UPDATE TABLE TRUNCATE COLUMN ALTER , DROP
UNION INTERSECTION DIFFERENCE
SELECT NULL FROM SALESSELECT NAME FROM SALSELECT * FROM SALES WHEN
Dynamic Data Language Detailed Data LanguageData Definition Language
sysdate Invalid Identifier date + date not allowed
Equi-join Natural join Outer join
You do not create them wiThey do not need to ha They include procedural an
way to establish an IF-TH way to establish a loop way to establish a data defi
Subqueries Union Join Natural join
One Two Three
columns and rows only. complicated SQL syntaxboth of the above can be h
PRIMARY KEY FOREIGN KEY ALTERNATE KEY
COUNT, SUM, AVG, MAX,SUM, AVG, MIN, MAX, SUM, AVG, MULT, DIV, MIN
use FROM to name the souruse USING to name theuse SELECT to name the sour
Between operator Like Operator Exists Operator
Exists Operator Not Operator Is Null operator
Alter table Modify Table Change Table
Rename Revoke Grant
insert Modify Look-up
select username and pass select username,passwoselect username,password
A view is a special store A view is a virtual tabl A view is a database diagra
LEFT AVG JOIN
6789 2345 1234
MAX COUNT SUM
Uses the result of an inne Uses the result of an ouUses the result of an inner
Acts like a WHERE clause b Acts like a WHERE clau Acts like a WHERE clause
, NAME, ORDER_ID F Equi-join Natural join Outer join
6789 2345 1234
10 9 5
SELECT SYSDATE – SYSDA SELECT SYSDATE – (SYS SELECT SYSDATE – (SYSDAT
DML statement DDL statement DCL statement
Master query Sub query Super query
Null values never join. Columns used in the joi Join column is usually a pri
1 NF 2 NF 3 NF
Dates Column Alias Strings
Feature begins with two 0Feature ends with two 0Feature has more than two
Hi FLASE 1
NOT will be evaluated firs NOT will be evaluated fiAND will be evaluated first;
Non-Equijoin Self-Join Equijoin
parenthesis -- (...). brackets -- [...]. CAPITAL LETTERS.
Data types Primary keys Default values
TUNEUP SYS EXPLAIN SYS DB_TUNEUP
AVG COUNT SUM
DUAL,USER_ID,CUR_VAL USER_ID,DUAL,ROW_IDSYSDATE,USER,CURVAL,NE
Fetch by columnid Fetch by tableid Fetch by rowid
VARCHAR VARCHAR2 CHAR
10 12 15
Implicit cursors are not Implicit cursors must b Explicit cursors can handle
select DBTIMEZONE from select TIMEZONE_DB fr select DB_TIME_ZONE from
A binary index A bitmap index A metadata index
Stored procedure Primary key for implemen Foreign key for implementing
implicitly when asked explicitly when the trigger associated
Use the IN operator Use the >= operator Use the CAN EXIST operato
SMON PMON CKPT
RDBMS store database defiThis information can bThis information often cann
Tables Fields Records
Record Field Column
Dependent Changed Not Changed
snapshot of the data in theInstance, Schema Relation, Schema Relation, Domain
Right Database ManagemeRelational Database M Rapid Database Manageme
Updated Changed Dependent
Requests Stores Response
Name Dept Tot_cred
Database entity Database relation Database instance
Parent relation Referenced relation Referencing relation
Cartesian product Difference Intersection
is sorted in ascending ordeContains only a list of Has a number assigned to e
Primary Key Foreign key Secondary key
is also referred to as a co Is a unique identifier in uniquely identifies the data
ordering of rows is immateNo two rows are identicBoth A and B are true
10 100 1000
to identify uniquely an entito make the key most pow to increase effectiveness o
Eliminate redundancy. Improve security. Improve efficiency.
Key dependencies. Relation dependencies. Database dependencies.
Conceptual level data hidiPhysical level data hidinExternal level data hiding.
Is made up of a several pi Uniquely identifies an iteIs a combination of each un
Data elements. Records & files Record relationships.
Spread sheet program. Word processor progra Graphics program.
Atomicity, Constant, IsolatAtomicity, Consistency, Atomicity, Consistency, Isola
Scalable. Robust. Platform independent.
Microsoft SQL Server Microsoft Access. MySQL.
2-tier system. 3-tier system. 4-tier system.
Information about systemProcedure logic Project requirements
File Database Fields
Dictionary Data bank Meta data
Access Allow Grant
Recover from the transactiUpdate the transaction Retrieve old records
It is not possible to disab It is possible to have m The primary key constraint
By adding an join entity taBy adding intersection eBy adding union entity tabl
the place where all deletethe largest logical stor the smallest logical storage
compatible? Union Difference Intersection
Atomicity Concurrency Isolation
Network model Relational model Hierarchical model
Referential constraint Index Integrity constraint
It requires that an entity The same entity may belThe database must contain
Generalization Specialization Aggregation
mposite key 2NF 3NF BCNF
It is the data contained i It is the data contained It is the data contained in
Fifth Normal form is conc Multivalued dependencJoin dependency
Read Q Write Q Both read and write Q
left outer join right outer join full outer join
No functional dependencieNo multivalued dependeNo partial FDs exist.
NF decomposition A->B, B-> CD A-> B, B->C, C->D AB->C,C->AD
2NF 3NF BCNF
y ⊆x y⊂x x⊆y
Code Codd Boyce Codd
It will result in a deadlock It
situation.
will immediately be rejected.
It will immediately be granted.
Structured Query LanguagStructured Query List Simple Query Language
Data Definition Language(Data Manipulation Lan Both of above
SQL statements SQL:Plus commands PUSQL block
START command STA command command
BETWEEN operator LIKE operator EXISTS operator
Set serveroutput on Showserveroutput on Set output on
Where From Order By
RENAME REVOKE GRANT
POSITIVEN NATURALN SIGN_TYPE
Insert Modify Look-up
DECIMAL NUMERIC FLOAT
1 0 Both
RAW CHAR NUMERIC
POWER MOD ROUND
Pre-defined and system def Pre-defined, user defin User defined and system def
Reconnect Exit the SQL*Plus sessioExecute certain SQL*Plus
n a single transaction? CREATE PACKAGE CREATE SCHEMA CREATE CLUSTER
INSTR SUBSTRING SUBSTR
Define, Create Drop, Comment Insert, Update, Delete
Lets the user declare a da Lets the user declare a Lets the user declare a dat
nested query nested programming distinct query
PL/SQL SQL*Plus SQL
Set of Extents Set of Segments Smallest Database storage unit
IS NULL operator ASSIGNMENT operator LIKE operator
Memory processes Oracle background procData processes
:new :old Both :new and :old
Inconsistent backup Consistent backup Full backup
ALTER SESSION RESET DA ALTER SESSION CHANGE ALTER
DATESESSION SET SYSDAT
One row with many columOne column with many One row and one column
Stores rollback informati Minimize the amount ofStores user data within the
.sql. .txt. .pls.
The name of a variable. A literal value. An expression.

You do not create them wiThey do not need to ha They include procedural an
Both consist of proceduralBoth have to be called Both run automatically
Involves the use of an inn Cannot return the sameDoes
r not start with the wo
REMOVE FUNCTION DELETE FUNCTION DROP FUNCTION
This section starts with It is a mandatory sectio It contains exception(s) tha
One column One super key One foreign key

The group that is right The group that is above or


There is no hierarchy ranks higher than the leftmost ranks higher than
between unlinked group that is to right the group that is to right
groups. or below it or below it
Inside the declaration
Inside an anonymous section of a PL/SQL block
Anywhere in PL/SQL block only or inside a package
Instead of Trigger DML Trigger System Trigger

A. DELETE does not free


the space containing the A. Both DELETE and A. Both DELETE and
table and TRUNCATE TRUNCATE free the TRUNCATE does not free
free the space containing space containing the the space containing the
the table table table

BEGIN & DECLARE DECLARE & EXCEPTION BEGIN & END

The AS SQL clause is


used to change the name
of a column in the result The AS clause is used
set or to assign a name with the JOIN clause The AS clause defines a
to a derived column only search condition
SELECT NULL FROM SELECT NAME FROM SELECT * FROM SALES
SALES; SALES; WHEN PRICE = NULL;
Values Distinct values Group By
gh 23 bc
Dates Column Alias Strings
parenthesis -- (...) brackets -- [...]. A. CAPITAL LETTERS.
Data types Primary keys Default values
1 2 3
clustered index for
Does not create an index that column index for that column
1 0 Both

A table can have only one


Primary keys can Primary keys cannot primary key with single or
contain NULL values contain NULL values. multiple fields
limits the column data imits the row data are
that are returned. returned. Both A and B are correct.
An exact match is An exact match is not An exact match is
necessary in a SELECT possible in a SELECT necessary in a CREATE
statement. statement. statement.
A virtual table that can A virtual table that A base table that can be
be accessed via SQL cannot be accessed via accessed via SQL
commands SQL commands commands
Normalization Data Integrity Materialized Views
report form file
all records meeting the all records with even
all columns of the table full criteria are to be partial criteria met are to
are to be returned. returned. be returned

Acts like a WHERE


Acts like a WHERE clause clause but is used for Acts like a WHERE clause
but is used for groups rows rather than but is used for columns
rather than rows columns. rather than groups.
1 0 Both
asterisk (*); percent sign percent sign (%); underscore(_); question
(%) underscore (_) mark (?)
LIKE only. IN only. NOT IN only.
Show Global Area Start Global Area System Global Area
GET ACCEPT READ
TRACE SHOW ERRORS PROFILE
Does nothing Prints the character / Re-executes the non SQL*P
SET ECHO ON SET TERMOUT ON SET DISPLAY ON
PUSQL BEGIN EXCEPTION
— REMARK /*—*/
Primary key Default Values Indexes
owned by you for which you have acces
in the database
USER ALL DBA
SYS SUPERUSER SCOTT
6 0 3

5 4 1

60000 10000 5000

10000 60000 5000

66000 33000 22000


Ravi,Gopi Siva,Ravi Gopi,Ravi

Operations Admin Operations


IT Finance IT
Human Resource Human Resource Human Resource
Finance IT Admin
Admin Operations Finance

finance Admin A,B

OPERATIONS No Data Operations

admin Admin ADMIN

Ravi,Gopi,John Ravi,Gopi,John,Ravi Both A, B

Ravi,Gopi,John Ravi,Gopi,John,Ravi Both A, B

delete table dept; delete table dept wher delete from dept;

delete from dept; delete from dept wheredelete from dept where de

A DISTINCT operator A subquery in a SELECT lA subquery designated WI

drop from employee; drop table employee; Both A, B


1 0 Both
Delete is a DML commandDelete is a DDL comma Both Delete and Truncate
0 1 Both
1 0 Both
0 1

Both
Ravi,70 Ravi,50 None of the above
John,115 John,115
Ravi,50 Ravi,70 Ravi,20
John,115 John,115 Ravi,50
John,65
John,55

Ravi,50 Ravi,90 Ravi,55

John,66 Ravi,115 John,115

Select, from,where, havin select,from,where,groupselect,from where,group by


1 0 Both
1 0 Both
1 0 Both
0 1 Both
1 0 Both
UPDATE Employee UPDATE Employee UPDATE Employee
Set salary='2500' Set salary='25000' Set salary='25000'
where where empname='RAVI'
empname='Ravi'

1 0 Both
5 5 1
4 2
3 3
2 4
1 5

1 0 Both
1 0 Both
Alter table Employee add Alter table Employee moAlter Employee modify (em
Alter table Employee add Alter table Employee moAlter Employee modify (sal
DML,DDL,DCL DML,DDL,DCL,TCL DML,DDL,DkL,TCS
Create or Replace table Create or Replace tabl Create table Employee (em
After Executing Delete After Executing TruncatBoth A, B
Data Update on table will Data Update on table wilData Update will not be visi
Like Operator Between Operator Exists Operator
Count Date Sum
Asc Desc No Default Value or Order
From clause of Query Where clause of Query Select clause of query
DELETE and UPDATE cUPDATE clause only SELECT clause only
Union Clause Union All Clause Both
Delete Creates SavepointsDelete is Not Slower th Both are False
Equi-join Inner Join Outer Join
Table SQL Query Both
Table SQL Query Both
Single column of a table Multiple Columns of a t Can't be defined on a table
Index Can be used to Imp Index can be created onBoth
Varchar2 type variable canDate type of variable c Number type of Variable ca
Create can be used only foCreate can be used for CBoth
Unique Key Not Null Key Both
1 0 Both
Count will get the total coCount will return only t We can't inclue Where and
1 0 Both
Select employee from Select name Select name from
name employee
Where Select From
OPTION4 (D) OPTION5 (E) CORRECT_OPTION SECTION COMPLEX
None of the above B SQL Simple
PRODUCT C SQL Simple
SELECT A SQL Simple
CHARACTER A SQL Simple
ALL C SQL Simple
SDL A SQL Simple
DELETE COLUMN C SQL Simple
ALL OF THESE D SQL Simple
SELECT # FROM SALES; B SQL Simple
Data Derivation Language C SQL Simple
None of the above C SQL Medium
All of the above. C SQL Medium
They are the same thing as a functioC SQL Medium
All of the above. A SQL Medium
All of the above D SQL Medium
All of the above D SQL Medium
None of the above is correct. C SQL Medium
UNIQUE C SQL Medium
SUM, AVG, MIN, MAX, NAME A SQL Medium
use USING to name the source table(A SQL Medium
None of the above B SQL Medium
None of the above C SQL Medium
All of the Above A SQL Medium
Update D SQL Medium
All of the above B SQL Medium
None of the above B SQL Medium
None of these B SQL Medium
LEN B SQL Medium
456789 B SQL Medium
All of the above D SQL Medium
Uses the result of an outer query to B SQL High
Acts EXACTLY like a WHERE clause. A SQL High
Cartesian join A SQL High
456789 B SQL High
0 B SQL High
None of the Mentioned D SQL High
TCL statement B SQL High
Multi-query B SQL High
All of above D SQL High
4 NF A SQL High
All of the above B SQL High
Feature has two 0's in it, at any positD SQL High
Null D SQL High
The order of occurrence determines A t SQL High
None of these C SQL High
braces -- {...}. A SQL High
All of the above. D SQL High
EXPLAIN PLAN D SQL High
STDDEV B SQL High
ROW_NUM,ROW_ID C SQL High
Fetch by indexid C SQL High
CHAR2 C SQL High
16 B SQL High
Explicit cursors does not occupy Ora A SQL High
select DBTIMEZONE from dual D SQL High
A database schema index B SQL High
All of the above C SQL High
None of the above B SQL High
Use the = operator A SQL High
All of above D SQL High
All of the above. D RDBMS Simple
Keys A RDBMS Simple
Key A RDBMS Simple
Too Long B RDBMS Simple
Schema, Instance D RDBMS Medium
Route Database Management Syste B RDBMS Simple
None of these B RDBMS Simple
Represents A RDBMS Simple
ID D RDBMS Medium
Database schema C RDBMS Medium
Node relation C RDBMS Medium
Product A RDBMS Medium
Both [B] and [C] D RDBMS Medium
None of the above B RDBMS Simple
must be accompanied by a corresponB RDBMS Simple
none of the above C RDBMS High
none of the above A RDBMS High
none of the above A RDBMS Medium
Minimize Errors. A RDBMS Simple
All of these. A RDBMS High
All of these. C RDBMS Medium
Both (a) and (b). D RDBMS Medium
All of the above D RDBMS Medium
All of the above D RDBMS Medium
Atomicity, Consistency, Indexing, Dura
C RDBMS Medium
Distributed. C RDBMS Simple
Oracle. C RDBMS Simple
N-tier system. B RDBMS Medium
All of above D RDBMS Medium
None of these B RDBMS Medium
None of these C RDBMS Medium
None of these C RDBMS Medium
Repeat a transition A RDBMS High
The non-deferrable primary key constrC,D RDBMS High
By adding Cartesian entity table B RDBMS High
all of the above C RDBMS Medium
Join D RDBMS High
Durability B RDBMS High
File based system C RDBMS Medium
Functional dependency A RDBMS High
An entity can be joined with another Ae RDBMS High
Inheritance C RDBMS High
1NF B RDBMS High
It is the data contained in database tB RDBMS High
Domain-key C RDBMS High
Write Q but not read Q C RDBMS High
inner join D RDBMS High
No partial MVDs exist C RDBMS High
A->BCD D RDBMS High
4NF A RDBMS High
x ⊂y A RDBMS High
Boyce B RDBMS Medium
It will be granted as soon as it is released
C by A . RDBMS High
All of the above. A SQL*PLUS Simple
None A SQL*PLUS Medium
None of these A SQL*PLUS Medium
EXECUTE command A SQL*PLUS Simple
None of these B SQL*PLUS Medium
Set PL/SQL on A SQL*PLUS Simple
Group By A SQL*PLUS Medium
UPDATE C SQL*PLUS Medium
SIMPLE_N_INTEGER D SQL*PLUS Simple
All of the Mentioned B SQL*PLUS Medium
CHARACTER A SQL*PLUS Simple
None of the above B SQL*PLUS Simple
VARCHAR A SQL*PLUS High
REMAINDER B SQL*PLUS Medium
Pre defined and Post defined identifi B SQL*PLUS Medium
None of these B SQL*PLUS Simple
All of the above B SQL*PLUS Simple
POS C SQL*PLUS Medium
Select, Commit C SQL*PLUS Medium
User declares a data item of differen A SQL*PLUS Simple
embedded SQL D SQL*PLUS Medium
Dynamic SQL D SQL*PLUS Simple
Set of blocks C SQL*PLUS High
NOT operator C SQL*PLUS High
All of the Mentioned B SQL*PLUS Medium
Neither :new nor :old C SQL*PLUS High
Differential backup B SQL*PLUS Medium
ALTER SESSION SET NLS_DATE_FOR C SQL*PLUS
Many rows and many columns C SQL*PLUS Simple
None of the Mentioned B SQL*PLUS High
.ora. A SQL*PLUS Simple
All of the above. D SQL*PLUS Medium
C SQL*PLUS Medium
They are the same thing as a functio
Both are stored in the database A SQL*PLUS Medium
All of the above. A SQL*PLUS Medium
None of the above C SQL*PLUS Medium
None of the above. B SQL*PLUS Simple
Two or more columns D SQL*PLUS Medium
SQL*PLUS
The group that is left
ranks higher than the
group that is to the
right C High
SQL*PLUS

Inside a package only C High


DDL Trigger C SQL*PLUS High
SQL*PLUS
A. DELETE free the
space containing the
table and TRUNCATE
does not free the
space containing the
table B Simple
SQL*PLUS
EXCEPTION & END A Medium
SQL*PLUS

All of the mentioned A Medium


SELECT # FROM SQL*PLUS
SALES; D Simple
Columns A SQL*PLUS Medium
ab A SQL*PLUS Simple
All of the above B SQL*PLUS Simple
A. braces -- {...}. A SQL*PLUS Medium
All of the above. D SQL*PLUS Simple
None A SQL*PLUS Medium
non-clustered index SQL*PLUS
for that column D High
None of the above B SQL*PLUS Medium
SQL*PLUS
A table can have
multiple primary
keys with single or
multiple fields B and C Medium
Neither A nor B are SQL*PLUS
correct. B Medium
SQL*PLUS
An exact match is
not possible in a
CREATE statement B Simple
SQL*PLUS
A base table that
cannot be accessed
via SQL commands A High
All of the above. D SQL*PLUS High
table D SQL*PLUS High
SQL*PLUS
None of the above is
correct. A High
SQL*PLUS

Acts EXACTLY like a


WHERE clause. A Simple
None of the above A SQL*PLUS Medium
question mark (?); SQL*PLUS
asterisk (*) B Medium
Both IN and NOT IN. c SQL*PLUS High
Shut Global Area c SQL*PLUS Simple
CIN B SQL*PLUS Medium
DEBUG B SQL*PLUS High
Re-executes the most recently exe D SQL*PLUS High
SET SERVEROUTPUT ON D SQL*PLUS Medium
DECLARE D SQL*PLUS Medium
None of these D SQL*PLUS High
Triggers C SQL*PLUS High
none of these A SQL*PLUS Medium
SYS D SQL*PLUS Medium
MANAGER A SQL*PLUS Simple
1 C SQL Simple

3 B SQL Medium

50000 None of the a D SQL Simple

6000 D SQL Simple

6000 C SQL Simple


Gopi,Ravi Gopi D SQL Medium

Operations Admin A SQL High


Human Resource IT
IT Human
Finance Resource
Admin Finance
Operations

None of the above D SQL Simple

OPERATION B SQL Simple

No Data A SQL Simple

None of the Above B SQL Medium

None of the Above A SQL Medium

All the Above C SQL Medium

All the Above D SQL Medium

A,C A,C,B E SQL Medium

None of the above B SQL Medium


None of the above A SQL Medium
Both Delete and Truncate are DDL A SQL Medium
None of the above B SQL High
None of the above A SQL Simple
None of the above B SQL High

Invalid Statement D SQL High


None of the above B SQL High

No data A SQL High

John, 65 C SQL High

select,from,where,group by,having,oD SQL Medium


None of the above A SQL Medium
None of the above B SQL Medium
None of the above A SQL High
None of the above B SQL High
None of the above A SQL High
No of the above B SQL Medium

None of the above A SQL Medium


Invalid Statement C SQL High

None of the above A SQL High


None of the above B SQL High
Alter Employee add (email varchar2(A SQL High
Alter table Employee (salary number)B SQL High
DML,DDL,DCL,TCS,SCS D SQL High
Create table Employee (empname ,sal C SQL Simple
None of the above A SQL Simple
None of the above A SQL High
Is Operator A SQL Medium
None of the above C SQL Medium
None of the above A SQL Medium
Group by Clause of query D SQL High
None of the above C SQL High
None of the above A SQL High
Both are True A SQL Medium
All the Above C SQL High
None of the above B SQL High
None of the above A SQL High
None of the above C SQL Medium
None C SQL High
Only A and B Only B and C D SQL High
None C SQL High
None C SQL Medium
None of the above B SQL High
None of the above B SQL High
None of the above A SQL High
Select employee C SQL Simple

Distinct B SQL Simple


CREATION_DATE CREATED_BY CATEGORY
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to SQL
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Vipin Introduction to RDBMS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-27 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS

18-Nov-20 Ragul SQL * PLUS


18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS

18-Nov-20 Ragul SQL * PLUS

18-Nov-20 Ragul SQL * PLUS


18-Nov-20 Ragul SQL * PLUS

18-Nov-20 Ragul SQL * PLUS

18-Nov-20 Ragul SQL * PLUS

18-Nov-20 Ragul SQL * PLUS

18-Nov-20 Ragul SQL * PLUS


18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS

18-Nov-20 Ragul SQL * PLUS


18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS

18-Nov-20 Ragul SQL * PLUS

18-Nov-20 Ragul SQL * PLUS

18-Nov-20 Ragul SQL * PLUS


18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS

18-Nov-20 Ragul SQL * PLUS

18-Nov-20 Ragul SQL * PLUS


18-Nov-20 Ragul SQL * PLUS

18-Nov-20 Ragul SQL * PLUS


18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-Nov-20 Ragul SQL * PLUS
18-NOV-2020 Nagaraju SQL Statements

18-NOV-2020 Nagaraju SQL Statements

18-NOV-2020 Nagaraju SQL Statements

18-NOV-2020 Nagaraju SQL Statements

18-NOV-2020 Nagaraju SQL Statements


18-NOV-2020 Nagaraju SQL Statements

18-NOV-2020 Nagaraju SQL Statements

18-NOV-2020 Nagaraju SQL Statements

18-NOV-2020 Nagaraju SQL Statements

18-NOV-2020 Nagaraju SQL Statements

18-NOV-2020 Nagaraju SQL Statements

18-NOV-2020 Nagaraju SQL Statements

18-NOV-2020 Nagaraju SQL Statements

18-NOV-2020 Nagaraju SQL Statements

18-NOV-2020 Nagaraju SQL Statements

18-NOV-2020 Nagaraju SQL Statements


18-NOV-2020 Nagaraju SQL Statements
18-NOV-2020 Nagaraju SQL Statements
18-NOV-2020 Nagaraju SQL Statements
18-NOV-2020 Nagaraju SQL Statements
18-NOV-2020 Nagaraju SQL Statements

18-NOV-2020 Nagaraju SQL Statements


18-NOV-2020 Nagaraju SQL Statements

18-NOV-2020 Nagaraju SQL Statements

18-NOV-2020 Nagaraju SQL Statements

18-NOV-2020 Nagaraju SQL Statements


18-NOV-2020 Nagaraju SQL Statements
18-NOV-2020 Nagaraju SQL Statements
18-NOV-2020 Nagaraju SQL Statements
18-NOV-2020 Nagaraju SQL Statements
18-NOV-2020 Nagaraju SQL Statements
18-NOV-2020 Nagaraju SQL Statements

18-NOV-2020 Nagaraju SQL Statements


18-NOV-2020 Nagaraju SQL Statements

18-NOV-2020 Nagaraju SQL Statements


18-NOV-2020 Nagaraju SQL Statements
18-NOV-2020 Nagaraju SQL Statements
18-NOV-2020 Nagaraju SQL Statements
18-NOV-2020 Nagaraju SQL Statements
18-NOV-2020 Nagaraju SQL Statements
18-NOV-2020 Bharadwaj SQL Statements
18-NOV-2020 Bharadwaj SQL Statements
18-NOV-2020 Bharadwaj SQL Statements
18-NOV-2020 Bharadwaj SQL Statements
18-NOV-2020 Bharadwaj SQL Statements
18-NOV-2020 Bharadwaj SQL Statements
18-NOV-2020 Bharadwaj SQL Statements
18-NOV-2020 Bharadwaj SQL Statements
18-NOV-2020 Bharadwaj SQL Statements
18-NOV-2020 Bharadwaj SQL Statements
18-NOV-2020 Bharadwaj SQL Statements
18-NOV-2020 Bharadwaj SQL Statements
18-NOV-2020 Bharadwaj SQL Statements
18-NOV-2020 Bharadwaj SQL Statements
18-NOV-2020 Bharadwaj SQL Statements
18-NOV-2020 Bharadwaj SQL Statements
18-NOV-2020 Bharadwaj SQL Statements
18-NOV-2020 Bharadwaj SQL Statements
18-NOV-2020 Bharadwaj SQL Statements
18-NOV-2020 Bharadwaj SQL Statements
18-NOV-2020 Bharadwaj SQL Statements

18-NOV-2020 Bharadwaj SQL Statements


QUESTION_IQUESTION IMAGE_PATH OPTION1 (A)
1 Which of the following is incorrect cursor attribute. %FOUND
2 Cursor attribue %ROWCOUNT returns. Integer
3 Cursor attribue %ISOPEN returns. Integer
4 Cursor attribue %FOUND returns. Integer
5 Cursor attribue %NOTFOUND returns. Integer
6 When did cursor attribute %ROWCOUNT assigned a value. DDL command execution
7 When did cursor attribute %ISOPEN assigned a value. Cursor declaration
8 Function retun the value. 31-Dec-1899
9 Stored Procedure return the values 31-Dec-1899
10 Which of the following is incorrect Predefined Exception. NO_DATA_FOUND
11 BEGIN 31-Dec-1899
12 DBMS_OUTPUT.PUT_LINE(TRUE);
BEGIN 31-Dec-1899
13 DBMS_OUTPUT.PUT_LINE('TRUE');
BEGIN Null
14 DBMS_OUTPUT.PUT_LINE('My
PL/SQL provides a feature to handle Firstthe
Program');
Exceptions which occur in a 31-Dec-1899
15 PL/SQL Block known
Which Exception as exception
is also known as Handling.
Oracle named exception handler? Predefined Exception
16 Which Package lets you use database triggers to alert an application DBMS_OUTPUT
17 when
Whichspecific
statementdatabase values
lets you change?
create standalone functions that are SQL CREATE PROCEDURE
18 stored in an Oracle database?
Which parameter acts like a constant inside the subprogram? IN
19 Which of the following is used to define code that is executed / fired Replace
20 when
How manycertain actions or
attributes event
does occur?
every explicit cursor and cursor variable 2-Jan-1900
21 have?
How many nested IF clauses can be included within an IF clause? 31-Dec-1899
22 PL/SQL stands for Programming Language/SQ
23 BEGIN First statment
24 IF NULL
Which = NULL
of the THEN statements is true about implicit cursors?
following Implicit cursors are used
25 Which of the following is not a feature of a cursor FOR loop? Record type declaration.
26 A developer would like to use referential datatype declaration on a Use employeE.lname%type
27 variablE.
Which three The of
variable name isare
the following EMPLOYEE_LASTNAME, and the
implicit cursor attributes? %found
corresponding table and column is EMPLOYEE, and LNAME,
28 If left out, which
respectively. Howofwould
the following would define
the developer cause an
thisinfinite loop
variable to
using LOOP
29 occur in a simple loop?
What happens when rows are found using a FETCH statement It causes the cursor to clos
30 Which of the following can be used as an argument for a procedure The name of a variable
31 parameter?
If you don’t specify a mode for a parameter, what is the default OUT
32 mode?
Which kind of parameters cannot have a DEFAULT value? OUT
33 What are the three parameter modes for procedures? IN
34 Which one of the following statements about formal and actual Formal and actual paramet
35 parameters
DECLARE is true? Total records count in tabl
36 l_count NUMBER;
DECLARE Total records count in tabl
37 SETl_count NUMBER; on;
SERVEROUTPUT Total records count in tabl
38 DECLARE
DECLARE Total records count in tabl
39 CURSOR emp_cur
BEGIN Total records count in tabl
40 SET UPDATE EMP
SERVEROUTPUT on; Hello
41 DECLARE
DECLARE 2
42 SETl_number
SERVEROUTPUTNUMBER:=2;
on; 2
43 DECLARE
SET SERVEROUTPUT on; 2
44 DECLARE
PL SQL Architecture contains PL SQL Block
45 Which one of the following is not PL SQL data type. Scalar
46 Select the incorrect variable declaration. l_name varchar2(20);
47 Where do you declare an explicit cursor in the PL/SQL language. Executable section
48 Which one of the named block called in SELECT statement. Procedure
49 Which one of the named block, we cannot use COMMIT. Procedure
50 Types of triggers in Oracle 1
51 What is PL SQL Collection. Ordered group of elements
52 Which of the following is incorrect PL SQL Collection type. Index-by tables or Associat
53 Number of Elements in Index-by table collection type. Bounded
54 Number of Elements in Nested table collection type. Bounded
55 Number of Elements in Varray collection type. Bounded
56 Subscript type of Index-by table collection type. String or Integer
57 Subscript type of Nested table collection type. String or Integer
58 Subscript type of Varray collection type. String or Integer
59 Where created the Index-by table collection type. Only in PL/SQL block
60 Where created the Nested table collection type. Only in PL/SQL block
61 Where created the Varray collection type. Only in PL/SQL block
62 SET SERVEROUTPUT on; Total 10 Students
63 DECLARE
SET SERVEROUTPUT on; Student:1, Marks:1
64 DECLARE
SET SERVEROUTPUT on; Student:1, Marks:1
65 DECLARE
SET SERVEROUTPUT on; Student:1, Marks:1
66 DECLARE
SET SERVEROUTPUT on; Student:1, Marks:1
67 DECLARE
SET SERVEROUTPUT on; The number of elements in
68 DECLARE
SET SERVEROUTPUT on; 0
69 DECLARE
SET SERVEROUTPUT on; 0
70 DECLARE
SET SERVEROUTPUT on; 1
71 DECLARE
SET SERVEROUTPUT on; 1
72 DECLARE
DECLARE 2
73 l_step PLS_INTEGER := 2;
DECLARE 1
74 l_step
SET PLS_INTEGERON;
SERVEROUTPUT := 2; 1
75 DECLARE
SET SERVEROUTPUT ON; 1
76 DECLARE
For which of the following statements can a CURRENT OF clause be Insert, Update and Delete
77 used?
Which of the following is not a implicit cursor attributes? %FOUND
78 Which of these is not a similarity between an explicit cursor and the way Cursor is closed
79 cursor
How manyvariable?
attributes are there for a cursor variable? 4
80 The command used to open a CURSOR FOR loop is Open
81 Which of the following is not a commonly used cursor attribute? %ISOPEN
82 How many types of cursors in oracle? 1
83 Can you pass a parameter to a cursor? Yes
84 Will a Trigger fire when table is Truncated? Yes
85 What is the maximum no. of statements that can be specified in a 1
86 trigger
Can westatement?
use Commit in a Database Trigger? Yes
87 Which of the following operators does a logical expression use? And, OR
88 How many rows can a SELECT query inside a PL/SQL execution block 10
89 return?
Which of the statements must be used inside a PL/SQL block to Delete
remove data from a table?
90 Using which of the following clauses is the MERGE condition INTO
91 specified?
Which exception is raised when a nonexistent element of an NO_DATA_FOUND
92 associative
Which of the array?
following is not a subprogram? Function
93 How many RETURN statements can a function have? 1
94 Where are functions normally used? To take IN OUT parameters
95 Which of the following subprograms can use parameters? Functions Only
96 Which of the following statements can be used to terminate a GO TO
97 PL/SQL loop? is used instead of the assignment operator to
Which keyword Not Null
98 initialize
What is an variables?
anonymous block in PL/SQL? PLSQL without Declaration
99 What is the scope of a local declaration? Block
100 Where can a variable be assigned values in PL/SQL? Declaration only
101 %NOTFOUND attribute returns true when cursor is not created explici
102 Which of the following is used to declare a record type %TYPE
103 Constant Variables Can not be NULL 1
104 Is it possible to define a CONSTANT value in a record Yes
105 Is it possible to open a cursor which is in a Package in another Yes
106 procedure ?
All objects placed in a package specification are called Private Objects
107 What do we call the cursor written and maintained by a database User Cursor
108 user?
Data accessed in Cursor can be updated By Using FOR UPDATE
109 Find the ODD one out of the following Open
110 What does a COMMIT statement do to a CURSOR? Opens Cursor
111 Can the columns in the select clause of the query of Cursor have Yes
112 Aliasis
What is the value of %ROWCOUNT before the first row is fetched NULL
113 Which Attribute can be used to determine the exit condition of the %FOUND
114 loop
What?is the scope of the index of the CURSOR FOR LOOP? Global
115 Which prefixes are available to Oracle triggers? :NEW
116 Which of the following is NOT an Oracle-supported trigger? Before
117 Which Command can Enable or Disable Triggers Create
118 Which of the following is not a typical trigger action ? Select
119 Which Command is used to Remove a trigger Delete
120 What are the different events in Triggers? Define, Create
121 The variables in the triggers are declared using &
122 Instead of Clause cannot be used in DML Triggers
123 What is the maximum size of a trigger? 8KB
124 How are the elements of a collection variable accessed? Variable_name.Index
125 Which of the following can be used to create a collection variable? %TYPE
126 Which of the following is true about the execution section of a enclosed between the
127 PL/SQL
Which of block?
the following is true about PL/SQL programs? keywords BEGIN and
PL/SQL programs can END
128 What are composite variables in PL/SQL? exist with or without
Native datatypes any
SQL statements.
129 How many parts of a PL/SQL block are optional? 2
130 What is an anonymous block in PL/SQL? PL/SQL unit without
131 Which command should be used to turn on the output of PL/SQL declaration
Set serveroutput on
132 commands
How does an in execution
SQL*Plus?block start and end in PL/SQL? Starts with START and
133 How can a PL/SQL block be executed? ends witha END
By using semi colon at
134 Which of the following is not a subtype of PLS_INTEGER datatype? the end.
POSITIVEN
135 Which of the following is not true about keywords? Reserved words and
136 Which of the following is not allowed in an identifier name? keywords
Digits are identifiers
that have special meaning
137 What is an identifier in PL/SQL? Identifier
in PL/SQL.is a character,
138 How are multi-line comments defined in PL/SQL? or
By character
two hyphens combination,
(–)
that has a special
139 Which of the following is an example of Pre-defined identifier? The exception
meaning in PL/SQL.
140 What are the different types of identifiers? INVALID_NUMBER
Pre-defined and system
141 What is the scope of a local declaration? defined
Subprogram identifier
142 Where can a variable be assigned values in PL/SQL? Declaration block only
143 How can values be assigned to a variable in PL/SQL? Using assignment
144 How should any declaration statement end in PL/SQL? operator only.(:)
Using a colon
145 Which of the following correctly describes the use of a %TYPE Lets the user declare a
146 attribute?
While using SELECT INTO statements where are the database data
Afteritem of the same
the SELECT and
columns specified? data
before type as
INTO a previously
147 What is scope and visibility of an identifier? The region
declared of a PL/SQL
variable or
148 What will be printed by the following PL/SQL block? unit
5 from which the
DECLARE identifier can be
149 What is the maximum number of handlers processed before the Only one
referenced.
150 PL/SQL
What isblock is exited
the value when an exception
of customer_id within theoccurs?
nested block in the 678
151 example below?
For which task is it best to use a character string enclosed by double Referring to a column in
152 quotes?
What is the Please select the
maximum best answer.
number of exception handlers processed the
None database
153 before the PL/SQL block is exited,
Select incorrect variable declarations provided an exception occurs? foo_number
Please select the best answer. varchar2(10);
154 Select invalid variable types CHAR
155 PL/SQL subprograms, unlike anonymous blocks, are compiled each 1
156 time they are and
Subprograms executed. True orblocks
anonymous False?can be called by other 1
157 applications. True or False?
Which of the following can be used as an argument for a procedure The name of a variable.
158 parameter?
Which of the following is not true about large object data types and BFILE is used to store
159 in PL/SQL?
Which keyword is used instead of the assignment operator to large
NOT NULLbinary objects in
initialize variables? operating system files
160 What value will be assigned to the variable declared as − counter 0
outside the database.
161 binary_integer;
Which of the following code will successfully in a PL/SQL block? EXCEPTION
162 Which is not true about the exception handling section of a PL/SQL emp_exception1;
This section starts with
163 block?
Can we define exceptions twice in same block? the
Yes EXCEPTION keyword.
164 Differentiates a declaration part of a subprogram from an The declaration part of a
165 anonymous block?
Where can overloaded subprograms be used in PL/SQL? subprogram
Anywhere in never
PL/SQL begins
with DECLARE keyword.
166 The variables or expressions passed from the calling subprogram are Actual Parameters
167 –Which keyword is used instead of the assignment operator to NOT NULL
168 initialize
The only variables?
required sections of a PL/SQL block are the ____ sections. BEGIN & DECLARE
169 The ____ section of a PL/SQL block contains code that creates DECLARE
170 variables,
____ are usedcursors, and types.
to change the values of variables. Loops
171 The ____ section of a PL/SQL block contains handlers that allow you EXCEPTION
172 to control
____ what the
are named application
memory areas will
thatdo if an
hold errortooccurs
values allowwhen
the the Loops
executable
retrieval andstatements
manipulationare processed.
of values in a program.
173 Which of the following statement blocks correctly uses a scalar DECLARE
174 variable
Which ofinthe anfollowing
assignment statement?
initializes the variable order? order
DECLARE NUMBER(2) := 4;
175 What will be the value of a variable declared as type NUMBER which order
NULL NUMBER(2);
176 is not initialized
Which but getting
of the following used
literals areinnot
theavailable
executable section of the
in PL/SQL? String
PL/SQL block?
177 Which of the following sections is mandatory for a PL/SQL block? Exception-handling
178 Which of the following statements hold true for the declaration Section
It starts with the DECLARE
179 section
Which of ofthe
a PL/SQL block?
following control structures provide an unconditional keyword.
If-Then-Else
approach to a particular part of a complex PL/SQL block?
180 What is the value of emp_id within the nested block in the sample 12939
181 code?
Which of the following statement holds true about the PL/SQL data It has a maximum size
182 structure
What will VARRAY?
be the output of the following PL/SQL block? that
10 cannot be changed.
183 DECLARE
Which of the following statements about anonymous PL/SQL blocks They are compiled only
184 is true?
What happens when rows are found using a FETCH statement the first time
It causes the block
the cursor to is
executed
close in a session.
185 What is the maximum number of handlers processed before the Only one
186 PL/SQL
PL/SQL subprograms, unlike anonymous blocks, are compiled each 1
187 time
Subprograms and anonymous blocks can be called by other 1
188 applications.
What are composite variables in PL/SQL? Native datatypes
189 How many parts of a PL/SQL block are optional? 3
190 How many rows can a SELECT query inside a PL/SQL execution block One to Ten
191 return?
Which of the statements must be used inside a PL/SQL block to DROP
192 remove
What can data
thefrom a table?
VALUES clause of an INSERT statement have inside a Column names and data
193 PL/SQL block
What is a savepoint inside a PL/SQL block used for? To rollback the entire
194 Which of the DML statements can be used inside a PL/SQL block? transaction
INSERT, UPDATE, DELETE
195 Which of the TCL statements can be used inside a PL/SQL block? or MERGEand ROLLBACK
COMMIT
196 What is a package in PL/SQL? only
A package is a named
197 Where can EXIT and CONTINUE appear inside PL/SQL? PL/SQL
Anywhere unitinside
stored in the
a loop
database
but not to perform
outside a loop
198 What is the scope of the label used in the GOTO statement? The label
action should
based on an beevent
199 Which of the following is incorrect about a label given in the GOTO defined
The labelinmustthe sameprecede block
statement? or
an enclosing block as the
200 Which of the following statement is true for a NULL statement? Nullexecutable
GOTO statement
statement
statement.
can
201 Which of the following statements about a cursor declaration and improve
An explicit readability
cursor should by
definition making the meaning and
202 What can ais CURSOR
true? FOR LOOP use? be declared
Explicitofcursor
action
and only
conditional
defined
at the same time in the
203 Which state of a package variable after executing the package is It persists across
execution block.
204 declared?
Which of these have same attributes? transactions within a
Implicit and explicit
session.
cursors
205 What happens after an exception handler runs? The program exits The program exits
206 Where are exceptions used in PL/SQL? Only in an anonymous
207 What happens if an exception raised in a block has no exception block
Exception reproduces
208 handler
Which offortheit?following are inherited by the referencing value from itself in successive
The referencing item nested
the referenced value while blocks.
209 What can the VALUES clauseusing
of ana INSERT
%TYPE attribute
statement tohave inside a inherits the Data or
PL/SQL variables type and
PL/SQL block? size and Constraints
constants
210 What is the initial value for a record variable declared with RECORD Value that
always but isnever
stored in the
inherits
211 Type?
What is a %ROWTYPE attribute used for? database
To declare a record
212 What are the conditions when a record variable is assigned to variable that represents
The assignment is a
another record variable, the target variableto
is another
declaredrecord
with a full or
successfulpartial
only row whenof a
213 When can one record variable be assigned The fieldstable.
database of both
variable? their fieldsmatch
variables matchinin
214 What is the initial value for a record variable declared with Value that
number and is stored and in the
%ROWTYPE? number
database and order,
order, and
215 What are the mandatory fields while declaring a variable? Name of the variable
corresponding fields haveonly
216 Which of the following is false about an IF statement? The condition of an IF
217 What can be the value of the lower and upper bounds of the FOR statement can beonly
Numeric literals a
Loop? comparison expression or
218 What can the value of the INTO clause be while fetching data in an PL/SQL scalarof
combination variables
multiple
219 explicit cursor?
How is the Loop index of a CURSOR FOR LOOP declared? only
It is explicitly declared as
220 Which of these is not a similarity between an explicit cursor and aThe%TYPE record isvariable
way cursor closed
cursor of the type that its cursor
221 Which variable?
of the following is incorrect about cursor variables? A cursor variable can be
returns.
222 Which of the following types of cursor variables has a RETURN associated
Strongly typed with different
clause? queries at different times
223 How are the elements of a collection variable accessed? variable_name[index]
in the program
224 What is the state of an uninitialized associative array variable? Error
225 Which of the following can be used to create a collection variable? %TYPE
226 How can a varray variable be assigned values? Collection constructor or
227 What is the state of an uninitialized nested table variable? assignment
Empty statement or
through a subprogram
228 What does DELETE(m,n) do when applied on a collection variable? Deletes the mth and nth
229 Into which of the following type of variables does all BULK element
Scalar of the collection
230 operations in PL/SQL fetch
What is an unhandled data?
exception? An exception raised in the
231 What happens if an exception A is raised and there are no handlers program
An error is is thrown
not handled
for it in the current by an exception section in
232 What happens if an block?
exception is raised in a declaration part of a To the the
either enclosing
currentblockor or
233 PL/SQL block?
Under which situation is it necessary to use an explicit cursor? to the invoker or
When a SELECT statement host
environment
in a PL/SQL if there is no
block
234 In the declarative section of a PL/SQL block, you created but did not The block block.
enclosing will not execute
initialize retrieves more than one
235 Examine athe number variable. When
code: DECLARE CURSOR theemp_cursor
block executes, what ename,
IS SELECT will be because
DECLARE CURSOR was
row
the variable
the
deptnoinitial
FROMvalue of the
emp; emp_recvariable?emp_cursor%ROWTYPE; BEGIN not initialized.
236 You want to retrieve the employee details from the EMP tableOPEN
and emp_cursor
PL/SQL tableISofSELECT scalars
emp_cursor;
process them LOOP
in FETCH
PL/SQL emp_cursor
block. Which INTO
type ofemp_rec;
variable doEXIT
you WHEN
create ename, deptno FROM
237 Given this executable section
emp_cursor%NOTFOUND; of a PL/SQL
INSERT INTO block: BEGIN FORdno)
temp_emp(name, The cursor
emp; BEGINdoesFORnot need
emp_rec
in the PL/SQL blockINtosalary_cursor
employee_record retrieve all the
LOOProws and columns using a to be closed.
238 Evaluate
single this PL/SQL
SELECT statement block:fromDECLARE
the EMP v_result
table? NUMBER(2);
" BEGIN 1
employee_id_table(employee_id)
DELETE FROM employee WHERE := employee_record.last_name;
dept_id IN (10, 20, 30); v_result :=
239 In which
END LOOP; section
CLOSEofsalary_cursor;
a PL/SQL blockEND; is a user-defined
Whywilldoes this exception
section cause exception handling
SQL%ROWCOUNT;
raised? COMMIT; END; " What be the value of
240 You want to
V_RESULT create
if no rowsa are
cursor that can be used several times in a
deleted? a cursor for each active
241 block, selecting a different active
Examine this block of code: SET SERVEROUTPUT set each time when it is opened.
ON DECLARE x set
Value of v_found is YES
Which
NUMBER; type of
v_sal cursor
NUMBER; do you create?
v_found VARCHAR2(10) := 'TRUE'; BEGIN x Value of v_sal is 1000
242 Which two conditions in a PL/SQL block cause an exception to The SELECT statement
:= 1; v_sal := 1000;
occur?(Choose two.) DECLARE v_found VARCHAR2(10); y NUMBER; Value
containsof v_found
a GROUP isBY
YES
243 Examine
BEGIN " IFthe code:
(v_sal " 1 DECLARE
> 500) 2 i NUMBER
THEN v_found := 0;
:= 'YES'; END3 v_date
IF; DATE; 4 By inserting
Value of Y is the
20
BEGIN 5 ithis
:= i PL/SQL
1; 6 LOOP 7 v_date clause.
244 Evaluate block: BEGIN:=FOR v_date
i IN 5; 8 i :=
1..10 LOOPi 1; 9IFEXIT
i = 4WHEN
OR i = i statement
4
=6 5; 10 END
THENstatement LOOP;
null; ELSE is 11
INSERTEND; You have encountered
INTO test(results) VALUES unexpected
(I); ofEND IF; DBMS_OUTPUT.PUT_LINE
245 Which
results when the validblock
above withinof the
code executable
is"executed. section
How canawill
PL/SQL
yoube WHEN
(i ||' '||NO_DATA_FOUND
COMMIT;
block? END LOOP; ROLLBACK; END; How many values THEN
246 Examine into
inserted this block
the TEST of code:
table?SET SERVEROUTPUT ON DECLARE x The value of V_FOUND
NUMBER; DBMS_OUTPUT.PUT_LINE
247 Evaluate this PL/SQL block:v_found
v_sal NUMBER; DECLARE VARCHAR2(10)
v_result NUMBER(2); := 'TRUE'; BEGIN x
BEGIN cannot
0 be 'YES'.
('No records found');
:= 1;
DELETE v_sal
FROM := 1000; DECLARE
employee WHEREv_found
dept_idVARCHAR2(10);
IN (10,records y
20, 30);intoNUMBER;
v_result :=
248 You need
BEGIN to create
IF (v_sal > 500)a PL/SQL program
THEN v_found :=to'YES';
insertEND IF;value ofthe DECLARE v_hiredate DATE
SQL%ROWCOUNT;
employee table. COMMIT;
Which block END;
of code What will be the
249 Evaluate this
V_RESULT PL/SQL
if no rows block: BEGIN
are deleted? FORsuccessfully
i IN 1..10 LOOPuses IF the
i =INSERT
4 OR i = :=
8 SYSDATE; BEGIN
command?
6 THEN null; ELSE INSERT INTO test(results) VALUES (I); END IF; INSERT INTO emp(empno,
250 The EMPLOYEE table contains these columns: BONUSNUMBER(7,2) A subsethiredate,
ename, of employees deptno)
COMMIT;
DEPT_ID END LOOP; There
NUMBER(9) ROLLBACK;
are 10END; How many
departments andvalues
each will be will be given a 300 bonus.
251 Which statement
inserted intohastheat is true
TEST about nesting blocks?
table? A variable defined in the
department least 1 employee. Bonus values are greater than inner block is visible in
500; not all employees receive a bonus. Evaluate this PL/SQL block: the inner blocks.
OPTION2 (B) OPTION3 © OPTION4 (D) OPTION5 (E) CORRECT_OSECTION COMPLEX CREATION_DATE
%ISOPEN %OPEN %NOTFOUND C PL SQL Simple 19-Nov-2020
String Boolean Null A PL SQL Medium 19-Nov-2020
String Boolean Null C PL SQL Medium 19-Nov-2020
String Boolean Null C PL SQL Medium 19-Nov-2020
String Boolean Null C PL SQL Medium 19-Nov-2020
TCL command exeDML command exe All the three commands executionC PL SQL High 19-Nov-2020
Cursor open Cursor close None of these B PL SQL High 19-Nov-2020
FALSE May be None of these A PL SQL Medium 19-Nov-2020
FALSE May be None of these B PL SQL Medium 19-Nov-2020
INVALID_NUMBE TOO_MANY_ROWINVALID_STRING D PL SQL Medium 19-Nov-2020
NULL compilation errorNone of these C PL SQL High 19-Nov-2020
NULL compilation errorNone of these A PL SQL High 19-Nov-2020
My First Program compilation errorNone of these C PL SQL High 19-Nov-2020
0 Both None A PL SQL Medium 19-Nov-2020
Internal ExceptionUser defined ExceNone of the above A PL SQL Simple 19-Nov-2020
DBMS_ALERT DBMS_PIPE All mentioned abov B PL SQL Simple 19-Nov-2020
SQL CREATE FUN Both A & B None of the above B PL SQL Simple 19-Nov-2020
OUT Both A & B None of the above A PL SQL Simple 19-Nov-2020
Keyword Trigger Cursor C PL SQL Simple 19-Nov-2020
2 4 5 C PL SQL Simple 19-Nov-2020
0 15 Any number D PL SQL Medium 19-Nov-2020
Procedural LanguPortable LanguagNone of the above B PL SQL Simple 19-Nov-2020
Second statementNULL None of the above B PL SQL High 19-Nov-2020
Developers shouldImplicit cursors a Implicit cursors are no longer a fe A PL SQL Medium 19-Nov-2020
Opening and parsiFetches records f Requires exit condition to be defi B PL SQL Medium 19-Nov-2020
Use employeE.ln Look up datatypeDeclare it to be type LONG A PL SQL Medium 19-Nov-2020
%too_many_rows%notfound %rowcount C PL SQL Medium 19-Nov-2020
END LOOP IF-THEN EXIT B PL SQL Medium 19-Nov-2020
It causes the curs It loads the curre It creates the variables to hold th B PL SQL Medium 19-Nov-2020
A literal value An expression All of the aboveNone of the aboveD PL SQL Medium 19-Nov-2020
IN COPY DEFAULT B PL SQL Simple 19-Nov-2020
IN CONSTANT A PL SQL Medium 19-Nov-2020
OUT IN OUT All the three D PL SQL Medium 19-Nov-2020
Formal and actualA formal paramete An actual parameter is declared wC PL SQL Medium 19-Nov-2020
1 0 NULL C PL SQL Medium 19-Nov-2020
1 0 NULL A PL SQL Medium 19-Nov-2020
Zero records disp One record displaInfinate loop D PL SQL High 19-Nov-2020
Zero records disp One record displaInfinate loop A PL SQL High 19-Nov-2020
0 1 734 A PL SQL Medium 19-Nov-2020
l_number Null Compilation error D PL SQL High 19-Nov-2020
3 5 Null B PL SQL Simple 19-Nov-2020
3 5 0 A PL SQL Medium 19-Nov-2020
3 5 0 B PL SQL Medium 19-Nov-2020
PL SQL Engine Database Server All the three D PL SQL Simple 19-Nov-2020
LOB Composite Integer D PL SQL Simple 19-Nov-2020
l_number numberl_name cha(20); l_name varchar2(5):='Ramesh'; D PL SQL Simple 19-Nov-2020
Exception sectionDeclaration secti All the three C PL SQL Simple 19-Nov-2020
Function Trigger Package B PL SQL Simple 19-Nov-2020
Function Trigger Package C PL SQL Simple 19-Nov-2020
2 3 4 B PL SQL Simple 19-Nov-2020
Ordered group of Ordered group of elements having the same data tyB PLSQL Simple 19-Nov-2020
Nested table Variable-size arraNone of the above D PLSQL Simple 19-Nov-2020
Unbounded Both None B PLSQL Medium 19-Nov-2020
Unbounded Both None B PLSQL Medium 19-Nov-2020
Unbounded Both None A PLSQL Medium 19-Nov-2020
Integer String Boolean A PLSQL Medium 19-Nov-2020
Integer String Boolean B PLSQL Medium 19-Nov-2020
Integer String Boolean B PLSQL Medium 19-Nov-2020
At schema leve Either in PL/SQL bFile system A PLSQL Medium 19-Nov-2020
At schema leve Either in PL/SQL bFile system C PLSQL Medium 19-Nov-2020
At schema leve Either in PL/SQL bFile system C PLSQL Medium 19-Nov-2020
Total 11 StudentsTotal 5 Students Total 2 Students C PLSQL Simple 19-Nov-2020
Student:Aziz, MarStudent:Aziz, MarStudent:Kavita, Marks:98 D PLSQL High 19-Nov-2020
Student:Pritam, Student:Aziz, MarStudent:Kavita, Marks:98 B PLSQL High 19-Nov-2020
Student:Pritam, Student:Aziz, MarStudent:Kavita, Marks:98 A PLSQL High 19-Nov-2020
Student:Aziz, MarStudent:5, Marks:None of the above C PLSQL High 19-Nov-2020
The number of el The number of el The number of elements in t_namC PLSQL Simple 19-Nov-2020
1 2 3 B PLSQL Medium 19-Nov-2020
1 2 3 C PLSQL Medium 19-Nov-2020
John Jane 2 B PLSQL Medium 19-Nov-2020
John Jane Error D PLSQL High 19-Nov-2020
1 3 NULL D PLSQL Medium 19-Nov-2020
2 3 Infinate D PLSQL High 19-Nov-2020
2 3 Infinate B PLSQL High 19-Nov-2020
23 123 Infinate C PLSQL High 19-Nov-2020
Delete Or UpdateSelect or Insert Select or update B PLSQL Medium 19-Nov-2020
%NOTFOUND %ROWCOUNT %ROWTYPE D PLSQL Medium 19-Nov-2020
The way data is f The value of cursoThe way cursor is opened D PLSQL Medium 19-Nov-2020
3 2 1 A PLSQL Simple 19-Nov-2020
Fetch Parse None D PLSQL 19-Nov-2020
%FOUND %ISNOTOPEN %NOTFOUND C PLSQL Simple 19-Nov-2020
2 3 0 B PLSQL Simple 19-Nov-2020
No Depends upon Invalid option A PLSQL Simple 19-Nov-2020
No Depends upon Invalid option B PLSQL Medium 19-Nov-2020
2 3 4 A PLSQL Medium 19-Nov-2020
No Depends upon Invalid option B PLSQL Medium 19-Nov-2020
AND, OR , NOT AND, OR, NOT, N None of the above B PLSQL High 19-Nov-2020
1 100 Any number B PLSQL Medium 19-Nov-2020
Drop Truncate Merge A PLSQL Medium 19-Nov-2020
Using When ON D PLSQL Medium 19-Nov-2020
COLLECTION_IS_NSUBSCRIPT_BEY SUBSCRIPT_OUTSIDE_LIMIT A PLSQL Medium 19-Nov-2020
Procedure Package Anonymous PL/SQL block C PLSQL Simple 19-Nov-2020
0 0 or 1 More than 1 D PLSQL Simple 19-Nov-2020
To transfer data To perform compuTo do some business logic C PLSQL Medium 19-Nov-2020
Procedures only Packages only Both A and B D PLSQL Simple 19-Nov-2020
Continue When Exit When KILL C PLSQL Medium 19-Nov-2020
Default %TYPE %ROWTYPE B PLSQL Medium 19-Nov-2020
PLSQL without Ex PLSQL without N PLSQL Without Body C PLSQL Simple 19-Nov-2020
Subprogram Schema Session A PLSQL Medium 19-Nov-2020
Execution only Exception only Both A and B D PLSQL Medium 19-Nov-2020
Cursor query No last row of the cuNone of the above C PLSQL Medium 19-Nov-2020
%ROWTYPE Both None B PLSQL Simple 19-Nov-2020
0 Both None A PLSQL Medium 19-Nov-2020
No Depends upon Invalid Option B PLSQL Medium 19-Nov-2020
No Depends upon Invalid Option A PLSQL High 19-Nov-2020
Public Objects it is not possible None of the above B PLSQL Medium 19-Nov-2020
Implicit cursor User-Defined Cur Explicit cursor D PLSQL Medium 19-Nov-2020
Can't be updated Caan be updated dir None of the above A PLSQL High 19-Nov-2020
Fetch Close Insert D PLSQL Simple 19-Nov-2020
Closes cursor Fetches Cursor None of the above D PLSQL Simple 19-Nov-2020
No Depends upon Invalid Option A PLSQL Medium 19-Nov-2020
ZERO Count of Cursor r Invalid Option B PLSQL Medium 19-Nov-2020
%NOTFOUND %ISOPEN %ROWCOUNT B PLSQL Medium 19-Nov-2020
Local to the loop in the entire Pl/S Local to the loop D PLSQL Medium 19-Nov-2020
:OLD Both None C PLSQL Simple 19-Nov-2020
During After Instead of B PLSQL Simple 19-Nov-2020
Alter Replace Drop B PLSQL Simple 19-Nov-2020
Insert Update Delete A PLSQL Medium 19-Nov-2020
Drop Both Trigger can't be deleted B PLSQL Simple 19-Nov-2020
Select and DeleteInsert, Update anAll of the above C PLSQL Simple 19-Nov-2020
@ : None B PLSQL Simple 19-Nov-2020
DDL Triggers Both A and B None B PLSQL Medium 19-Nov-2020
16KB 32KB 64KB C PLSQL Simple 19-Nov-2020
Variable_name(InVariable_name{InVariable_name[Index] B PLSQL Medium 19-Nov-2020
%Declare %ROWTYPE %ISTYPE A PLSQL Medium 19-Nov-2020
It is a mandatory It consists of the All of the D PLSQL Simple 18-Nov-2020
section.
PL/SQL executable
PL/SQL above.
SQL programs A PLSQL Simple 18-Nov-2020
programs can PL/SQL
programs
Scalar variables can
Variables having statements. can Userexist only
defined B PLSQL Simple 18-Nov-2020
exist only
internal with exist only with PL/SQL
datatypes
1 SQL
any 0
without 3
any SQL statement A PLSQL Simple 18-Nov-2020
components
PL/SQL unit PL/SQL unit PL/SQL unit D PLSQL Simple 18-Nov-2020
without a body without
Showserveroutp Set output on an without a on
Set PL/SQL A PLSQL Simple 18-Nov-2020
to
ut execute
on exception name
Starts with Starts with
handler Starts with B PLSQL Simple 18-Nov-2020
BEGIN
By using and ends START
a colon By using and ends BEGIN
a slash and
By pressing C PLSQL Medium 18-Nov-2020
with
at END
the end. with
(/) ; (semi
at the end. ends with
“Enter” ;
NATURALN SIGN_TYPE
colon) SIMPLE_N_INT
(semi colon) D PLSQL Medium 18-Nov-2020
EGER
Reserved words Keywords can be Reserved D PLSQL Medium 18-Nov-2020
cannot be used used
The characters as
Punctuation or keywords
Letters andcan C PLSQL Medium 18-Nov-2020
as
$, identifiers.
#, _, identifiers,
hyphens but it be used as
Digits
Identifiers Identifier
is not is a Identifier is a
ordinary user- B PLSQL Medium 18-Nov-2020
provide
Starts with a named
/* value
Starts that
withis/$ string
Starts that
with is/^ B PLSQL Medium 18-Nov-2020
reference
and to */ neither
ends with and ends $/ used to help
EXCEPTION
PL/SQL BEGIN
objects. represented andwith
END and ends
LastName
by other
with A PLSQL Medium 18-Nov-2020
keyword keywords ^/
Pre-defined, User defined Pre defined B PLSQL Medium 18-Nov-2020
user
Session defined and and
Block system and
SchemaPost C PLSQL Medium 18-Nov-2020
reserved defined defined
Executable block identifier
keywords Declaration and identifier
Executable C PLSQL Medium 18-Nov-2020
only
Using a Executable
Using only and
UsingException C PLSQL Medium 18-Nov-2020
subprogram block only
Using a period (.) SELECT..INTO
Using a semi SELECT..INTO
Using a slash C PLSQL Medium 18-Nov-2020
only. statement,
colon a
(;) user statement,
(/) or
Lets the user Lets the
subprogram or anUser declares
assignment A PLSQL Medium 18-Nov-2020
declare
After thea SELECT
data declare
After thea SELECT
data aAfter datatheitem of A PLSQL Medium 18-Nov-2020
item
and of different
after INTO item
and of the same
FROM of a SELECT, different data
FROM
The region
data type asofaa data
The region
type as a typeThe regiona of a
asand A PLSQL Simple 18-Nov-2020
PL/SQL clause
unit from PL/SQL and clause
unit from PL/SQL unit
10 25
before INTO 0
INTO clause C PLSQL Simple 18-Nov-2020
which the which the from which
All that apply
identifier All referenced
can be identifier can be theNone identifier A PLSQL Simple 18-Nov-2020
10000 'AP56' 467.87 B PLSQL Simple 18-Nov-2020
Using a reserved Using a hyphen Referring to a D PLSQL High 18-Nov-2020
word to declare to
All exceptions One concatenate number All exceptions C PLSQL High 18-Nov-2020
an
that identifier
are two columns variable by
foo_text foo_char char(1) that using
apply
foo_timea date; foo_text
logical E PLSQL High 18-Nov-2020
referenced
number(10); in := 'Y'; varchar2(10) :=
VARCHAR1
the block VARCHAR2 INTEGER NUMBER B PLSQL High 18-Nov-2020
'hello world';
0 Both None A PLSQL High 18-Nov-2020
0 Both None A PLSQL High 18-Nov-2020
A literal value. An expression. All of the None of the D PLSQL High 18-Nov-2020
BLOB is used to CLOB is used to above. NCLOB is used above B PLSQL High 18-Nov-2020
store
DEFAULT character store
%TYPElarge to store large
%ROWTYPE B PLSQL High 18-Nov-2020
data in the blocks of blocks of
1
database. NULL
character None ofdata
data in NCHAR the in C PLSQL High 18-Nov-2020
Emp_exception1 CREATE above.
CREATE B PLSQL High 18-Nov-2020
EXCEPTION;
It is a mandatory EXCEPTION
It contains emp_exceptio
None of the B PLSQL High 18-Nov-2020
section. emp_exception1
exception(s) n1 AS
No ;Depends upon above.
that None of the B PLSQL High 18-Nov-2020
handle errors in EXCEPTION;
above
Declaration part the Declaration
program.of a None of the A PLSQL High 18-Nov-2020
of a subprogram
Inside an subprogram
Inside the can above
Inside a C PLSQL High 18-Nov-2020
is not
anonymousmandatory be written
declaration after package only
Formal
but anonymous Bothexecution
the A&B None of the A PLSQL High 18-Nov-2020
block only
Parameters section of a
DEFAULT %TYPE block or above
PL/SQL %ROWTYPE B PLSQL High 18-Nov-2020
DECLARE & BEGIN & END EXCEPTION & C PLSQL High 18-Nov-2020
EXCEPTION
BEGIN EXCEPTION END
END A PLSQL Simple 18-Nov-2020
Assignment Exceptions Blocks B PLSQL Simple 18-Nov-2020
statements
BEGIN DECLARE END A PLSQL Simple 18-Nov-2020
Assignment Blocks Variables D PLSQL Simple 18-Nov-2020
statements
DECLARE DECLARE DECLARE B PLSQL Simple 18-Nov-2020
order
DECLARE order
DECLARE order
DECLARE D PLSQL Simple 18-Nov-2020
NUMBER(2)
order := 4; NUMBER(2)
order := 4; NUMBER(2)
order :=
0 Results in a Raise an
4; A PLSQL Simple 18-Nov-2020
NUMBER(2) = 0; NUMBER(2) =: 0; NUMBER(2) :=
Date and Time compilation
Boolean exception
Integer
0; D PLSQL Simple 18-Nov-2020
error
Executable Declaration All Sections B PLSQL Simple 18-Nov-2020
Section
It starts with the Section
All of the above. are mandatory A and C PLSQL Simple 18-Nov-2020
DECLARE
While loop GoTo Decode C PLSQL Simple 18-Nov-2020
keyword.
30 GN56 155.65 C PLSQL Simple 18-Nov-2020
A VARRAY type The maximum ALTER C PLSQL Simple 18-Nov-2020
is
12 created with size
2 of a VARRAY VARRAY
Syntax Error B PLSQL Simple 18-Nov-2020
the CREATE can be changed statement can
They can be
VARRAY They
using can the only
ALTER They be usedcantobe They can be B PLSQL Simple 18-Nov-2020
embedded
It causes the in an make use
It loads the of created as
It creates the called from other B PLSQL Simple 18-Nov-2020
OCI
cursor program.
to open bind
current variables
row either
variables a to PL/SQL blocks.
All that apply All referenced function None or a A PLSQL Simple 18-Nov-2020
values into hold the
0 Both
variables None row
current A PLSQL Simple 18-Nov-2020
0 Both None A PLSQL Simple 18-Nov-2020
Variables having Scalar variables User defined B PLSQL Simple 18-Nov-2020
internal
2 1 datatypes
0 B PLSQL Simple 18-Nov-2020
components
One only One or many One or Two B PLSQL Simple 18-Nov-2020
MERGE DELETE C PLSQL Simple 18-Nov-2020
PL/SQL variables Scalar PL/SQL PL/SQL constants B PLSQL Simple 18-Nov-2020
or
To rollback until To rollback until To commit or only
constants variables only C PLSQL Simple 18-Nov-2020
the
INSERT orsavepoint the savepoint
INSERT, UPDATE INSERT onlyrollback until A PLSQL Simple 18-Nov-2020
and
UPDATE end the only DELETE and the savepoint
COMMITonly
transaction only or
ROLLBACK COMMIT, D PLSQL Simple 18-Nov-2020
SAVEPOINT
A package is an A package is a A package is a only ROLLBACK and C PLSQL Simple 18-Nov-2020
anonymous schema object SAVEPOINT
subprogram in
Anywhere in a Anywhere in the Anywhere in A PLSQL High 18-Nov-2020
block
PL/SQL inblock,
PL/SQL that groupspart the
execution the database.
execution
The label should The labelrelated
should The label A PLSQL High 18-Nov-2020
not
be necessary
defined in logically
in the of
be adefined
PL/SQLin the and exception
aThe looplabel can The
block label
only need shouldThe label
handling
becan
block C PLSQL High 18-Nov-2020
outer
precede block
a as enclosing
not be blockin defined
unique precede in
a the
NullGOTO
the statement or Null Statement
invoking Null Statement
block same scope as A PLSQL High 18-Nov-2020
PL/SQL
simplifies block.
logic its
cannotscope.transfer NULL
transfers
An explicit Cursor An explicit B PLSQL High 18-Nov-2020
enough
cursor to be
can control
declaration fromand one statement.
control
cursor to a
should
Implicit cursor
warrant its use. IF Explicit or
statement Cursoror a
label D PLSQL High 18-Nov-2020
declared
only first definition
Implicit are
cursors be declared
variables only
It persists
and then from the It does
same not
and is and It persists
defined at It does not E PLSQL High 18-Nov-2020
session to persist across
Implicit cursor, Explicit cursors Implicit from user to persist from D PLSQL High 18-Nov-2020
session
explicit for the transaction
cursor and cursor user
cursorswhen and the session to session
Control
same transfers within
user. Controlatransfers Control is
session. package for the same C PLSQL High 18-Nov-2020
and
to cursor
the last variables
to the next cursor
transfers variable
to
Only in the body Only in a
variables Only in an D PLSQL High 18-Nov-2020
statement
of a subprogram of the statement
package of the the last
Exception
last block Exception block anonymous
enclosing Exception of
statement C PLSQL High 18-Nov-2020
reproduces itself reproduces itself block and the
reproduces
The referencing The referencing body The of a B PLSQL High 18-Nov-2020
in
item successive
inherits the in
item successive
inherits the itself in
referencing
Scalar PL/SQL
invoking PL/SQL blocks. successive B PLSQL High 18-Nov-2020
Data
variables typeblocks.
and enclosing
only Data
constantstype only
, size , item inherits
Zeroand
size for all fields Constraints
NULL for all and the NULL unless
Data type C PLSQL High 18-Nov-2020
To declare a fields
To declare a To declare a A PLSQL High 18-Nov-2020
record variable
The assignment The assignmentrecord variable record A PLSQL High 18-Nov-2020
that
is represents
successful as that
is represents
successful only variable from
aThefullfields
long asrow of a
theoffields aThe fieldsrow
partial
when
of of a another
their fields
The fields of A PLSQL High 18-Nov-2020
both
Zero variables
forsource both
all fields match
NULL forvariables
all both variables
NULL unless a D PLSQL High 18-Nov-2020
in both
match in match in
in order, match in initial
Name ofand the fields
Name of the different
Name ofand D PLSQL High 18-Nov-2020
number and number
value is
variable,
In an IF variable
Using an IF and thevariable,
An else for it D PLSQL High 18-Nov-2020
datatype and a datatype only specified
datatype and
statement,
Numericvalue two condition,
literal, Any Literal or only a statement
Numeric B PLSQL High 18-Nov-2020
default
variables of the portion of code NOT cannot NULL have
Numeric
PL/SQLtype variable
variables can expression
Collections or variables
Records if only
only B PLSQL High 18-Nov-2020
same
or Numericor be executed another
or
It isrecords
implicitly records only
It is explicitly It is implicitly D PLSQL High 18-Nov-2020
expression
declared as a
The way data is The value of declared as a declared
The way as a D PLSQL High 18-Nov-2020
%TYPE
fetched record %ROWTYPE
cursor attributes %ROWTYPE
cursor is
A value can
variable of thebe record
Parameters can record
variable Cursor C PLSQL High 18-Nov-2020
assigned to a be passed to a opened
variables can
Weakly typed Both strongly Neither. There A PLSQL High 18-Nov-2020
cursor variable cursor and variable. be
Weakly is noused
RETURNto
variable_name(i
and it can be variable_name.i variable_name
reduce client- B PLSQL High 18-Nov-2020
ndex) Typed
ndex clause
{index} in any
NULL Undefined Empty variable
cursor D PLSQL High 18-Nov-2020
%ROWTYPE %DECLARE %ISTYPE A PLSQL High 18-Nov-2020
Through a Collection Collection A PLSQL High 18-Nov-2020
subprogram
Undefined only constructor
Null collection constructor
or Error or C PLSQL High 18-Nov-2020
assignment subprogram
Deletes element statement
Deletes only Throws only an D PLSQL High 18-Nov-2020
before mth
Collection elements
Records in the error. This
User defined B PLSQL High 18-Nov-2020
place and after range of m to n form types is not
An exception
nth place An exception An exception
supported for A PLSQL High 18-Nov-2020
raised in
The programthe raised
Nothing in the raised in
The exceptionthe D PLSQL High 18-Nov-2020
program
exits is not program
abruptly happens is nota program
and propagates is not
Always
handled tobythe To the inner
any handled by an An exception
handled by an D PLSQL High 18-Nov-2020
invoker or host compile
most time
block cannot be
when an when a DELETE
warning is issued when any DML A PLSQL High 18-Nov-2020
environment
UPDATE statement in a raised
or SELECTin a
0 NULL It depends on
declaration D PLSQL High 18-Nov-2020
statement in a PL/SQL block statement
the scale and is
DECLARE
PL/SQL DECLAREmore
block has deletes DECLARE
used in a B PLSQL High 18-Nov-2020
CURSOR precision of
PL/SQL table of CURSOR%ROWTYPE CURSOR
PL/SQL
the record
variable. B PLSQL High 18-Nov-2020
emp_cursor
records IS emp_cursor
variable IS emp_cursor IS
No FETCH
SELECT ename, SELECTTerminating
ename, SELECTThe cursor A PLSQL High 18-Nov-2020
statements
NULL were conditions
0 are needs
0 to be 1 C PLSQL High 18-Nov-2020
issued. missing. opened.
executable heading declarative B PLSQL High 18-Nov-2020
a cursor FOR a cursor that a multiple C PLSQL High 18-Nov-2020
loop
Value of uses parameters
PLS-00201: selection
Value of PLS-00201: C PLSQL High 18-Nov-2020
v_found is YES identifier 'Y' cursor
v_found is YES identifier 'v_sal'
The SELECT The datatypes in The SELECT The SELECT B and D PLSQL High 18-Nov-2020
Value of v_sal is must
statement the be list Value
SELECT statementof v_sal must be declared
statement
by setting
1000 Value the
of by inserting the is 1000 Value PLS-00201:
declared by insertingdoes
the A PLSQL High 18-Nov-2020
returns
SQL*Plus more are inconsistent
session statement does not not have a
statement
8
than one row. 0
with the 10
return a row. 6
WHERE clause. B PLSQL Medium 18-Nov-2020
variable DBMS_OUTPUT. DBMS_OUTPUT.
SELECT ename,
DEBUGGER = PROCEDURE
PUT_LINE (i, BEGIN DEBUG_VAR (i, B PLSQL Medium 18-Nov-2020
sal INTO
Variable Y is calc_max
Variable (n1 emp_rec
Variable V_SALemp B PLSQL Medium 18-Nov-2020
v_ename,
declared inv_sal
the NUMBER,n2
V_FOUND is %ROWTYPE;
is
NULL emp
FROM 0
NUMBER,p_max 1 declared in 1
END; A PLSQL Medium 18-Nov-2020
inner block and declared at the outer
referenced in DECLARE
more than one block DECLARE and B PLSQL Medium 18-Nov-2020
10 v_hiredate
4 DATE v_hiredate
6 0 A PLSQL Medium 18-Nov-2020
:= SYSDATE; DATE :=
All employees BEGIN A subset of
INSERT All employees
SYSDATE; C PLSQL Medium 18-Nov-2020
will be given
A variable a employees
Variable names will
will be given
A variable in a B PLSQL Medium 18-Nov-2020
300 increase in be given a 300
defined in the must be unique an inner block300 bonus.
bonus.
outer block is increase
between in blocks. may have the
visible in the same name as
CREATED_BY CATEGORY
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Ramesh Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Bharadwaj Overview of PLSQL
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables
Nasreen PLSQL Blocks and Variables

You might also like