SQL PLSQL Interview Questions
Questions Answers Views Company eMail

How to get the 3rd column(i.e all the data along with the column name)in a table?

Logica CMG,

2 7171

what are pl/sql collections?

JPMorgan Chase, Oracle,

4 30410

can we use out parameter in a function?Give an example.

Logica CMG, TCS,

4 14467

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...

Satyam,

1 6364

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...

HCL, Satyam,

1 3663

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....

Satyam,

3 6866

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...

Satyam,

1896

suppose I have two table one Emp and other is dpt. Emp table has a field ,dept id,name ,sal and dpt table has a field dept id,dept name. Now I want to find out the emplyee list whose sal is between 2000-3000 from dept x.

Geometric Software, IBM,

7 11546

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....

Satyam,

1 4888

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...

Satyam,

3 7345

define primary key & secondary key?

2 16478

Write a query to find second highest salary of an employee.

27 21830

What are the different types of joins and explain them briefly.

3 10540

what is the output of this query selet * from employee where 1=2 ??

11 15239

hello..... i am an comp science engineering graduate planning to do ORACLE certification in PLSQL 9i. just wanted to know whats the possibility getting job is their openings???? is it worth doin that course n certification

1 2037


Post New SQL PLSQL Questions

Un-Answered Questions { SQL PLSQL }

What is a trigger word?

503


what is the command used to fetch first 5 characters of the string? : Sql dba

1122


Write the alter statement to enable all the triggers on the t.students table.

650


What is sql and explain its components?

585


Does truncate require commit?

527






What are literals in sql server?

518


What is 19 null in sql?

521


What is the difference between left and left outer join?

501


What is posting?

592


Can we use ddl commands in pl sql?

542


What is pl sql and why it is used for?

559


Are stored procedures faster than queries?

512


What do you mean by dbms? What are its different types?

546


How many clustered indexes can be created on a table?

577


What is the use of partition by in sql?

506