You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
В 12-м вопросе неправильное решение: нужно было назвать два столбца – id и count.
Нужно поменять на
SELECT
t.id AS id,
COUNT(pt.passenger) AS count
FROM Trip t
LEFT JOIN Pass_in_trip pt ON t.id = pt.trip
GROUP BY t.id
ORDER BY t.id;