Você está na página 1de 2

1. Cursor can have a return clause?

True or false
2. To drop commission? Alter table table_name drop column commission
3. Select round(max(7,2),2),round(sum(5,2),2),round(min(6,2),2)) from table_name
Ans: Return value in a single row.
4. Select any 3 which is true regarding constraints?
a. Constraints cannot be enabled or disabled
b.
c.
d.
5. Select any 3 which is correct?
a. 18-aug-2011+7
b. 18-aug-2011-7
c. 18-aug-2011+(12/24)

6. Regarding table space


Ans: Temporary tablespace
7. Which is true about view?
a. views does not contain data.
b. views are built only for tables.
c. views contain storage.

8. How to make structure autonomous?


a. In declaration give autonomous transaction
b. PRAGMA

9. Inventry is having null values What will happen if u try to run this
100/NVL (inventory, 0)
a. Arithmetic exception occur
b. Do not run
c. Data type of NVL does not match
10. When we add null to arithmetic exception what will happen?
11. For i in month 1………12 loop
I think the answer will be an error
12. To display like this Saturday,12January2011
Ans: To_char(format ‘fmDay,DDMonthYYYY’) (easily u can find this)
13. Pl/SQL
Fn (133) = (‘Syed’)
Fn (-15) = (‘Raji’)
Fn (-30) = (‘Veena’)
Fn (88) = (‘Sharma’)
V:=_______.FIRST
I think the answer must be Veena, Raji, Sharma, and Syed but not sure
14. PLSQl function return record say true or false
15. In flashback see undo-retention
16. For one Ques the answer is Upper(Concat(firstname,lastname)) from employees
17. Physical data structures are data files, redo log files, control files.
18. If we want to get the details of items between the two days what is the syntax
Ans: Select column_name1, column_name2 from table_name where some condition between ’12-april-
2011’ and ’30-april-2011’
19. What is true regarding SQL*Plus

20. i=0;
j=i/0;
begin
loop
------
endif;
end loop;
the loop ends without any proper codes. What can be added to improve the code?
a) exit with others.
b) exit with %rowtype.
c) exit with %isopen.
d) exit with %notfound.
21. what is true regarding variables?
a) a variable is local to the block in which it is declared.
b) a variable is global to the block and sub blocks in that block.
c) a variable to the outside block.

More ques above 3 are from materialized view so give more importance to schema objects and at least one ques
from flashback queries.

Você também pode gostar