Is there a way to create a unique ID to return in a rowset that is an integer?
I know there is the newID() function, but it returns something much larger and is non-numeric. What I am basically looking to do is return:
Select JobNumber, Name, StartDate, EndDate From Table
The thing is, this result set does not have a JobNumber column and if possible I'd like to set the first JobNumber = 2001, second to 2002, etc. Or I guess it could be anything random over 20,000 and below 100,000.
Any ideas how to do this? Or if this isnt very clear let me know.
Thanks
I know there is the newID() function, but it returns something much larger and is non-numeric. What I am basically looking to do is return:
Select JobNumber, Name, StartDate, EndDate From Table
The thing is, this result set does not have a JobNumber column and if possible I'd like to set the first JobNumber = 2001, second to 2002, etc. Or I guess it could be anything random over 20,000 and below 100,000.
Any ideas how to do this? Or if this isnt very clear let me know.
Thanks