日期:2014-05-17 浏览次数:20418 次
SELECT fid , COUNT(w.wid) 车间总数 , COUNT(d.did) 设备总数 , COUNT(m.mdi) 材料总数 FROM Factory F INNER JOIN Workshop W ON f.Fid = w.Fid INNER JOIN Device D ON w.wid = d.wid INNER JOIN Material m ON d.did = m.did GROUP BY fid