how to subtract two strings in sql
9.15-1.15=8
i have a one table called sample,in that table i have a column name is Workedhours
| workedhours |
| 9.15 |
| 10.20 |
| 11.50 |
my expected result is subtract the workedhours 1.15
like 9.15-1.15
10.20-1.15
| workedhours |
| 8 |
| 9.05 |


Ranjeet PatraRank #1,436 · 1.1K reputationPosted Apr 6, 2017, 10:22 PM EDT
Ramesh PalanivelRank #372 · 6.8K reputationPosted Apr 6, 2017, 9:40 PM EDT
https://docs.microsoft.com/en-us/sql/t-sql/functions/try-convert-transact-sql