MySQL Forums
Forum List  »  Newbie

Re: MySQL Database Tables connect Help (JOIN / SUM)
Posted by: Bonum Monstrum
Date: July 24, 2018 09:10AM

Thanks alot for your help. Unfortunately, when i enter the code it says

"MySQL said: Documentation

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '/18
union all
select 2 as season, player, goals from table2
) sums
group by player;' at line 4"

I checked it, my Maria DB version is 10.1. Is there a way to get it work?


AND: can i easily add more tables to this code? for example

"select 3 as season, player, goals from table2
select 4 as ...."

Thanks a lot in advance! :)

Options: ReplyQuote


Subject
Written By
Posted
Re: MySQL Database Tables connect Help (JOIN / SUM)
July 24, 2018 09:10AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.