oracle 子查询中有两个字段,怎么同时查出来

2025-03-25 09:17:14
推荐回答(1个)
回答1:

select
a,b,c
from(select
a.id
a,a.name
b,(select
sum(b.count)
c,a.num-sum(b.count)
d
from
b)
from
a)
在外面在套一层
加个别名,
你能写成这样
我说的
你肯定
能懂。
不明白
在问