这应该工作:
select (select count(*) from tasks where completed = 1) / (select count(*) from tasks where completed = 0)from dual
上一篇 建立一个数据库来跟踪哪些用户单击了哪些链接?
下一篇 如何比较2个具有复合主键的表中的行?
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号