Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Convert minutes to HH:MM

$
0
0

Hi All;

belwo is my query to convert minutes to HH:Mm

CONVERT(float, CAST((appt.scheduleddurationminutes/60) AS VARCHAR(8))+ '.' + CAST(( appt.scheduleddurationminutes%60)AS VARCHAR(2))) as Duration,

which gives me outputs as below

But when used in SSRS to add all the Duration field it get displayed as 11:7 but it should get displayed as 12:10

Any help on this much appreciated

Thanks


Pradnya07


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>