Answered step by step
Verified Expert Solution
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 rows of data being retrieved, but the auditorreport table only has rows. Analyse the query and select the reason why this discrepancy occurs. Hint: Think about the type of relationship between our tables. SELECT auditorRep.locationid visitsTbl.recordid EmplTable.employeename, auditorRep.truewatersourcescore AS auditorscore, wqsubjectivequalityscore AS employeescore FROM auditorreport AS auditorRep JOIN visits AS visitsTbl ON auditorRep.locationid visitsTbl.locationid JOIN waterquality AS wq ON visitsTbl.recordid wqrecordid JOIN employee as EmplTable ON EmplTable.assignedemployeeid visitsTbl.assignedemployeeid;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started