8
Answers

Stored Procedure to divide two columns and store the result

Vikash Kumar

Vikash Kumar

7y
372
1
Hi,
 
Hi I am looking fto create a stored procedure in mssql which divides two column values and stores the result in another. Can we use cursor?
 
Table should look like 
 
Employee
 
Basic pay(monthly)   Number of days Basics per day
 
5000                             30                        166
 
So the data type here should be int
 
 Any help would be really appreciated 
 

Answers (8)