Вы находитесь на странице: 1из 1

1. A table has the following data : [[5, Null, 10]].

What will the average functi


on return ?
Answer: 7.5
2. Is Sysdate a system variable or a system function?
Answer: System Function
3.What is the result of the following SQL : Select 1 from dual UNION Select 'A'
from dual;
Answer: Error ORA-01790: expression must have same datatype as corresponding exp
ression
https://sites.google.com/site/allinterviewquestions/Home/oracle-sql-plsql-interv
iew-questions
4. What is the difference between foreign key and reference key ?
Answer: Foreign key is the key i.e.attribute which refers to another table prima
ry key. Reference key is the primary key of table referred by another table.
5. Can dual table be deleted, dropped or altered or updated or inserted ?
Answer: Yes
6. If you insert a row in a table, then create another table and then say Rollba
ck.In this case will the row be inserted ?
Answer: Yes.Because Create table is a DDL which commits automatically as soon as
it is executed.The DDL commits the transaction even if the create statement fai
ls internally (eg table already exists error) and not syntactically.
7. If I have an execute privilege on a procedure in another users schema, can I
execute his procedure even though I do not have privileges on the tables within
the procedure ?
Answer: Yes
8.

Вам также может понравиться