Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following query results in 2 , 6 9 8 rows of data being retrieved, but the auditor _ report table only has 1 ,

The following query results in 2,698 rows of data being retrieved, but the auditor_report table only has 1,620 rows. Analyse the query and select the reason why this discrepancy occurs. Hint: Think about the type of relationship between our tables. 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 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;

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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions