hello,
I imported a table to sql server which it hasnt identity field. I created a field now but how can I give the correlative numbers at once in Stored Procedure to all the records? thank in advance.
For example ->
name last_name Cnt price total
John Smith 1 10
Sarah Smith 1 15
Marta Smith 1 13
to:
id name last_name Cnt Price Total
1 John Smith 1 10
2 Sarah Smith 1 15
3 Marta Smith 1 13
Another thing..
how can I calculate the total (cnt x price) at once for each records?
Thanks!!
I imported a table to sql server which it hasnt identity field. I created a field now but how can I give the correlative numbers at once in Stored Procedure to all the records? thank in advance.
For example ->
name last_name Cnt price total
John Smith 1 10
Sarah Smith 1 15
Marta Smith 1 13
to:
id name last_name Cnt Price Total
1 John Smith 1 10
2 Sarah Smith 1 15
3 Marta Smith 1 13
Another thing..
how can I calculate the total (cnt x price) at once for each records?
Thanks!!