Essential DBMS Interview Questions Part – 5
1.What is “transparent dbms”?
It is one,which keeps its physical structure hidden from user.
2.What are the primitive operations common to all record management System?
Addition,deletion and modification.
3.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.
4.What are the major functions of the database administrator?
Managing database structure,controlling concurrent processing,managing processing rights and responsibilities,developing database security,providing for database recovery,managing the DBMS and maintaining the data repository.
5.What is a dependency graph?
A dependency graph is a diagram that is used to portray the connections between database elements.
6.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.
7.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.
8.Name four applications for triggers.
(1)Providing default values,
(2) enforcing data constraints,
(3) Updating views and
(4) enforcing referential integrity
9.What are the advantages of using stored procedures?
The advantages of stored procedures are
(1) greater security,
(2) decreased network traffic,
(3) the fact that SQL can be optimized and
(4) code sharing which leads to less work,standardized processing,and specialization among developers.
10.Explain the difference between attributes and identifiers.
Entities have attributes. Attributes are properties that describe the entity’s characteristics.
Entity instances have identifiers. Identifiers are attributes that name,or identify,entity instances.
11.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.
12.Describe the difference between embedded and dynamic SQL
Embedded SQL is the process of including hard coded SQL statements. These statements do not change unless the source code is modified.
Dynamic SQL is the process of generating SQL on the fly.The statements generated do not have to be the same each time.
13.Explain a join between tables
A join allows tables to be linked to other tables when a relationship between the tables exists. The relationships are established by using a common column in the tables and often uses the primary/foreign key relationship.
14.Describe a subquery.
A subquery is a query that is composed of two queries. The first query (inner query) is within the WHERE clause of the other query (outer query).
15.Compare a hierarchical and network database model
The hierarchical model is a top-down structure where each parent may have many children but each child can have only one parent. This model supports one-to-one and one-to-many relationships.
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.
16.Explain the difference between a dynamic and materialized view.
A dynamic view may be created every time that a specific view is requested by a user. A materialized view is created and or updated infrequently and it must be synchronized with its associated base table(s).
17.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.
18.Describe the four types of indexes
A unique primary index is unique and is used to find and store a row.
A nonunique primary index is not unique and is used to find a row but also where to store a row (based on its unique primary index).
A unique secondary index is unique for each row and used to find table rows.
A nonunique secondary index is not unique and used to find table rows.
19.Explain minimum and maximum cardinality
Minimum cardinality is the minimum number of instances of an entity that can be associated with each instance of another entity.
Maximum cardinality is the maximum number of instances of an entity that can be associated with each instance of another entity.
20.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.
21.Explain what we mean by an ACID transaction.
An ACID transaction is one that is atomic,consistent,isolated,and durable. Durable means that database changes are permanent. Consistency can mean either statement level or transaction level consistency. With transaction level consistency,a transaction may not see its own changes.Atomic means it is performed as a unit.
22.Under what conditions should indexes be used?
Indexes can be created to enforce uniqueness,to facilitate sorting,and to enable fast retrieval by column values. A good candidate for an index is a column that is frequently used with equal conditions in WHERE clauses.
23.What is difference between SQL and SQL SERVER?
SQL is a language that provides an interface to RDBMS,developed by IBM. SQL SERVER is a RDBMS just like Oracle,DB
24.What is Specialization?
It is the process of defining a set of subclasses of an entity type where each subclass contain all the attributes and relationships of the parent entity and may have additional attributes and relationships which are specific to itself.
25.What is generalization?
It is the process of finding common attributes and relations of a number of entities and defining a common super class for them.
26.What is meant by Proactive,Retroactive and Simultaneous Update?
Proactive Update:
The updates that are applied to database before it becomes effective in real world.
Retroactive Update:
The updates that are applied to database after it becomes effective in real world.
Simultaneous Update:
The updates that are applied to database at the same time when it becomes effective in real world.
27.What is RAID Technology?
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.
28.What are serial,non serial schedule?
A schedule S is serial if,for every transaction T participating in the schedule,all the operations of T is executed consecutively in the schedule,otherwise,the schedule is called non-serial schedule.
29.What are conflict serializable schedules?
A schedule S of n transactions is serializable if it is equivalent to some serial schedule of the same n transactions.
30.What is view serializable?
A schedule is said to be view serializable if it is view equivalent with some serial schedule.
31.What is a foreign key?
A key of a relation schema is called as a foreign key if it is the primary key of some other relation to which it is related to.
32.What are the disadvantages of using a dbms?
1) High initial investments in h/w,s/w,and training. 2) Generality that a DBMS provides for defining and processing data. 3) Overhead for providing security,concurrency control,recovery,and integrity functions.
33.What is Lossless join property?
It guarantees that the spurious tuple generation does not occur with respect to relation schemas after decomposition.
34.What is a Phantom Deadlock?
In distributed deadlock detection,the delay in propagating local information might cause the deadlock detection algorithms to identify deadlocks that do not really exist. Such situations are called phantom deadlocks and they lead to unnecessary aborts.
35.What is a checkpoint and When does it occur?
A Checkpoint is like a snapshot of the DBMS state. By taking checkpoints,the DBMS can reduce the amount of work to be done during restart in the event of subsequent crashes.