Monday, May 4, 2009

Database Interview Questions (SQL, Oracle, Pro*C/C++)

Database Questions
1.What are the different types of joins?
2.Explain normalization with examples.
3.What cursor type do you use to retrieve multiple recordsets?
4.Diffrence between a "where" clause and a "having" clause
5.What is the difference between "procedure" and "function"?
6.How will you copy the structure of a table without copying the data?
7.What is the difference between outer join and inner join?
8.How to find out the database name from SQL*PLUS command prompt?
9.Tadeoffs with having indexes
10.Talk about "Exception Handling" in PL/SQL?
11.What is the diference between "NULL in C" and "NULL in Oracle?"
12.What is Pro*C? What is OCI?
13.Give some examples of Analytical functions.
14.What is the difference between "translate" and "replace"?
15.What is DYNAMIC SQL method 4?
16.How to remove duplicate records from a table?
17.What is the use of ANALYZing the tables?
18.How to run SQL script from a Unix Shell?
19.What is a "transaction"? Why are they necessary?
20.Explain Normalizationa dn Denormalization with examples.
21.When do you get contraint violtaion? What are the types of constraints?
22.How to convert RAW datatype into TEXT?
23.Difference - Primary Key and Aggregate Key
24.How functional dependency is related to database table design?
25.What is a "trigger"?
26.Why can a "group by" or "order by" clause be expensive to process?
27.What are "HINTS"? What is "index covering" of a query?
28.What is a VIEW? How to get script for a view?
29.What are the Large object types suported by Oracle?
30.What is SQL*Loader?
31.Difference between "VARCHAR" and "VARCHAR2" datatypes.
32.What is the difference among "dropping a table", "truncating a table" and "deleting all records" from a table.
33.Difference between "ORACLE" and "MICROSOFT ACCESS" databases.
34.How to create a database link ?
35.What are the different types of joins?
36.Explain normalization with examples.
37.What cursor type do you use to retrieve multiple recordsets?
38.What is TEMP table space in Oracle, what is rollback segment
39.How do we find row chaining?
40.Pattern matching operators ?
41.Features in oracle 9i and 10g ?
42.Why truncating table is faster than delete?
43.Write copy commit syntax?
44.Convert Zulu time zone to US Eastern time zone
45.What is Difference between - union and union all ?
46.Difference - Group by, Order by clause?
47.Which Ranking functions are available?
48.Difference - Decode, NVL, NVL2 ?
49.How can we call stored procedure in SQL query ?
50.What are the restrictions on calling PL/SQL from SQL ?
51.Why EXISTS is preferable to distinct?

1 comment: