![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Ich suche nach einer Lösung um die letzten X- Sätze aus einer Tabelle zu bekommen. Also die Tabelle EINGANG enthält die z.B die Felder Lieferant, Artikel, Datum. Jetzt will ich die letzten Eingänge des Lieferanten x, also: Select from EINGANG where Lieferant = X order by datum desc So und nun will ich aber nur die letzten 5 Eingänge. Wie geht das? Bei Microsoft SQL geht das ja mit 'Select Top 5...' Danke für eine Antwort Markus I'm looking for a possibility to get the last X Rows from a table For example: table is EINGANG, Fields are Lieferant, Artikel, Datum. With the following statement I could get the rows orderd by DATUM: Select from EINGANG where Lieferant = X order by datum desc But now I'm only interested on the first 5 rows. In Microsoft SQL you can do this with 'Select Top 5...' but in pervasive? Thanks for an answer Markus |
![]() |
| Thread Tools | |
| Display Modes | |
| |