Advanced Database 2076
Attempt all questions. (10x6=60)
AI is thinking...
1. What is query processing? How is it different from query optimization? Discuss cost estimation for relational algebra expressions.
AI is thinking...
2.What is data fragmentation? Discuss horizontal and vertical fragmentation in detail.
Data Fragmentation: A process of splitting a relation into logically related and correct parts. Fragmentation consists of breaking a relation into smaller relations or fragments, and storing the fragments (instead of the relation itself), possibly at different sites. In horizontal fragmentation, each fragment consists of a subset of rows of the original relation. In vertical fragmentation, each fragment consists of a subset of columns of the original relation. A relation can be fragmented in three ways:
- Horizontal Fragmentation
- Vertical Fragmentation
- Mixed Fragmentation
Horizontal Fragmentation:
A horizontal fragment of a relation is a subset of the tuples in that relation. The tuples that belong to the horizontal fragment are specified by a condition on one or more attributes of the relation. Horizontal fragmentation divides a relation “horizontally” by grouping rows to create subsets of tuples, where each subset has a certain logical meaning. These fragments can then be assigned to different sites in the distributed system. Derived horizontal fragmentation applies the partitioning of a primary relation to other secondary relations which are related to the primary via a foreign key.
It is a horizontal subset of a relation which contains those of tuples which satisfy selection conditions specified in the SELECT operation of the relational algebra on single or multiple attributes. Consider the Customer relation with selection condition (sex= male). All tuples satisfy this condition will create a subset which will be a horizontal fragment of Customer relation.
Customer
Horizontal Fragmentation are subsets of tuples (rows)
σsex= male(customer)
Fragment 1
Fragment 2
σsex=female(customer)
Vertical Fragmentation:
Vertical fragmentation divides a relation “vertically” by columns. A vertical fragment of a relation keeps only certain attributes of the relation. It is a subset of a relation which is created by a subset of columns. Thus a vertical fragment of a relation will contain values of selected columns. There is no selection condition used in vertical fragmentation. All vertical fragments of a relation are connected by using PROJECT operation of the relational algebra.
Example
Vertical fragmentation is subset of attributes
Fragment 1
Fragment 2
To combine all the vertically fragmented tables we need to perform join operation on the fragments.
SELECT customer_id, Name, Area, Sex, Payment_type
FROM Fragment 1 NATURAL JOIN Fragment 2;
Mixed (Hybrid) Fragmentation
We can intermix the two types of fragmentation, yielding a mixed fragmentation. The original relation can be reconstructed by applying UNION and OUTER UNION (or OUTER JOIN) operations in the appropriate order. In general a fragment of a relation can be specified by SELECT-PROJECT combination of operations.
AI is thinking...
3.Why do we need extended ER modeling? Discuss class/subclass relationship with example.
AI is thinking...
4.How do object relational database support multi-valued and composite attributes? Discuss with example.
AI is thinking...
5.What are the uses of active database? Discuss active database with example.
AI is thinking...
6.Discuss mobile computing architecture. Discuss mobile data management in detail.
AI is thinking...
7.Why do we need temporal database? Discuss valid time, transaction time and bi-temporal relations.
AI is thinking...
8.Discuss benefits and applications of data mining. How is classification different from clustering?
AI is thinking...
9.What is web service? Discuss SOAP in detail.
AI is thinking...
10.Write short notes on:Deductive database ODMG.
AI is thinking...