Question: How would you modify the Incorrect_records CTE to join the well_pollution data? WITH Incorrect_records AS ( SELECT auditorRep.location_id, visitsTbl.record_id, Empl_Table.employee_name, auditorRep.true_water_source_score AS auditor_score, wq.subjective_quality_score AS

How would you modify the Incorrect_records CTE to join the well_pollution data? WITH Incorrect_records AS ( SELECT auditorRep.location_id, visitsTbl.record_id, Empl_Table.employee_name, auditorRep.true_water_source_score AS auditor_score, wq.subjective_quality_score AS employee_score, auditorRep.statements AS statements FROM auditor_report AS auditorRep JOIN visits AS visitsTbl ON auditorRep.location_id = visitsTbl.location_id JOIN water_quality AS wq ON visitsTbl.record_id = wq.record_id JOIN employee as Empl_Table ON Empl_Table.assigned_employee_id = visitsTbl.assigned_employee_id WHERE visitsTbl.visit_count =1 AND auditorRep.true_water_source_score != wq.subjective_quality_score); JOIN well_pollution ON auditorRep.location_id = well_pollution.location_id JOIN well_pollution ON visitsTbl.source_id = well_pollution.source_id JOIN well_pollution ON visitsTbl.record_id = well_pollution.record_id JOIN well_pollution ON water_quality.subjective_quality_score = well_pollution.subjective_quality_score

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!