3
I am 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 version for the right syntax to use near 'OUTER JOIN
AccessDayClass
ONAccessDayClass
.DateOnly
= `Accessdaynotclass' at line 6
I used INNER JOIN
and worked properly, the problem only occurs with the FULL OUTER JOIN
. The following is the structure of both tables.
I use Mysql 5.7.19
Mysql does not have FULL JOINS, but maybe they can be emulated. 1) http://dev.mysql.com/doc/refman/5.0/en/outer-join-simplification.html 2) https://stackoverflow.com/questions/4796872/how-to-do-a-full-outer-join-in-mysql
– Tony