JAVA DB Fundametals: SAMPLE EXAM 11.10.2016 - Problems: Part 2
Здравейте, не ми приема judge-a тази заявка от SAMPLE EXAM-a от Section 3: Querying P09. Average loans. Дава само compile time error без никъкво описание. Гледах заявката е същата като на видеото, но не иска и не иска да я вземе!
SELECT c.customer_id, l.amount FROM customers AS c
INNER JOIN loans AS l
ON c.customer_id = l.customer_id
WHERE l.amount > (SELECT AVG(l.amount) AS avg_am
FROM customers AS c
INNER JOIN loans AS l
ON l.customer_id = c.customer_id
WHERE c.gender = 'm')
ORDER BY c.last_name ASC
LIMIT 5;