List supplier id, name, and city of any supplied food with its price is more than...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
List supplier id, name, and city of any supplied food with its price is more than a nested query to find food items in the FOOD table that the price are more than Use a subquery or also called a nested query FOOD SUPPLIER (and FOOD table inside of the subquery) 5 rows selected Question 6. A) Count the number of lunches per lunch date purchased by workers who are not assigned to any department and hired between December 01, 2012, and April 01 2020. Format the lunch date in the fmMONTH-YYYY format. □ Use an inner join to obtain this result ☐ WORKER and LUNCH tables Label the lunch date as LD and the count as LUNCH_COUNT Group by the non-aggregated column in the SELECT clause □ Sort by LD. 2 rows selected. B) Expand on 6A: Add a clause to remove any LD with a total lunch count greater than 2. 1 row selected. Lunches DB ERD FOOD PF* supplier_id P product_code menu_item description price price_upcharge FOOD SUPPLIER * supplier_id supplier_name supplier_city IP item_number PF* lunch_id F " supplier_id F M LUNCH_ITEM X product_code quantity DEPARTMENT dept_code department_name HI - HH P lunch_id F F LUNCH X lunch date worker_id WORKER worker_id first_name last_name city hire_date credit_limit phone_number manager_id dept_code List supplier id, name, and city of any supplied food with its price is more than a nested query to find food items in the FOOD table that the price are more than Use a subquery or also called a nested query FOOD SUPPLIER (and FOOD table inside of the subquery) 5 rows selected Question 6. A) Count the number of lunches per lunch date purchased by workers who are not assigned to any department and hired between December 01, 2012, and April 01 2020. Format the lunch date in the fmMONTH-YYYY format. □ Use an inner join to obtain this result ☐ WORKER and LUNCH tables Label the lunch date as LD and the count as LUNCH_COUNT Group by the non-aggregated column in the SELECT clause □ Sort by LD. 2 rows selected. B) Expand on 6A: Add a clause to remove any LD with a total lunch count greater than 2. 1 row selected. Lunches DB ERD FOOD PF* supplier_id P product_code menu_item description price price_upcharge FOOD SUPPLIER * supplier_id supplier_name supplier_city IP item_number PF* lunch_id F " supplier_id F M LUNCH_ITEM X product_code quantity DEPARTMENT dept_code department_name HI - HH P lunch_id F F LUNCH X lunch date worker_id WORKER worker_id first_name last_name city hire_date credit_limit phone_number manager_id dept_code
Expert Answer:
Answer rating: 100% (QA)
Answer The code is as follow SELECT ssupplierid sname scity ... View the full answer
Related Book For
Concepts of Database Management
ISBN: 978-1285427102
8th edition
Authors: Philip J. Pratt, Mary Z. Last
Posted Date:
Students also viewed these databases questions
-
Now, consider the situation described in the figure below where the battery that charged the top and bottom plates of the capacitor remains connected. As in Question #3, assume that the distance d...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
1.In a general partnership, a partners interest in specific partnership property is subject to a partners liability for alimony not transferable voluntarily or involuntarily transferable for a...
-
In an organization that has high employee satisfaction, ______. Multiple choice question. customer interactions are forced and scarce employee turnover is high more positive interactions take place...
-
Determine the reactions at the supports. Given: w = 250lb/ft a = 6 ft b = 6 ft c = 6 ft
-
A thermocouple is placed on one side of a solid 2 cm-thick 1 m x 1m (square) slab of aluminum, held at a uniform temperature of 25 o C. The surroundings are also at 25 degree celsius on both sides of...
-
Derive the kinematic and dynamic conditions needed in the analysis. Set up the equations to find the constants. Now require that the determinant of the coefficient matrix should be zero to obtain a...
-
Suppose that on January 6, 2016, Westfall Motors paid $360,000,000 for its 40% investment in Phase Motors. Assume Phase earned net income of $20,000,000 and paid cash dividends of $25,000,000 to all...
-
A researcher would like to determine whether an over-the-counter herbal nasal spray has an effect on mental alertness for infants. A sample of n = 18 infants is obtained, and each baby is given a...
-
Bottle-Up, Inc., was organized on January 8, 2010, and made its S election on January 24, 2010. The necessary consents to the election were filed in a timely manner. Its address is 1234 Hill Street,...
-
You are planning to invest $25,000 in new equipment. This investment will generate net cash flows of $15,000 a year for the next 2 years. The salvage value after 2 years is zero. The cost of capital...
-
A woman had two sons, who were born on the same hour of the same day of the same year, but they were not twins. How could this be?
-
On what date did Phar-Mor announce that David Shapiro would assume the duties of President and Mickey Monus Vice-Chairman?
-
Which of the following red flags is seldom associated with cash register disbursement frauds? 1. Excessive voids 2. Uncashed personal checks in the cash drawer received from employees 3. Excessive...
-
Which of the following is not a method to deter, prevent, and detect the theft and alteration of outgoing accounts payable checks? 1. Identify vendors with no mailing address or phone number. 2....
-
Which of the following is not a fictitious revenue scheme? 1. Matching expenses to revenues 2. Premature revenue recognition 3. Conditional sales 4. Channel stuffing
-
Income statement for 2016 (in $) 2016 Sales 480,000 Costs (incl. depr.) 336,000 EBIT 144,000 25,000 33,320 85,680 Interest Taxes (28%) Net income Sales are expected to increase by 20% in 2017, while...
-
What are the four types of poultry production systems? Explain each type.
-
Why is local control of data an advantage in a distributed database?
-
Suppose in addition to the requirements specified in Question 7, you must store the number of the department in which the student is majoring. Indicate the changes this would cause in the design in...
-
Answer each of the following questions using the TAL Distributors data shown in Figure 1-5. No computer work is required. 1. List the names of all customers that have a credit limit that is less than...
-
When asked to make a choice, most people prefer \(\$ 2400\) with certainty to a lottery in which they may win \(\$ 2500\) with probability 0.33 , \(\$ 2400\) with probability 0.66 , and nothing with...
-
Consider the following two choices: 1. You have to choose between losing \(\$ 7400\) for sure, and a risky alternative, whereby you lose \(\$ 10,000\) with probability 0.75 and nothing with...
-
You are analyzing three stock shares: Joint, Eppon, and Peculiar Motors. Based on your analysis, the price of a Joint stock share should be the same as the sum of one Eppon share and one Peculiar...
Study smarter with the SolutionInn App