Subject | Re: Select last - How to select latest data |
---|---|
Author | menjit_singh |
Post date | 2005-12-08T13:34:45Z |
> Method 1:HIGH, LOW, DATA,symbol FROM DATA
> 'SELECT Skip((SELECT COUNT(*) - 30 FROM DATA)) CLS, VOL, OPN,
> WHERE STOCK='''+imya+''' order by DATA ACS'i'm using fbembed.dll version 1.5.2.4731.i used method 1 but an error
>
>
> Method 2 (you need Firebird 2):
>
> 'SELECT * FROM (
> SELECT First 30 CLS, VOL, OPN, HIGH, LOW, DATA,symbol FROM DATA
> WHERE STOCK=xxx ORDER BY DATA DESC )
> ORDER BY DATA ASC
>
>
> Ivan
> http://www.volny.cz/iprenosil/interbase/
>
occured. Should i replace the '*' in the COUNT(*) with something?
method 2 also produced an error, undefine token SELECT for the 'FROM(
SELECT..'