1. how to use the check option constraints in sql query..?

2.how to add data in a complex query ?

3.is it possible to use commit or rollback or savepoint in
triggers...if not why please explain with examples...?

4.what is the difference between meterialized view and
normal view..how to create materialized view and how to use
it..?

5.what is varray...? what is the advantage of the varray ?
please expalin with a simpel example..i want to load into a
table (student no and name and his marks..) please give
example..

6.what are the bulk bind exceptions...how to use bulk bind
and how to use bulk collect..please explain with example...

7.what is for update of and where current of ...?

8 what is the use of nowait ?

9.please give an example for nocopy in a simple plsql query

10.create an index in a table...tellme how to use the
index in a where clause to do performance tunning...

Answers were Sorted based on User's Feedback



1. how to use the check option constraints in sql query..? 2.how to add data in a complex query ..

Answer / devi

create table td2
(city varchar2(12) constraint td2_ename_ck check(city in
('ctc',''bbsr))

Is This Answer Correct ?    8 Yes 3 No

1. how to use the check option constraints in sql query..? 2.how to add data in a complex query ..

Answer / gaurav gupta

is it possible to use commit or rollback or savepoint in
triggers...if not why please explain with examples...?

yes it's posible to use savepoint or commit in triggers but
trigger should be autonomious transaction trigger
(Independent trigger).

Is This Answer Correct ?    2 Yes 0 No

1. how to use the check option constraints in sql query..? 2.how to add data in a complex query ..

Answer / gaurav gupta

A view has a logical existence but a materialized view has
a physical existence.Moreover a materialized view can be
indexed,analysed and so on....that is all the things that
we can do with a table can also be done with a materialized
view.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

full outer join syntax

5 Answers  


Why do we need pl sql?

0 Answers  


A table was given with 3 columns like Manager id,Manager Name and Employee name. Question was to create hierarchy.

2 Answers   TCS,


what is self join and how it works??

2 Answers   Infosys,


how to create table with in the procedure or function?

2 Answers   Genpact, HCL,






what is the difference between union and union all? : Sql dba

0 Answers  


in sql table follw columns r their vehicle_no|servicetype|date|location| 1234 |1FS |1-JAN|PUNE| 4561 |2FS |5-JAN|PUNE| 1234 |PS |7-JAN|PUNE| 1234 |PS |15-JAN|MUMB| i want o/p below vehicleno|1fs|1fsdate|1fslocation|1ps|1PSDATE|1PSLOC|2PS|2PS DATE|2PSLOCA e.g 1234|1FS|1JAN|PUNE|1PS|7JAN|PUNE|2PS|15JAN|MUMBAI PLS help me out to execute using sql query

1 Answers  


Which is faster joins or subqueries?

0 Answers  


What are sql procedures?

0 Answers  


how can you create an empty table from an existing table? : Sql dba

0 Answers  


In packages the source code is compiled into p code ? how do we describe the p code

3 Answers  


Which tcp/ip port does sql server run on? How can it be changed? : Sql dba

0 Answers  


Categories