当时间以分钟为单位存储时,获取以小时为单位的总时间?
在数据库中,我们有一个数字字段,表示医生评估患者记录的总时间(以分钟为单位)。而且,我们有一份报告,按医生姓名分组,并在一列中显示记录总数,在下一列中显示医生在给定时间范围内评估所有记录所花费的总分钟数以及总平均值医生在该时间范围内评估其记录所花费的分钟数。
但是,我们有一位客户希望在几小时内而不是几分钟内看到这些数字。有没有办法让我在查询中进行除法,或者我是否必须在几分钟内得到结果,然后为每个医生除以 60?
In the database, we have a numeric field that represents the total time in minutes for a doctor to evaluate a patient record. And, we have a report that groups by the doctor name and shows the total number of records in one column, the total number of minutes the doctor took to evaluate all of their records in a given time frame in the next column and the total average number of minutes it took for the doctor to evaluate their records during that time frame.
But, we have one customer who wants to see these numbers in hours, not minutes. Is there a way for me to do the division in the query or am I going to have to get the results in minutes and then divide by 60 for each doctor?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
像这样的东西:
Something like: