Here are a mix of SQL and PL/SQL questions. These can be treated as SQL and PL/SQL interview questions or a Database FAQ.
Many of them may be specific to Oracle database. Please drop comment if you are unable to get an answer to any of them.
Also please note that it is better to know the answers to them even if you are a Java developer as database interaction is very much required in most of the applications.
Also please note that it is better to know the answers to them even if you are a Java developer as database interaction is very much required in most of the applications.
SQL
- What are the various types of indexes?
- Is there any advantage of using views? On what kind of tables and columns, a view be created?
- What are the various kinds of constraints which can be applied on a column?
- What is the disadvantage of using indexes?
- What are the various techniques you have used for optimizing your tables? What about De-normalization?
- What is the purpose of DUAL table?
- How will you convert a date to String in SQL?
- How will you copy only the table structure from one table to another compatible table?
- How will you copy the table structure and data from one table to another compatible table?
- Which is the faster method of retrieving data using a SQL query? WHERE, ROWID, CURSOR
- What is better to use? A subquery or a Join?
- What is the purpose of NOCACHE and NOLOGGING keywords?
- What does DELETE CASCADE do in a constraint?
- When should one use Auto Increment of a column than using a sequence?
- How will you take the backup of the data present in your tables?
- What is the difference between a Data Warehouse and Data Mining?
- What is the disadvantage of having constraints and integrity checks in triggers or procedures than to have them in the application using the database?
- How will you delete duplicate rows from a table based on a particular column?
- Can a view be created on another view?
- Can a SQL query have an alias and be used as a column name for the enclosing parent SQL query? Give example?
PL/SQL
- Is AVG a function or procedure?
- What is the advantage of using packages for storing PL/SQL objects?
- How will you raise an exception and an error in PL/SQL procedure?
- How will you call a PL/SQL procedure from a SQL statement?
- What is the default value being assigned to variables in a PL/SQL variables?
- What is the difference between NVL and NVL2 functions?
- What is the difference between Count and Count(*)?
- What is the difference between Procedure and Function?
- What is overloading of procedures?
- What is a ROW and STATEMENT triggers?
No comments:
Post a Comment