SQL Oracle-L3
SQL Oracle-L3
SQL Oracle-L3
a.) play,capture
b.) replay,play
c.) capture, replay
d.) capture, play
ans. is c) capture,replay(sure)
ans. is capture directory, replay directory (this should in be the sequence) ye bhi shi kiya tha
a.)Database Replay applies to the capture and replay of all (subject to some filtering) activities in a
database,
SQL Performance Analyzer allows you to capture specific SQL statements and replay them.
b.)Database Replay applies to the capture and replay of all (subject to some filtering) activities in a
database,
SQL Performance Analyzer allows you to capture all SQL statements and replay them. (Ye wala
kiya tha maine but ye galt tha)
c.)Database Replay applies to the capture and replay of all (subject to some filtering) activities in a
database,
SQL Performance Analyzer allows you to capture any SQL statements and replay them.
ans. is a)Database Replay applies to the capture and replay of all (subject to some filtering) activities
in a database,
SQL Performance Analyzer allows you to capture specific SQL statements and replay them.
a.) SELECT
b.) Groub by
c.) Having( I did this)
d.) Where
a.)Ignored by user
b.)Ignored by optimizer( I did this)
c.)Ignored by both user and optimizer
d.)not ignored by anyone.
QUEST:-7 How do you set the optimizer to make use of invisible indexes?
ans. is OPTIMIZER_USE_INVISIBLE_INDEXES
a.)SQL plan baseline capture, SQL plan baseline selection, SQL plan baseline evolution
b.)SQL plan baseline capture, SQL plan baseline selection, SQL plan baseline evalution(ye option
mere mai bold hoke aaya but galt tha aur maine yhi option tick kardiya)
c.)yaad ni option
d.) option yad ni
ans. is a.)SQL plan baseline capture, SQL plan baseline selection, SQL plan baseline evolution
a.) create(ans.)
b.) alter
c.)
d.)
QUES:-15 In 12c, which of the following are used for active and inactive options.
a.)0,1
b.)1,0
c.)
d.)
a.) When NO need of storing null values in Plsql variable. for reference:
(nullness)
b.) No possibility of accidentally going over max value or going under min value. for
reference:(overflow)
c.) Both
d.) None
Ques->23 In 11g can you create virtual column on table that convey business sense without adding
any complexity or per impact.
Himani did not wrote the options for this quest.( But yes, we can create virtual column on table)
but answer should be from this below para.
============
SQL> create table sales
2 (
3 sales_id number,
4 cust_id number,
5 sales_amt number,
6 sale_category varchar2(6)
7 generated always as
8 (
9 case
10 when sales_amt <= 10000 then 'LOW'
11 when sales_amt > 10000 and sales_amt <= 100000 then 'MEDIUM'
12 when sales_amt > 100000 and sales_amt <= 1000000 then 'HIGH'
13 else 'ULTRA'
14 end
15 ) virtual
16 );
Note for this ques in documention:-It does not allow nulls, but does allow overflow
ans. is a.) Virtual column can be created on tables(not sure but 90% I am :-P)
a.) superset
b.)subtype
c.) kuch kuch :-P
d.) kuch kuch :-P
(Note:When you want to make the table update-able, you will need to make it read/write as shown
below:
a.)invalid
b.)valid
ans. is b.)valid
ans. is The CONTINUE statement exits the current iteration of a loop, either conditionally or
unconditionally,
and transfers control to the next iteration of either the current loop or an enclosing labeled loop.
(mujhe options yaad ni to yhi pdhlo isi mai se tha)
******************************************************
===========================
Lateral Views
===========================
• Objective:
select acc_desc, interest
from accounts a,
(select * from account_types t where
t.acctype = a.acctype);