Ask Computer Engineering Expert

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

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91615262
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Computer Engineering

Does bmw have a guided missile corporate culture and

Does BMW have a guided missile corporate culture, and incubator corporate culture, a family corporate culture, or an Eiffel tower corporate culture?

Rebecca borrows 10000 at 18 compounded annually she pays

Rebecca borrows $10,000 at 18% compounded annually. She pays off the loan over a 5-year period with annual payments, starting at year 1. Each successive payment is $700 greater than the previous payment. (a) How much was ...

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Suppose you make 30 annual investments in a fund that pays

Suppose you make 30 annual investments in a fund that pays 6% compounded annually. If your first deposit is $7,500 and each successive deposit is 6% greater than the preceding deposit, how much will be in the fund immedi ...

Question -under what circumstances is it ethical if ever to

Question :- Under what circumstances is it ethical, if ever, to use consumer information in marketing research? Explain why you consider it ethical or unethical.

What are the differences between four types of economics

What are the differences between four types of economics evaluations and their differences with other two (budget impact analysis (BIA) and cost of illness (COI) studies)?

What type of economic system does norway have explain some

What type of economic system does Norway have? Explain some of the benefits of this system to the country and some of the drawbacks,

Among the who imf and wto which of these governmental

Among the WHO, IMF, and WTO, which of these governmental institutions do you feel has most profoundly shaped healthcare outcomes in low-income countries and why? Please support your reasons with examples and research/doc ...

A real estate developer will build two different types of

A real estate developer will build two different types of apartments in a residential area: one- bedroom apartments and two-bedroom apartments. In addition, the developer will build either a swimming pool or a tennis cou ...

Question what some of the reasons that evolutionary models

Question : What some of the reasons that evolutionary models are considered by many to be the best approach to software development. The response must be typed, single spaced, must be in times new roman font (size 12) an ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As