Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Course Hero X C| Chegg.com pm/courses/71438/assignments/1481882 2 0 columns requested. Be sure that your queries do not produce duplicate records unless otherwise directed. In

image text in transcribedimage text in transcribed

Course Hero X C| Chegg.com pm/courses/71438/assignments/1481882 2 0 columns requested. Be sure that your queries do not produce duplicate records unless otherwise directed. In some cases there are several queries that may be correct, but the problem definition may specify a particular approach. In that case, be sure you write the query exactly as specified. These queries use the Chicago Food Establishment Inspections database as shown in the figure below. Chicago Food Establishment Inspections is government regulatory entity that inspects food establishments to verify that they are meeting all the food regulations that have been established by the city. The structure of the database is simple in order to facilitate understanding and writing of solution queries. Be sure that you understand the database structure before attempting to write the SQL queries. establishment license no dba_name aka name The database consists of five tables: Establishment, Employee, Inspection, Violation and Inspection Point. The key symbol indicates which attribute is the key field for the table. The relationship lines indicate foreign keys. Each Establishment has multiple inspections. Each Inspection is for one Establishment. Each Employee has one Supervisor. Each Supervisor manages multiple Employees. Each Employee does multiple Inspections. Each Inspection is done by one Employee Each Inspection can have multiple Violations. Each Violation occurs on one Inspection An Inspection can cause a single Follow up Inspection. Each Inspection_Point can apply to multiple Violations. Each Violation is for one Inspection_Point. Salary is provided as a Yearly Salary. < Previous O X For each information request below, formulate a single SQL query to produce the required information. In each case, you should display only the columns requested. Be sure that your queries do not produce duplicate records unless otherwise directed. In some cases there are several queries that may be correct, but the problem definition may specify a particular approach. In that case, be sure you write the query exactly as specified. M (no subject) - jillayashwanth2@g x employee employee_id first name last name Et 20 violation inspection_id point id fine + 20 C inspection_point point_id Decrrintinn Activate Windows Go to Settings to activate Windo 47F Mostly clear A O 2:23 AM 12/4/2022 [ Course Hero .com/courses/71438/assignments/1481882 0 columns requested. Be sure that your queries do not produce duplicate records unless otherwise directed. In some cases there are several queries that may be correct, but the problem definition may specify a particular approach. In that case, be sure you write the query exactly as specified. establishment license no Salary is provided as a Yearly Salary. For each information request below, formulate a single SQL query to produce the required information. In each case, you should display only the columns requested. Be sure that your queries do not produce duplicate records unless otherwise directed. In some cases there are several queries that may be correct, but the problem definition may specify a particular approach. In that case, be sure you write the query exactly as specified. dba name aka name facility_type risk level address city state zip latitude longitude C Chegg.com Previous I employee employee_id- first name last name address Due Date: Dec 04 at 23:59 Points: 250 city state zip phone title salary supervisor M (no subject) - jillayashwanth2@gm x + violation inspection_id point_id fine inspector_comment inspection inspection_id inspection_date inspection_type results employee_id license_no followup_to 1 VA inspection_point point_id Description category code fine point_level B Activate Windows Go to Settings to activate 47F Mostly clear ^ @ 2:24 AM 12/4/2022

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Databases questions