Re: Select first with rownumber ?
Posted in 2005
Hendrik Schinnenburg wrote: > Hello NG, > i try to write a query, which get a select with the rownumber. such as > > " select first 10 *, rownumber from table order by value " > > I want to have the following result : > > a, 1 > b, 2 > c, 3 > d, 4 > e, 5 > > > Everytime i want the number 1 to count of first. > > This must be in an sql select statement without any procedure. > > How can i do that ? Sorry, but IDS has no concept of ROWNUMBER and the ANSI SQL std does not require it. That admittedly useful feature is an extension supported by many RDBMSes, but not IDS. There was a rumor i short time ago, propagated by me unfortunately (passing on bad info), that IDS 10.00.UC.3 would have that feature, but it unfortunately does not. Art S. Kagel