<div dir="ltr">Hi, Thomas<div><br></div><div>    Extend help is a good idea and adding a new dialog too. But I think this characteristic of hsqldb would be hide from the user instead, because if the deafult database change in the future (as I see there are some efforts to it) and this database supports LIMIT without adding  GROUP BY or WHERE, than these things get unneeded and the behaviour of Base change. (Here I means that Base known by normal user who use it with the default driver).</div>
<div style>    This is why I prefer adding table alias to the select statement behind GUI and allow the user to make queries like <span style="color:rgb(80,0,80)">"select * from table limit y". </span></div><div>
<br></div><div><br><div class="gmail_extra"><div class="gmail_quote">2013/6/11 Thomas Hackert <span dir="ltr"><<a href="mailto:thackert@nexgo.de" target="_blank">thackert@nexgo.de</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hello Alex,<br>
On Montag, 10. Juni 2013 21:06 Zolnai Tamás wrote:<br>
thanks, Alex, to bringing my problem to this list :)<br>
<div class="im"><br>
> Thanks for the note. I looked up the thread on german discuss<br>
> list. The problem is not that "doesn't insert the required WHERE<br>
> clause before the LIMIT" (it sounds like adding a criteria on GUI<br>
> and this criteria not inserted into the select statement before<br>
> the limit clause while running), but hsqldb does not support<br>
> queries like "select * from table limit y". In hsqldb's concept we<br>
> have to use a WHERE or an ORDER BY clause before LIMIT or at least<br>
> a Table alias.<br>
<br>
</div>But should this not be mentioned in the help to "SQL;LIMIT clause"<br>
(so it is called in Germanophone OLH ... ;) In Pootle you can find<br>
it at<br>
<a href="https://translations.documentfoundation.org/de/libo_help/translate.html#unit=40700280" target="_blank">https://translations.documentfoundation.org/de/libo_help/translate.html#unit=40700280</a>)?<br>
Something like<br>
<br>
<quote><br>
<ahelp hid=".">Expands the created select statement of the <link<br>
href="text/shared/explorer/database/02010100.xhp" name="SQL<br>
Query">SQL Query</link> by the LIMIT X clause</ahelp>. This can be<br>
used to limit your SQL Query results to those that fall within the<br>
first X number of it.<br>
Note: LIMIT does not work with Base per se. If you want to use it<br>
with %PRODUCTNAME Base's integrated HSQL, you need to add either<br>
"WHERE" or "ORDER BY" clauses in SQL.<br>
</quote><br>
(or something like that)? Feel free to correct my errors and or<br>
improve it ... ;)<br>
<div class="im"><br>
> In case of mysql, Base appends a table alias automatically to the<br>
> select statement (read on the german list). I don't sure this<br>
> appending's aim is to avoid this problem or not, but can use for<br>
> hsqldb too.<br>
<br>
</div>Is there a possibility to implement some kind of dialog to ask for<br>
the "WHERE" or "ORDER BY" clause in an easy way? I am not a<br>
programmer, so I could not be of any help, sorry ... :(<br>
<br>
Have a nice day<br>
Thomas.<br>
<TOFU removed><br>
<span class=""><font color="#888888"><br>
--<br>
Good evening, gentlemen. I am a HAL 9000 computer. I became<br>
operational at the HAL plant in Urbana, Illinois, on January 11th,<br>
nineteen hundred ninety-five. My supervisor was Mr. Langley, and he<br>
taught me to sing a song. If you would like, I could sing it for<br>
you.<br>
</font></span><div class=""><div class="h5"><br>
_______________________________________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/libreoffice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br>
</div></div></blockquote></div>   </div></div></div>