Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
dovesdale
Starting Member
11 Posts |
Posted - 2007-07-24 : 02:49:37
|
| How will i dynamically generate number for my selcted rowseg: outputcoloumn 1 Coloumn 2 Column 3Priority 1 Speciality AngographyPriority 2 Country IndiaPrority 3 xxxx yyyyyI want the cloumn 1 to be genrated dynamically and it should go on like 1 2 3 4 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2007-07-24 : 02:55:30
|
| SELECT 1 + ABS(CHECKSUM(NEWID())) % 4Peter LarssonHelsingborg, Sweden |
 |
|
|
dovesdale
Starting Member
11 Posts |
Posted - 2007-07-24 : 07:35:03
|
| PsesoI didt get u can u please helpmy situation is as follows(pls use nothwind database)When running this querry "SELECT OrderDate, RequiredDateFROM Orders"you will get multiple rows with coloumn names orderdate and required dateeg:Orderdate requiredDate7/4/1996 8/1/1996 "" ""I want to add a dynamic serial infront of it and need to fetch taht in querrymy output should be like thiseg: SerialNum Orderdate requiredDate 1 7/4/1996 8/1/1996 2 7/5/1996 8/16/1996 |
 |
|
|
|
|
|