Thank you for reply Leonardo. <br><br>I'm using SqLite. I tested the query with sqlite command line tool. The query is correct. The problem is Zeos. <br><br><br><br><div class="gmail_quote">2010/1/12 Leonardo M. <span dir="ltr"><<a href="mailto:l.rame@griensu.com">l.rame@griensu.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Massimo, please before trying with Lazarus/Zeos, please test your query<br>
using an external database administration tool like FlameRobin or<br>
IbExpert of you are using Firebird.<br>
<br>
99% of the time, the problem isn't Zeos, but the query itself.<br>
<font color="#888888"><br>
--<br>
Leonardo M. Ramé<br>
Griensu S.A. - Medical IT Córdoba<br>
Tel.: 0351-4247979<br>
<br>
El mar, 12-01-2010 a las 18:07 +0100, Massimo Fazzolari escribió:<br>
</font><div><div></div><div class="h5">> Hi,<br>
><br>
> I have two tables:<br>
><br>
> - Customers<br>
> - Invoices<br>
><br>
> I got an sql logic error trying to execute following query using Zeos<br>
> Component (ZQuery):<br>
><br>
> "SELECT Invoices.*, Customers.Name<br>
> FROM Invoices<br>
> LEFT JOIN Customers<br>
> ON Invoices.CustomerID= Customers.ID<br>
> WHERE Customers.Name = 'Tom' "<br>
><br>
> excluding the Where clause make the query run without problems.<br>
><br>
> Thank you<br>
> Max<br>
</div></div><div><div></div><div class="h5">> --<br>
> _______________________________________________<br>
> Lazarus mailing list<br>
> <a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
> <a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
<br>
<br>
<br>
<br>
--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</div></div></blockquote></div><br>