Zkuste se připojit mezi klientem a testovací tabulkou jako:
SELECT c.forename, COUNT(c.forname)
FROM Client c INNER JOIN Test t
ON c.clientNo = t.clientNo
WHERE c.forename = 'Jim'
AND t.status = 'PASS'
GROUP BY c.forname
Zkuste se připojit mezi klientem a testovací tabulkou jako:
SELECT c.forename, COUNT(c.forname)
FROM Client c INNER JOIN Test t
ON c.clientNo = t.clientNo
WHERE c.forename = 'Jim'
AND t.status = 'PASS'
GROUP BY c.forname