Professional Documents
Culture Documents
154. How can I dynamically prevent the user from entering a new record ?
Have a pre-record trigger that does :
If ((dynamic-condition-is -true) and :system.record_status='New') then
Raise form_trigger_failure;
end if;
1)select the nmae of managers who manage more than one employee.
A)select mgr from emp group by mgr having count(*)>1;
11)what is a role?
A) A role is a collection of related privilages that an administrator can grant
collectively
to database users and other roles.
17)What is SGA?
A) system global area which is the allocation of memory for Oracle in the
primary memory.
18)What is MDI?
A)Multiple Document Interface.
21)What is page 0
A)This is the address Oracle uses for the non display fields of the
Form.
26)what is sqlca
A)strctured query language communication area.
37. Write a Sql statement to delete two identical rows with one statement .
Delete from emp A where A.ename=X.ename and rowid in (select max (rowid) from
emp where emp.ename=A.ename);
38. What are the triggers that are created by master_detail relationship ?
On_Populate_Details
On_Check_Delete_Master
On_Clear_Details
41. If we are not using the keyboard will the Key-next-item trigger fires if not
which trigger is suitable
No, Post-next-item is suitable.
44. Based on the table given find the total amount of each sales person which
should be more than the maximum amount
Table :-
Sname Amount
A 4000
B 2000
A 200
C 3000
C 2000
B 200
Select sum(amount) from stable having sum (amount) > (select max (amount)
from stable ) group by sname;
46.What is PCTFREE ?
It is a storage parameter you can use to minimize the row changing. It is the
percentage of space free for updates.
47. To get sum of all salaries where in ename starts with same character say
(A,B,P).
Select substr (ename,1,1), sum (sal) from emp where substr (ename,1,1) in
(select substr (ename,1,1) from emp ) group by substr (ename,1,1);
50. Will * work while creating a view with two tables using a join condition.
No.