I'm trying to run the following MySQL script
SELECT
'AccessDayClass'.'total' AS 'em aula',
'AccessDayNotClass'.'total' AS 'em casa',
'AccessDayClass'.'DateOnly' AS 'week'
FROM 'AccessDayNotClass'
FULL OUTER JOIN 'AccessDayClass' ON 'AccessDayClass'.'DateOnly' = 'AccessDayNotClass'.'DateOnly'
And the server is responding with
# 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server for the right syntax to use near 'OUTER JOIN
AccessDayClass
ONAccessDayClass
.DateOnly
= 'AccessDayNotClass' at line 6
I used INNER JOIN
and it worked correctly, the problem only occurs with FULL OUTER JOIN
. Following is the structure of both tables.
Using MySQL 5.7.19