What is the difference between UNIQUE CONSTRAINT and PRIMARY KEY? 1. There is no difference. 2. A PRIMARY KEY cannot be declared on multiple columns. 3. A UNIQUE CONSTRAINT cannot be declared on multiple columns. 4. A table can have multiple PRIMARY KEYS but only one UNIQUE CONSTRAINT. 5. A table can have multiple UNIQUE CONSTRAINTs but only one PRIMARY KEY.7 12295
Explain the usage of WHERE CURRENT OF clause in cursors ?4 12129
What is difference between a PROCEDURE & FUNCTION ?6 9472
What are advantages of Stored Procedures?3 15109
How to return more than one value from a function?11 26814
I have a small PL/SQL Block
assume in this way
select * from emp where empno=100;
when others then
oracle is compiler or interpretter,can any one tell me the answer?9 12337
What is integrity constraints?5 18780
How to add Foreign key in a table after the creation of the table?5 9536
type type_name is table of varchar2(30) index by binary_integer for the above type you have to create a identifier... like identifier_name type_name; for the above type you can use the below methods..like first , last , prior, next , delege..etc...like this.. if you create a cursor...like cursor cursor_name is select * from scott.emp; is there any methods like above to use prior, fist , last , next , trim ,etc...1 6187
what is the difference between varray and table data type..please expalain with some examples... under what situation you will go for varray..instead of index by table...1 3391
declare v_count number(8,3); v_sal scott.emp.sal%type := '&P_sal'; cursor cur_name is select sal from scott.emp where sal between (v_sal-100) and (v_sal +1000); begin v_count :=nvl(sql%rowcount ,0); if v_count = 0 then dbms_output.put_line('no records are fetch in the given sal range'); else dbms_output.put_line('There is/are '||to_char(v_count)|| ' salaries are selected in the given range '); end if; end; in the above programm .....for any sal range ....always it shows the following message.. no records are fetch in the given sal range please find the mistake and share with me...with thansk and regards..sarao....3 6468
1. is it possible to use the cursor atttibutes (%found ,% rowcount , %isopen , %notfound ) to our user defined cursor names ....... cursor cursor_name is select * from scott.emp if you use... cursor_name%found , %rowcount ,%isopen,%notfound...will it work... -------------------------- 2.what is the difference between the varray and index by table .. -------- 3. type type_name is table of number(8,3) index by binary_integer; identifier_name type_name; first , last , prior , next ,trim are the methods we can use it for the above type...simillary is there any way to apply for cursors... with thanks and regards..sarao...1736
1.when will you use week refcursor and when will you use strong ref cursor ? 2.what is the use of sql trace..how do you use it ? 3.can you please send all the sql plus commands...like set line 6000....1 4704
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...3 7038
Post New Satyam SQL PLSQL Interview Questions
Can we override the enablepartialrendering property of the scriptmanager class?
What is EARTH COUPLING. Have come across,a pnuematic index table Machine is vertical drilling machine made by Chiron GMBH
What are rows and columns in ms word?
Which book of aryabhatta is regarded as a great contribution in astronomy?
What is the class that allows an element to be accessed using unique key?
How do you maintain promotions in sap is retail?
How does hibernate proxy work?
How do you see the connections used by mongos?
What is an Auto-Response Rule?
Different sizes of Hollow blocks and its weight. Thanks.
What can operate over the joint state space? a) Decision-making algorithm b) Learning algorithm c) Complex algorithm d) Both a & b
How to implement routing in angularjs?
What two statements are required in an abap program to output an icon using a written statement?
What are the different row versions available in table?