Re: counting records
- From: "Sandro" <sandro_no_spam@xxxxxx>
- Date: Wed, 24 Aug 2005 22:09:40 +0200
"Pierre" <pf@xxxxxxxxxx> ha scritto nel messaggio
news:C04Pe.73678$Qh7.1045731@xxxxxxxxxxxxxxxxxxxxxxx
> Hi all,
>
> I have a table with one numeric fields.
> i want to add a record number field in a query
> Look simple but i cant do it! - help
> I have: order no
> 1
> 2
> 6
> 7
> 8
>
> I want: order no;recno -
> 1|1
> 2|2
> 6|3
> 7|4
> 8|5
>
> Regards
> pierre
>
Hi Pierre,
you need a subQuery :
(select count(*) from YourTable as aaa where aaa.[order
no]<YourTable.[order no]+1) as recNo ....
Ciao, Sandro
.
- Follow-Ups:
- Re: counting records
- From: Per Larsen
- Re: counting records
- References:
- counting records
- From: Pierre
- counting records
- Prev by Date: Re: Non-Binding Constraint Speeds Query
- Next by Date: Re: Counting mulitple groups
- Previous by thread: counting records
- Next by thread: Re: counting records
- Index(es):
Relevant Pages
|