Write sql statements to create the corresponding relations

Assignment Help Database Management System
Reference no: EM13509195

1.Write SQL statements to create the corresponding relations to the ER diagram you designed for Exercise 2.8. If your translation cannot capture any constraints in the ER diagram, explain why.

2.Consider the following schema: 

Suppliers(sid: integer, sname: string, address: string) Parts(pid: integer, pname: string, color: string) Catalog(sid: integer, pid: integer, cost: real)

The Catalog relation lists the prices charged for parts by Suppliers. Answer the fol-lowing questions:

Give an example of an updatable view involving one relation.

Give an example of an updatable view involving two relations.

Give an example of an insertable-into view that is updatable.

Give an example of an insertable-into view that is not updatable.

3.Given two relations R1 and R2, where R1 contains N1 tuples, R2 con-tains N2 tuples, and N2 > N1 > 0, give the minimum and maximum possible sizes (in tuples) for the resulting relation produced by each of the following relational algebra expressions. In each case, state any assumptions about the schemas for R1 and R2 needed to make the expression meaningful: 

(1) R1R2, (2) R1R2, (3) R1R2, (4) R1×R2, (5) σa=5(R1), (6) πa(R1), and (7) R1/R2

Reference no: EM13509195

Questions Cloud

Construct company manufacturing overhead budget : Company C's variable manufacturing overhead rate is $2.00 per direct labor-hour and the company's fixed manufacturing overhead is $40,250 per quarter. The only non-cash expense included in the fixed overhead is depreciation of $12,000 per quarter.
How many pennies must be added to the water : Copper pennies weighing 2.5 g have been placed in boiling water at 100 degree Celsius. How many pennies must be added to the water to raise the temperature to 31 degree Celsius
What is the final temperature of iron : After placing the iron (0.750 kg) in the fire and shaping it, it is still at 200 C. He puts the piece in 8 L bucket of water at 25 degree celsius. What is the final temperature of iron
Compute the weight of the sand and box in that situation : An initially stationary box of sand is to be pulled across a floor by means of a cable in which the tension should not exceed 754 N. what is the weight of the sand and box in that situation
Write sql statements to create the corresponding relations : Write SQL statements to create the corresponding relations to the ER diagram you designed for Exercise 2.8. If your translation cannot capture any constraints in the ER diagram, explain why.
Identification and analysis of the market for the product : Product or service definition - identification and analysis of the market for the product
Compute how many revolutions per minute is the sample making : A centrifuge is a device in which a small container of material is rotated at a high speed on a circular path. How many revolutions per minute is the sample making
Compute uniteds total 2012 payroll expense for welch : Compute Welch's gross pay, payroll deductions, and net pay for the full year 2012. Round all amounts to the nearest dollar and compute United's total 2012 payroll expense for Welch.
Calculate its speed at aphelion : Halleys comet, which passes around the sun every 76 years, has an elliptical orbit. When closest to the sun (perihelion) it is a distance of 8.823 x 10^10m, calculate its speed at aphelion

Reviews

Write a Review

 

Database Management System Questions & Answers

  Integrity constraint prevent-data inserted in table

Integrity constraint prevent from happening when data is inserted in table which contains this constraint? Let INSERT, UPDATE, and DELETE actions on both child and the parent.

  Describe entity-relationship model

Describe the entity-relationship model. How are entities, relationships, and attributes represented in this model? What is a composite entity? Describe the approach to diagrams that uses a crow's foot.

  What is the drawback of using end-to-end security

You will find an abundance of materials on this subject within the databases located within IEEE & ACM digital libraries. But don't forget that especially in the Networking technologies RFC's and other related standards are the most authoritative ..

  Locate a hosted distributed database service explore its

write a 200- to 300-word short-answer response for the followinglocate a hosted distributed database service. explore

  Write a program to keep track of a cd or dvd collection.

write a program to keep track of a CD or DVD collection. This can only work exclusively with either CDs or DVDs since some of the data is different. The data will be stored ina file. The data from the file will be stored ina text file as records. Eac..

  Potential sales and department store transactions

Identify the potential sales and department store transactions that can be stored within the database and design a database solution and the potential business rules that could be used to house the sales transactions of the department store.

  Write a two to three page paper in which youdocument the

write a two to three page paper in which youdocument the requirements based on the information provided and assumptions

  Metropolis toys metropolis toys is an independent

metropolis toys metropolis toys is an independent family-owned manufacturer of wooden toys. the toys are designed by

  If you cannot capture some constraints explain why

Consider the university database from Exercise 2.3 and the ER dia-gram you designed. Write SQL statements to create the corresponding relations and capture as many of the constraints as possible. If you cannot capture some constraints, explain why.

  Prepare a database design specification

Understand and interpret a set of business rules for a database and create an Enhanced Entity Relationship Diagram that models the requirements accurately

  Compose conceptual data modeling techniques

Prepare database design documents using the data definition, data manipulation, and data control language components of the SQL language.

  Develop a domain model for the case study

The objective of the assignment is to apply and consolidate skills acquired in the requirement and analysis disciplines through analysis of a simple case study, and to express the results through the relevant UML diagrams.

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