please follow the question: Q3. Read the following description of a database for a painting company, and
Fantastic news! We've Found the answer you've been seeking!
Question:
please follow the question:
Transcribed Image Text:
Q3. Read the following description of a database for a painting company, and then answer Subquestions I through 3. Company U is a painting company that offers interior and exterior painting services depending on the customer's contract. Company U provides services according to the customer's needs. Some customers need to paint the whole building, and some only need to paint a bathroom, kitchen or bedroom. Some customers need water resistant color, and some need 3-year guarantee color. Company U provides high-quality painting colors from its suppliers. A particular type of painting color is obtained from a designated supplier. Company U's staff work on a per-hour basis. A customer can contract one or more jobs, and one or more staff members are assigned to each job. The database uses five tables. The table structure and sample data of each table is shown below. Here, underline () indicates the primary key, and dotted underline (...) indicates the foreign key. (1) Customer table The Customer table contains information about the customers. Customer Address CustomerID | Stamp 1 2 3 (2) Staff table The Staff table contains information associated with the staffs. Rate indicates the payment by the hour. SupplierID 1 2 3 JobID 1 2 3 4 5 (3) Supplier table The Supplier table contains information about the suppliers. JobStaffD 1 2 3 4 CustomerName Maung Maung Aung Aung Hla Hla 5 StaffName Kyaw Kyaw Zaw Zaw Min Min (4) Job table The Job table contains information about the contracted jobs. The total surface area is in units of square meters. 6 7 SupplierName Daw Saw U Win Daw Thein 6 10 20 30 15 (5) JobStaff table The JobStaff table is a joint table between the Job table and Staff table. A job can have many staff members and a staff member can do many jobs. Working Hours JobID 1 Rank In charge I Mandalay Bagan Painter Painter 1 TotalSurfaceArea Customer 112 Suppliet 100 2 3 2 3 3 4 5 PaintQuality Water Resistant Oil Resistant 3-Year Guarantee Stamin Startup 1 2 3 Rate 80 50 50 1 2 2 1 1 3 UnitPrice 100 200 300 2 4 4 5 8 5 8 2 3 1 Subquestion 1 From the answer groups below, select the correct answer to be inserted in each blank in the following SQL statement. The SQL statement named SQL1 outputs the staff names and their total number of jobs for the staff members who have more than two jobs. - SQLI -- SELECT S.StaffID, 5.StaffNam, FROM Job 3, Staff S, JobStaff 35 WHERE 3.JobID= 35.JobID AND S.StaffID 35.StaffID A AS Totaljob Q3. Read the following description of a database for a painting company, and then answer Subquestions I through 3. Company U is a painting company that offers interior and exterior painting services depending on the customer's contract. Company U provides services according to the customer's needs. Some customers need to paint the whole building, and some only need to paint a bathroom, kitchen or bedroom. Some customers need water resistant color, and some need 3-year guarantee color. Company U provides high-quality painting colors from its suppliers. A particular type of painting color is obtained from a designated supplier. Company U's staff work on a per-hour basis. A customer can contract one or more jobs, and one or more staff members are assigned to each job. The database uses five tables. The table structure and sample data of each table is shown below. Here, underline () indicates the primary key, and dotted underline (...) indicates the foreign key. (1) Customer table The Customer table contains information about the customers. Customer Address CustomerID | Stamp 1 2 3 (2) Staff table The Staff table contains information associated with the staffs. Rate indicates the payment by the hour. SupplierID 1 2 3 JobID 1 2 3 4 5 (3) Supplier table The Supplier table contains information about the suppliers. JobStaffD 1 2 3 4 CustomerName Maung Maung Aung Aung Hla Hla 5 StaffName Kyaw Kyaw Zaw Zaw Min Min (4) Job table The Job table contains information about the contracted jobs. The total surface area is in units of square meters. 6 7 SupplierName Daw Saw U Win Daw Thein 6 10 20 30 15 (5) JobStaff table The JobStaff table is a joint table between the Job table and Staff table. A job can have many staff members and a staff member can do many jobs. Working Hours JobID 1 Rank In charge I Mandalay Bagan Painter Painter 1 TotalSurfaceArea Customer 112 Suppliet 100 2 3 2 3 3 4 5 PaintQuality Water Resistant Oil Resistant 3-Year Guarantee Stamin Startup 1 2 3 Rate 80 50 50 1 2 2 1 1 3 UnitPrice 100 200 300 2 4 4 5 8 5 8 2 3 1 Subquestion 1 From the answer groups below, select the correct answer to be inserted in each blank in the following SQL statement. The SQL statement named SQL1 outputs the staff names and their total number of jobs for the staff members who have more than two jobs. - SQLI -- SELECT S.StaffID, 5.StaffNam, FROM Job 3, Staff S, JobStaff 35 WHERE 3.JobID= 35.JobID AND S.StaffID 35.StaffID A AS Totaljob
Expert Answer:
Related Book For
Auditing A Business Risk Approach
ISBN: 978-0538476232
8th edition
Authors: Karla Johnstone, Audrey Gramling, Larry Rittenberg
Posted Date:
Students also viewed these computer network questions
-
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...
-
List three specific parts of the Case Guide, Objectives and Strategy Section (See below) that you had the most difficulty understanding. Describe your current understanding of these parts. Provide...
-
Write a Fortran program that creates an integer array with values -123, -4, 5, 67, 890, and 12345. Prints out the array in several formatted ways. a. Print each element, on its own line, using a...
-
The quantity of dissolved oxygen is a measure of water pollution in lakes, rivers, and streams. Water samples were taken at four different locations in a river in an effort to determine if water...
-
Q. Today, social, mobile, and local marketing are the fastest-growing forms of online marketing. This assignment is to plan your own business. A. Describe its business model mentioning the comparison...
-
List applications of I.C. engines.
-
An investor purchased a one-acre lot on the outskirts of a city for $9000 cash. Each year he paid $80 of property taxes. At the end of 4 years, he sold the lot. After deducting his selling expenses,...
-
What is the angular diameter (in arcseconds) of a comet nucleus that has a radius of 15.0 km and is located at a distance of 3.00 Astronomical Units.
-
A rugby player passes the ball 8.25 m across the field, where it is caught at the same height as it left his hand. At what angle was the ball thrown if its initial speed was 12.0 m/s, assuming that...
-
Walk around your room (or apartment or house), and pick a product that you use every day. What is the benefit of this product? That is, what does it do for you, the consumer? How can you sell that...
-
The Company is also making significant changes in manufacturing which will continue to increase margins through efficiency improvements, range changes and capital investment. Production activity is...
-
As we discussed in chapter 6, researchers should always start with secondary research before moving on to primary research, whether quantitative or qualitative. For this activity, approach your...
-
Develop a survey of three questions. For example, lets say you want to know where your friends would like to take a road trip, and you might ask them that open-ended question. Lets say you get five...
-
POEM is an acronym for paid, owned, and earned media. Give three examples of each of these in the media you use every day. Which do you think are the most effective? Why?
-
Forster Company produced 14,000 units at an average cost of $5.90 each. The beginning inventory of finished goods was $3,422. (The average unit cost was $5.90.) Forster sold 14,120 units. How many...
-
Using (1) or (2), find L(f) if f(t) if equals: t cos 4t
-
Academic research addresses the conceptual issues outlined in this chapter. To help you consider the linkage between academic research and the practice of auditing, read the following research...
-
This chapter lays out a framework for high-quality decision-making that has been applied across a number of different professions, including the medical profession. The framework has been adapted in...
-
In a small group, discuss the views expressed by the following three auditors. Auditor 1: "Risk analysis is good. But, when all is said and done, it does not add much to the audit. You still need to...
-
Donna Corporation manufactures custom cabinets for kitchens. It uses a normalcosting system with two direct-cost categoriesdirect materials and direct manufacturing laborand one indirect-cost pool,...
-
Donna Corporation manufactures custom cabinets for kitchens. It uses a normalcosting system with two direct-cost categoriesdirect materials and direct manufacturing laborand one indirect-cost pool,...
-
Donna Corporation manufactures custom cabinets for kitchens. It uses a normalcosting system with two direct-cost categoriesdirect materials and direct manufacturing laborand one indirect-cost pool,...
Study smarter with the SolutionInn App