Page 1 of 1

SQL problems

Posted: Sun Aug 02, 2015 3:51 pm
by Brixhamafc
I am trying to produce some custom reports and my SQL is not that good so have looked at www.schools.com/sql as a guide. I want to produce report using more than one table but when I enter any of the JOIN statements I get a syntax error. when typing the SQL statement if the statement is correct the text of the statement turns green e.g. Select will turn green, but none of the join statements turn green which leads me to believe that I am using the wrong syntax. I therefore got SAMS Teach Yourself SQL from the library and tried their suggestion which leaves out the join statement, and the select statement contains the tables you want to open and you then use the WHERE clause to link the tables. Once again this doesn't work , again it reports syntax error. What am I doing wrong?

Re: SQL problems

Posted: Thu Sep 24, 2015 6:29 pm
by Nikolay
There are a lot of sql for mmex available here: https://github.com/moneymanagerex/general-reports

For better syntax highlighting use any sqlite developer.

To discuss sql is better to provide the sql code.

Regards,
Nikolay

Re: SQL problems

Posted: Sun Oct 18, 2015 3:55 pm
by sterling
Definitely post your code that doesn't compile.  Plenty of users are also SQL programmers.