Re: How to make a numbering field to a field selection in SQL?
From: Jerry Pisk (jerryiii_at_hotmail.com)
Date: 04/29/04
- Next message: Payman: "MaxScanRows=0 gives wront datatypes for Text file"
- Previous message: Kevin Yu [MSFT]: "RE: Bitwise Comparison in WHERE Clause"
- In reply to: Tonya: "How to make a numbering field to a field selection in SQL?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 28 Apr 2004 23:28:17 -0700
NEWID if you don't need those to be sequential numbers. But even if you
number them, there won't be any relevance to anything in the database,
unless you create those numbers in the actual data. Seems like you need to
rethink your design instead of trying to come up with arbitrary record
numbers in a resultset.
Jerry
"Tonya" <anonymous@discussions.microsoft.com> wrote in message
news:6A6B521B-7F8E-460C-9E37-5116B7B3E627@microsoft.com...
> Hi! I have a table in my database, from which I SELECT some fields. Is
there any function in SQL, which can add an artificial field for numbering
my records to the result of the selection?
> Thanks in advance!
>
- Next message: Payman: "MaxScanRows=0 gives wront datatypes for Text file"
- Previous message: Kevin Yu [MSFT]: "RE: Bitwise Comparison in WHERE Clause"
- In reply to: Tonya: "How to make a numbering field to a field selection in SQL?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading