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

JASPALRank #7,881 · 232 reputationPosted Mar 5, 2017, 7:46 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Mar 5, 2017, 7:42 PM EST
Vikash KumarRank #1,682 · 906 reputationPosted Mar 5, 2017, 9:17 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Mar 5, 2017, 9:28 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Mar 5, 2017, 9:30 PM EST
Ramesh PalanivelRank #372 · 6.8K reputationPosted Mar 5, 2017, 10:34 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Mar 6, 2017, 12:51 AM EST
Vikash KumarRank #1,682 · 906 reputationPosted Mar 5, 2017, 11:49 PM EST
Ramesh Palanivel, thanks for your question, I want to make these calculations while insertng records.