5金币
最佳答案试试这个,然后页面表格按照生成的PaiXu列排序,包你满意
SELECT
FIELD(a.`部门`,'车险分部','广饶分部','河口分部','垦利分部','利津分部','合计') as PaiXu,
a.`部门`,a.`日结案固定目标`,
b.`昨日目标`,
c.cont,
(b.`昨日目标`-c.cont) as qk,
(a.`日结案固定目标`+ b.`昨日目标`-c.cont) as mb
from `车险已决存量` a
LEFT JOIN `昨日结案目标` b on a.`部门` = b.`部门`
LEFT JOIN `yj3705-cx` c on a.`部 ...
| |
评分
| |||||||||||||
| |
| |
| |
| |