Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Row sequence number
Hello all,


I=B4m currently using a SQL Serve 2K. Would like to do a select
which returns the row number - this should not be physically stored in
the database. So for example, I would like to do a query against the
CUSTOMER table and receive:

* rowID || name
1   Evander
2   Ron
3   Scoth
4   Jane

I don=B4t want to store the ID, because if I change the order by
clause, the sequence may modifiy, and, for another example, having the
same set of data, I would receive:

* rowID || name
1   Scoth
2   Ron
3   Jane
4   Evander
=20
could someone help me ?

best regards,
Evandro


Report this thread to moderator Post Follow-up to this message
Old Post
evandroc
04-04-06 01:26 AM


Re: Row sequence number
http://support.microsoft.com/defaul...b;EN-US;q186133

--
Anith



Report this thread to moderator Post Follow-up to this message
Old Post
Anith Sen
04-04-06 01:26 AM


Re: Row sequence number
Use Front end application to number the result

Madhivanan


Report this thread to moderator Post Follow-up to this message
Old Post
Madhivanan
04-04-06 02:28 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

Microsoft SQL Server forum archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 08:02 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006