Advertisement
nocturnalmk

Untitled

Aug 5th, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.48 KB | None | 0 0
  1. SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at OR near "," LINE 12: ... GROUP BY (meeting_id)) AS details) AS tbl1, ^ (SQL: SELECT total_meetings AS meetings, total_attendants AS attendants, round(total_attendants/total_meetings) AS average FROM ( (SELECT SUM(attendants) AS total_attendants FROM (SELECT meeting_id AS meeting, COUNT(member_id) AS attendants FROM meeting_member GROUP BY (meeting_id)) AS details) AS tbl1, (SELECT COUNT(id) AS total_meetings FROM meetings) AS tbl2 ) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement