Subject RE: [firebird-support] FIRST SKIP syntax
Author Peter J. Gore
Peter Gore

Project Manager IT

(ddi) 01277 376433

(swb) 01277 372916

(mob) 07952 695755


From: Louis Werth [mailto:louis@...]
Sent: 14 July 2004 16:35
Subject: RE: [firebird-support] FIRST SKIP syntax

This Should do it

Select first 10 (select count(*) from myTable) as TOTALROWCOUNT, field1,
From myTable
Where field3 = 'ZZZ'

Peter Gore

Milan, thanks for your response!

Milan Babuskov Wrote :
And where would you like to have that total number of rows? As another
column which always has the same value?

Yes, as a new column. a Nice example would be:

Select first 10, TOTALROWCOUNT, field1, filed2
From myTable
Where field3 = 'ZZZ'

Where TOTALROWCOUNT would be the record count of the result set ignoring
"FIRST" Statement.

I am trying to achieve the same as a Google web search. Display page 1
10. Where each page would have 10 records on it. (Speed and Less Network

Don't you think by implementing your suggestion would slow down the
preparing and executing of such a qry's.

Does anyone know if this functionality will be added in the future, or
correct me if I am asking for the unnecessary.

Louis Werth

Yahoo! Groups Sponsor

click here



Yahoo! Groups Links

* To visit your group on the web, go to:

* To unsubscribe from this group, send an email to:

* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <> .

TM Retail, Ashwells Road, Brentwood, Essex CM15 9ST

This e-mail including any attachments is intended only for the addressee
named above and it may contain confidential or privileged information.
If you are not the intended recipient please notify the sender and note
that the contents must not be disclosed to anyone else, no copies can be
taken and all existing copies must be destroyed.
TM Retail will not be liable for any error in transmission.
You should carry out your own virus checks before opening any attachments.
Opinions, conclusions and other information in this message
and attachments that do not relate to the official business
of TM Retail are neither given nor endorsed by it.
TM Retail is the trading name of Forbuoys Limited.

[Non-text portions of this message have been removed]