|
-
Sep 7th, 2000, 05:56 AM
#1
Thread Starter
New Member
Hi
I get many rows of info from a table using a SQL Select statement,I just want to put a row number by the side of each resulting row, like:
1 jim
2 john
3 joe
4 james
5 ...
sounds simple, but... How?
Also any comments on how to print row numbers in DataReport would be nice.
Thanks
-
Sep 7th, 2000, 12:21 PM
#2
Frenzied Member
-
Sep 12th, 2000, 10:25 AM
#3
Thread Starter
New Member
Hi again
The user wants me to print it!
-
Sep 12th, 2000, 11:37 AM
#4
Frenzied Member
The problem is, it's meaningless unless the data (row number) is stored.
-
Sep 13th, 2000, 05:16 AM
#5
Lively Member
If your record set is ordered by something for example name. Then it could look like this
Code:
SELECT
Name,
( SELECT
COUNT( * )
FROM
tblName N2
WHERE
N2.Name <= N1.Name
)
FROM
tblName N1
ORDER BY
Name
GROUP BY
Name
Might not be the best but it at least pops your thread to the top.
Yesterday, all my troubles seemed so far away...
Help, I need somebody, Help...
Now MCSD and still locking for intresting job in the south parts of Stockholm, Sweden.
-
Sep 15th, 2000, 01:43 PM
#6
Thread Starter
New Member
Hi
After Hitting my head on the wall for so many times, I have found that I could add a column to my recordset using Shape ... Append command with the NEW option, and then fill it with row numbers in a loop.
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|