Below are 10 statements describing the relational algebra query to be written using the pizza schema,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Below are 10 statements describing the relational algebra query to be written using the pizza schema, which is reproduced (without the data) here for your reference. The pizza schema: Person( name, age, gender) Frequents( name, pizzeria) Eats( name, pizza ) Serves( pizzeria, pizza, price ) 1.) List all of the pizzas that Amy eats 2.) List the count of pizzas Amy eats 3.) List the count of pizzas all persons eat 4.) List the name and pizzas eaten by people less than 20 years old 5.) List the names of people who eat supreme or cheese pizza 6.) List the names of people who eat supreme and cheese pizza 7.) List the names of all people who eat at least one pizza served by Dominos but who do not frequent Dominos 8.) List all of the pizzerias and pizzas that have a price as much as the most expensive pizza served 9.) List all of the female persons along with the pizzas they eat and how much those pizzas cost at Chicago Pizza 10.) List all pizzas that are eaten only by people younger than 24, or that cost less than $10 everywhere they're served Part 2: Below are 10 statements describing the relational algebra query to be written using the company schema, which is reproduced (without the data) here for your reference. The company schema: EMPLOYEE( Fname, Minit, Lname, Ssn, Bdate, Address, Sex, Salary, Super_ssn, Dno ) DEPENDENT ( Essn, Dependent_name, Sex, Bdate, Relationship ) DEPARTMENT (Dname, Dnumber, Mger_ssn, Mger_start_date ) PROJECT( Pname, Pnumber, Plocation, Dnum ) DEPT LOCATIONS ( Dnumber, Dlocation ) WORKS ON Essn, Pno, Hours ) 11.) List the first and last names of all employees who work in a department that is located in Houston 12.) List the first and last names of all employees who have a dependent with the same first name as themselves 13.) List the first and last names of all employees who have a spouse dependent but not a son dependent 14.) List the first and last names, along with the department they manage and when they began managing that department for all employees who manage a department 15.) List the first and last names of all employees who either work 0 hours total on all projects or more than 40 hours total on all projects 16.) List the first and last names of all employees and include, if they have a spouse, the first name of their spouse 17.) List the first and last names of all employees who are department managers but have no dependents 18.) List the first and last names of all employees who work on at least one project located in Houston but whose department has no location in Houston 19.) List the first and last names of all employees who do not work on any project 20.) List the first and last names of all employees who work on every project Below are 10 statements describing the relational algebra query to be written using the pizza schema, which is reproduced (without the data) here for your reference. The pizza schema: Person( name, age, gender) Frequents( name, pizzeria) Eats( name, pizza ) Serves( pizzeria, pizza, price ) 1.) List all of the pizzas that Amy eats 2.) List the count of pizzas Amy eats 3.) List the count of pizzas all persons eat 4.) List the name and pizzas eaten by people less than 20 years old 5.) List the names of people who eat supreme or cheese pizza 6.) List the names of people who eat supreme and cheese pizza 7.) List the names of all people who eat at least one pizza served by Dominos but who do not frequent Dominos 8.) List all of the pizzerias and pizzas that have a price as much as the most expensive pizza served 9.) List all of the female persons along with the pizzas they eat and how much those pizzas cost at Chicago Pizza 10.) List all pizzas that are eaten only by people younger than 24, or that cost less than $10 everywhere they're served Part 2: Below are 10 statements describing the relational algebra query to be written using the company schema, which is reproduced (without the data) here for your reference. The company schema: EMPLOYEE( Fname, Minit, Lname, Ssn, Bdate, Address, Sex, Salary, Super_ssn, Dno ) DEPENDENT ( Essn, Dependent_name, Sex, Bdate, Relationship ) DEPARTMENT (Dname, Dnumber, Mger_ssn, Mger_start_date ) PROJECT( Pname, Pnumber, Plocation, Dnum ) DEPT LOCATIONS ( Dnumber, Dlocation ) WORKS ON Essn, Pno, Hours ) 11.) List the first and last names of all employees who work in a department that is located in Houston 12.) List the first and last names of all employees who have a dependent with the same first name as themselves 13.) List the first and last names of all employees who have a spouse dependent but not a son dependent 14.) List the first and last names, along with the department they manage and when they began managing that department for all employees who manage a department 15.) List the first and last names of all employees who either work 0 hours total on all projects or more than 40 hours total on all projects 16.) List the first and last names of all employees and include, if they have a spouse, the first name of their spouse 17.) List the first and last names of all employees who are department managers but have no dependents 18.) List the first and last names of all employees who work on at least one project located in Houston but whose department has no location in Houston 19.) List the first and last names of all employees who do not work on any project 20.) List the first and last names of all employees who work on every project
Expert Answer:
Answer rating: 100% (QA)
Step 11 choose a pizzeria from the chemicals that a person joins using name when age 18 b choose a d... View the full answer
Related Book For
Posted Date:
Students also viewed these computer engineering questions
-
Perform a sensitivity analysis of the Midwestern Hardware scenario (Problem 15). Find the optimal order quantity and optimal expected profit for probabilities of a harsh winter ranging from 0.2 to...
-
How do you perform a sensitivity analysis of an investment proposal, and what is its purpose? Contrast the use of scenario analysis with that of simulation analysis.
-
Using a data table in Excel, perform a sensitivity analysis on the example in Simple Decision Problem.xlsx. Specifically, keep the probabilities in row 10 (for D2) as they are, but vary the...
-
What are the key issues associated with managing an international assignment?
-
Use Newton's method to find a solution to the following nonlinear systems in the given domain. Iterate until ||x(k) x(k1)|| < 106. a. 3x21 x22 = 0, 3x1x22 x31 1 = 0. Use x(0) = (1, 1)t . b. ln...
-
Sodium melts at 99°C. Liquid sodium, an excellent thermal conductor, is used in some nuclear reactors to cool the reactor core. The liquid sodium is moved through pipes by pumps that exploit the...
-
In 2014, political consulting firm Cambridge Analytica developed an app designed to create digital profiles of individuals via their information. Cambridge Analytica collected the data by inviting...
-
The Cutting Department of Cassel Company has the following production and cost data for July. Materials are entered at the beginning of the process. Conversion costs are incurred uniformly during the...
-
ESG CSR Study caseSunset Manufacturing Inc. manufactures Umbrellas in the Western Canadian market, and is comparing the budget for the current year with the actual results. The market has been good...
-
The Fashion Rack has a monthly accounting period. All transactions are recorded in a general journal. Postings are made from the general journal to the accounts receivable ledger, accounts payable...
-
Problem 3. (10 points) Roll a fair six-sided die once and observe X, the number of dots facing up. 1. What is the probability mass function (PMF) of random variable X? (3 points) 2. What is the...
-
What are economies of scope?
-
In September 2015, several acres of sugar crop was damaged due to a faltering monsoon in India, the worlds second-biggest producer of sugar. Farmers in certain states were forced to use damaged crops...
-
What is a capability?
-
What is an acquisition premium?
-
What is a technological discontinuity?
-
. Let m and n be the functions given by the following table: 5 20 25 X m(x) n(x) -2 3 -1 0 Let w = g(t) be the height of water (in feet) that remains at time / (in minutes) in a tank that is draining...
-
Why is it important to understand the macro-environment when making decisions about an international retail venture?
-
During the Asian crisis in 1998, there were rumors that China would weaken its currency (the yuan) against the U.S. dollar and many European currencies. This caused investors to sell stocks in Asian...
-
Purdue Co. (based in the United States) exports cable wire to Australian manufacturers. It invoices its product in U.S. dollars and will not change its price over the next year. There is intense...
-
Akron Co. needs dollars. Assume that the local one-year loan rate is 15 percent, while a one-year loan rate on euros is 7 percent. By how much must the euro appreciate to cause the loan in euros to...
-
This question is an extension of Exercise 10.22. Consider the data file \(m r o z\) on working wives and the model \(\ln (W A G E)=\beta_{1}+\beta_{2} E D U C+\beta_{3} E X P E R+e\). Use the 428...
-
Consider the data file \(m r o z\) on working wives. Use the 428 observations on married women who participate in the labor force. In this exercise, we examine the effectiveness of alternative...
-
To examine the quantity theory of money, Brumm (2005) ["Money Growth, Output Growth, and Inflation: A Reexamination of the Modern Quantity Theory's Linchpin Prediction," Southern Economic Journal,...
Study smarter with the SolutionInn App