Why xml is important in structuring and exchanging data

Assignment Help Data Structure & Algorithms
Reference no: EM13944397

1. Mark T(rue) or F(alse) for each statement below ( 2/each)

(1) If a table does not have any functional dependencies, then the table is in at least 3NF. ( )

(2) If a table is in 3NF, it is always in 2NF. ( )

(3) An FD XY ? WV can be decomposed into X ?WV and Y ?WV. ( )

(4) Query processing in relations in higher normal form is more efficient that in lower normal form, since higher normal forms cause smaller relations.

(5) A binary modeling allows an attribute to a relationship. ( )

(6) A table can have both a primary index and a clustering index at the same time. ( )

(7) An index for an alternate key is always dense. ( )

(8) An OODBMS allows a user-defined data type. ( )

(9) The object identity in an OODB system can be defined by a designer. ( )

2. Answer briefly.

(a). As a SQL developer, explain how do you enforce the following types of constraints in SQL-based database systems? Use English to explain. You may explain using an example. (6)

Primary Key

Alternate key

Foreign keys

(b) In relation R7(A, B, C, D, E, F, G), how do you represent, using the FDs, the fact that the R7 has two candidate keys {AB, ACG}. (4)

(c) What are the major differences between hashing and B+-tree indexes? Discuss in terms of access time to records, types of queries best supported (exact matching, partial matching, range queries, full-table scan), and table growth. (5)

(d) What are major differences between entity in ER model and class in object-oriented systems? Try to use as many concepts as possible discussed in the course. (4)

(e) What are advantages and disadvantages of using 2K block size and 16K block size in terms of storage utilization, query processing with a large table, and updating a single row. (4)

(f) Why XML is important in structuring and exchanging data over the web? (4)

3. Consider the following relation:

R(A,B,C,D,E,F)
FD:
B?C
A?DE
AB?F

(a) Why is this table not in 2NF? (3)

(b) Normalize the data shown in this table to third normal form (3NF).

Identify the primary and foreign keys in your 3NF relations. Underline primary keys in the decomposed relations. Mark with * for all foreign keys. (4)

4. Consider a universal relation STUDENT below: Assume each attribute has an atomic value.
STUDENT(SID, Name, DOB, Advisor, Dept, Dept_office, Term, Year, Course, Instructor, Grade}.

The FDs are: 2 3
SID --> Name, DOB, Advisor
Advisor --> Dept
Dept --> Dept_Office
Course --> Instructor
SID, Term, Year, Course --> Grade

The primary key of this table is SID+Term+Year+Course.

(a) Mark T/F for each FD against 2NF and 3NF above. (8)

(b) Based on the analysis done in (a), in what normal form is the relation STUDENT ? (2)

(c) Show the 3NF decomposition. Underline primary keys in the decomposed relations. Mark with * for all foreign keys. Show all processes. (3)

5. Consider a table named EMPLOYEE which contains 500,000 rows of 100 bytes each. Assume that the block size is 2000 bytes. Assume the data and index trees fill the data up to 80% of each node. Ignore all other overheads. Show calculations in all parts that follow.

(a) Calculate the blocking factor for the data records. (2)

(b) Calculate the number of blocks the rows of the EMPLOYEE table will take. (3)

(c) Assume you want to create a dense multi-level primary key index on the PK (E# CHAR(10) ) of EMPLOYEE. Calculate the index entry size assuming a rowid of 6 bytes. (2)

(d) Then calculate how many leaf-level blocks there will be in the index tree. (3)

(e) Assuming leaf-level node and middle-level nodes have the same structure, calculate how many blocks exist on the each level of the index tree. (3)

(f) Draw a schematic diagram for the index tree you constructed. Just show nodes, levels (depth), and the number of nodes in each level. (2)


6. For the following problem, use COMPANY example in p. 159 of Elmasri's book. Suppose we have another table called CONSULTANT showing which consultant helps which departments as follows:
CONSULTANT ( CON#, Cname, Expertise, DNUMBER)
c1 Joy C/S 1
c2 Bob OOSA 1
c3 Jack C++ 5
c4 Cindy Oracle NULL

(a) Show the syntax of Left Outer JOIN in Oracle syntax between department and consultant to process the following query: "For all departments, find department name and consultant's name and their expertise for every department" (3)

(b) Show the result of the above query. (3)

7. Suppose we have the following schema. PKs are underlined and FKs are marked with asterisk (*).
PURCHASE (P#, P_date, Terms)
LINE_ITEM (P#*, Line#, Item#, Quantity)
ITEM (Item#, Item_Name, ManuF#*)
Manufacture (ManuF#, ManuF_name, Address)

(a) Show the IE model with the crowfoot notation for the above schema.(4)

8. See the ERD in Chen's notation below. Show the IDEF1X notation of the ERD. Decompose all the M:N relationships into two 1:N relationships. (10).

893_ff.png

Reference no: EM13944397

Questions Cloud

Develop your analysis of current operations : Utilise the University library, the Internet and any information made available by the organisation (e.g. annual report, promotional materials) to provide an analysis of the organisation's current operations to develop your analysis of current ope..
Probability of an accident occurring : The average highway travel time from Waterloo to Toronto on accident free days (i.e., only regular volume of traffic) is around 90 minutes with a standard deviation of 10 minutes. The occurrence of an accident, however, results in an average delay..
How character socrates defeat cephalus accounts of justice : How does the character Socrates defeat Cephalus' and Polemarchus' accounts of justice? Why does Plato bother to consider these views?
Reinforce organisational positioning : For example, the chosen strategic HRD approach could address the needs of a specific strategic group, reinforce organisational positioning, address management development/transition needs, focus on talent management or retention/re-engagement of h..
Why xml is important in structuring and exchanging data : As a SQL developer, explain how do you enforce the following types of constraints in SQL-based database systems? Use English to explain. You may explain using an example.
For making styrene from benzene and ethylene : Table: contains six-month average price data for styrene and its feedstock's ethylene and benzene for South Korea over the period Jan. 1999 to Dec. 2010. Calculate the gross margin
What are tax consequences of the distributions to ivory co : Assume that Ivory Corporation distributes the cash and equipment to Gold Corporation and the inventory to Imelda. What are the tax consequences of the distributions to Ivory Corporation, to Gold Corporation, and to Imelda?
Prepare an overview of the current rail networks : Prepare an overview of the current rail networks in South East Asia and describe how these are likely to develop over the next 15 years.
Discuss tools and techniques used in project management : Critically appraise the role of the project manager within systems or software development projects Critically discuss tools and techniques used in project management.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd