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 |
|
aks
Starting Member
28 Posts |
Posted - 2005-03-10 : 13:09:46
|
| I have a table with few columnsuid int id1655 1121 45671655 1122 45681655 67 45691655 1121 45701655 1122 45711655 78 45722111 1121 56782111 1122 56792111 69 5680..........I need only 3rd row of 2nd column(int) which is UID INT1655 67 782111 69 |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2005-03-10 : 13:14:21
|
select identity(1, 1) as inc, uid, int, idinto #tempfrom Tableselect uid, int, idfrom #tempwhere inc%3 = 0Go with the flow & have fun! Else fight the flow |
 |
|
|
aks
Starting Member
28 Posts |
Posted - 2005-03-10 : 13:25:34
|
| It say"Incorrect syntex near"1"" |
 |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2005-03-10 : 13:28:01
|
sorry:select identity(int, 1, 1) as inc, uid, int, idfrom ...Go with the flow & have fun! Else fight the flow |
 |
|
|
aks
Starting Member
28 Posts |
Posted - 2005-03-10 : 13:39:28
|
| Its again giving me error'Column or parameter #0,Cannot find data type int' |
 |
|
|
PW
Yak Posting Veteran
95 Posts |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2005-03-10 : 14:00:36
|
thanks PW, didn't know that. aks are you maybe using oracle?Go with the flow & have fun! Else fight the flow |
 |
|
|
|
|
|
|
|