Given the following relational database schema (primary keys are bold and underlined). Answer questions 2.1 to...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Given the following relational database schema (primary keys are bold and underlined). Answer questions 2.1 to 2.4: Orders (orderId, customerId, dateOrdered, dateRequired, status) Customer(customerId, customerLastName, customer Street, customerCity, customer State, customerZip) Order Details (orderId.productId, quantity, lineNumber, amount) Products (productId, name, description, quantity, unitPrice) Account (account Number, customerId, date Opened, credit Card, mailing Street, mailing City, mailingState, mailingZip) 2.1 (2 Points) List all possible foreign keys. For each foreign key list both the referencing and referenced relations. 2.2 (2 Points) Devise a reasonable database instance by filling the tables with data of your choice. Make sure to have at least 4 tuples in each table. Make sure that all tables exhibits entity integrity and referential integrity constraints. Make sure to use good table layout in your answer. 2.3 (3 Points) For each of the following queries, write a relational algebra expression to answer the query: a) Find the id and last names of all customers who live on St. Anny St. in Blaine. b) Find the Customer last names and street address of all customers who have an order. c) Find the names, street address, and cities of residence for all customers who have ordered product number 310794. 2.4 (2 point) For each of the following relational algebra expressions, explain the output of the expression in words: a) credit card(OmailingZip-55444(account) b) customer_ID,accountNumber(customerCity="chicago (customer Daccount) Given the following relational database schema (primary keys are bold and underlined). Answer questions 2.1 to 2.4: Orders (orderId, customerId, dateOrdered, dateRequired, status) Customer(customerId, customerLastName, customer Street, customerCity, customer State, customerZip) Order Details (orderId.productId, quantity, lineNumber, amount) Products (productId, name, description, quantity, unitPrice) Account (account Number, customerId, date Opened, credit Card, mailing Street, mailing City, mailingState, mailingZip) 2.1 (2 Points) List all possible foreign keys. For each foreign key list both the referencing and referenced relations. 2.2 (2 Points) Devise a reasonable database instance by filling the tables with data of your choice. Make sure to have at least 4 tuples in each table. Make sure that all tables exhibits entity integrity and referential integrity constraints. Make sure to use good table layout in your answer. 2.3 (3 Points) For each of the following queries, write a relational algebra expression to answer the query: a) Find the id and last names of all customers who live on St. Anny St. in Blaine. b) Find the Customer last names and street address of all customers who have an order. c) Find the names, street address, and cities of residence for all customers who have ordered product number 310794. 2.4 (2 point) For each of the following relational algebra expressions, explain the output of the expression in words: a) credit card(OmailingZip-55444(account) b) customer_ID,accountNumber(customerCity="chicago (customer Daccount)
Expert Answer:
Related Book For
Fundamentals Of Database Systems
ISBN: 9780133970777
7th Edition
Authors: Ramez Elmasri, Shamkant Navathe
Posted Date:
Students also viewed these databases questions
-
Convert the following relational database tables to the equivalent OO conceptual representation. Explain each of your conversions with the help of a diagram. The R&C Stores database includes the...
-
Convert the following relational database tables to the equivalent OO conceptual representation. Explain each of your conversions with the help of a diagram. ) The Avion Sales database includes the...
-
Consider the following relational database for the Super Baseball League. It keeps track of teams in the league, coaches and players on the teams, work experience of the coaches, bats belonging to...
-
John and Jane Darling are newlyweds trying to decide among several available rentals. Alternatives were scored on a scale of 1 to 5 (5 best) against weighted performance criteria, as shown in Table....
-
Refer to the Crystal Springs Filtration Department Data Set. At Crystal Springs, water is added at the beginning of the filtration process. Conversion costs are added evenly throughout the process,...
-
All organisms on Earth arose from a single common _____.
-
The autocorrelation function of a stationary random process \(x(t)\) is given by \[R_{x}(\tau)=a e^{-b|\tau|}\] where \(a\) and \(b\) are constants. Find the power spectral density of \(x(t)\).
-
8.1 Create a one-way data table for profit at different levels of supplier contact in range B22:C33. Ensure that the price in cell C3 is $290 and the advertising budget in cell C5 is $35,000,000 (you...
-
Donald Sutton owns a commercial property that he acquired 10 years ago for $550,000 (the current UCC of the property is $300,000).The property was recently appraised and it was found that it has a...
-
13. A 10,000 kW turbo-generator operating at rated capac- ity receives 52,000 kg/h of steam at 2.90 MPa and 310C, exhaust is aat 0.007 MPa. At 1.20 MPa and 230C, there are actually extracted 20% of...
-
What types of information can we learn about the project by reviewing the project schedule and all the information used to generate it?
-
Q1. During a race on level ground, Andrea runs with an average velocity of 6.0 m/s to the east, what is Andrea's displacement after 137 s? Q2. Heather and Matthew walk with an average velocity of...
-
If Joe rides his bicycle in a straight line for 15 minutes with an average velocity of 12.5 km/hr south, how far has he ridden?
-
3. A Corporation issues 10,000 shares of $10 par value common stock for $150,000. Prepare the journal entry to record the issuance of this stock. Account Title Debit Credit
-
OP Pie Company makes dessert pies for national fast food chains. OP Pie Company is considering using ABC costing and has the following activity cost pools and information av Activities Material...
-
Bond Discount, Entries for Bonds Payable Transactions On July 1, Year 1, Livingston Corporation, a wholesaler of manufacturing equipment, issued $2,100,000 of 7-year, 10% bonds at a market...
-
3 Assume the real yield curve for bonds of a particular credit quality is flat at 15% per annum and the expected inflation rate for all maturities is also the same at 10% per annum. What is the...
-
Propose a reasonable mechanism for the following reaction. OH
-
Define the following terms: superclass of a subclass, superclass/subclass relationship, IS-A relationship, specialization, generalization, category, specific (local) attributes, and specific...
-
What is object-based storage? How is it superior to conventional storage systems?
-
What is a statistical database? Discuss the problem of statistical database security.
-
What part should the sales function play when drawing up a detailed 12 months operational marketing plan for EMA?
-
Suggest a general outline marketing planning strategy for 12 months ahead for Graham Keddie.
-
Explain the differences between marketing strategies and sales strategies.
Study smarter with the SolutionInn App