Question: There are three issues with this query: one results in an ambiguous column name error; another causes an incorrect syntax error; and the last is
There are three issues with this query: one results in an ambiguous column name error; another causes an incorrect syntax error; and the last is a logic problem which will not result in an error but which will cause the query to return undesirable data. Identify these issues. How would you fix them?
SELECT
AcctNo
Countdistinct DeclineDate as DeclineCount
FROM
tblAccounts
INNER JOIN
tblDeclines
WHERE
tblAccounts.AcctNo tblDeclines.AcctNo
GROUP BY
AcctNo
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
