DBMS Interview Questions
DBMS Interview Questions
DBMS Interview Questions
Questions
349621
1. What is database?
A database is a collection of information that is organized. So that it can easily be accessed, managed, and updated.
2. What is DBMS?
DBMS stands for Database Management System. It is a collection of programs that enables user to create and maintain a
database.
5. What is normalization?
It is a process of analysing the given relation schemas based on their Functional Dependencies (FDs) and primary key to achieve
the properties
(1).Minimizing redundancy, (2). Minimizing insertion, deletion and update anomalies.
9. What is an Entity?
An entity is a thing or object of importance about which data must be captured.
Data isolation.
Data integrity.
Security Problems.
41. Describe the difference between homogeneous and heterogeneous distributed database?
A homogenous database is one that uses the same DBMS at each node. A heterogeneous database is one that may have a different
DBMS at each node.
Undo phase
61. What are the primitive operations common to all record management System?
Addition, deletion and modification.
62. Explain the differences between structured data and unstructured data.
Structured data are facts concerning objects and events. The most important structured data are numeric, character, and dates.
Structured data are stored in tabular form. Unstructured data are multimedia data such as documents, photographs, maps, images,
sound, and video clips. Unstructured data are most commonly found on Web servers and Web-enabled databases.
65. Explain the difference between an exclusive lock and a shared lock?
An exclusive lock prohibits other users from reading the locked resource; a shared lock allows other users to read the locked
resource, but they cannot update it.
66. Explain the "paradigm mismatch" between SQL and application programming languages.
SQL statements return a set of rows, while an application program works on one row at a time. To resolve this mismatch the
results of SQL statements are processed as pseudofiles, using a cursor or pointer to specify which row is being processed.
70. What is Enterprise Resource Planning (ERP), and what kind of a database is used in an ERP application?
Enterprise Resource Planning (ERP) is an information system used in manufacturing companies and includes sales, inventory,
production planning, purchasing and other business functions. An ERP system typically uses a multiuser database.
The network model can be much more flexible than the hierarchical model since each parent can have multiple children but each
child can also have multiple parents. This model supports one-to-one, one-to-many, and many-to-many relationships.
76. Explain what needs to happen to convert a relation to third normal form.
First you must verify that a relation is in both first normal form and second normal form. If the relation is not, you must convert
into second normal form. After a relation is in second normal form, you must remove all transitive dependencies.
79. What is deadlock? How can it be avoided? How can it be resolved once it occurs?
Deadlock occurs when two transactions are each waiting on a resource that the other transaction holds. Deadlock can be
prevented by requiring transactions to acquire all locks at the same time; once it occurs, the only way to cure it is to abort one of
the transactions and back out of partially completed work.
Redundant array of inexpensive (or independent) disks. The main goal of raid technology is to even out the widely different rates
of performance improvement of disks against those in memory and microprocessor. Raid technology employs the technique of
data striping to achieve higher transfer rates.
A schedule is said to be view serializable if it is view equivalent with some serial schedule.
Answer: C
Alert log file records all modifications to the database but modifications to data alone is recorded
by Archive files. UNDO file stores UNDO tables which have opposite transactions recorded.
Archive files also help in recovery of data.
5. Which is better ?
A. SQL
B. Procedures
Answer: SQL
SQL is often much shorter to write - you can do an update or summary procedure in one line of
code that would take you several lines of procedural.
For set-based problems - SQL is much faster processor-wise and IO wise too because all the
underlining looping iteration is delegated to a database server process that does it in a very low
level way and uses IO/processor more efficiently and knows the current state of the data - e.g.
what other processes are asking for the data
If you were to update say a sales person of all customers in a particular region - your procedural
way would look something like this
do until eof
if rs("state") = "NH" then
rs("salesperson") = "Mike"
end if
rs.next
loop
The SQL way would be: UPDATE customers SET salesperson = "Mike" WHERE state = "NH"
If you had, say 2 or 3 tables you need to check, your procedural quickly becomes difficult to
manage as you pile on nested loop after loop.