|
本帖最后由 todaynew 于 2009-3-17 21:47 编辑
SELECT a.产品名称, iif(a.工序1 is null,"工序1","") AS 未开始工序, iif(not a.工序1 is null,"工序1" & 工序1,"") AS 正进行工序
FROM 产品生产进度明细 AS a
UNION SELECT a.产品名称, iif(a.工序2 is null,"工序2","") AS 未开始工序, iif(not a.工序2 is null,"工序2" & 工序2,"") AS 正进行工序
FROM 产品生产进度明细 AS a
UNION SELECT a.产品名称, iif(a.工序3 is null,"工序3","") AS 未开始工序, iif(not a.工序3 is null,"工序3" & 工序3,"") AS 正进行工序
FROM 产品生产进度明细 AS a
UNION SELECT a.产品名称, iif(a.工序4 is null,"工序4","") AS 未开始工序, iif(not a.工序4 is null,"工序4" & 工序4,"") AS 正进行工序
FROM 产品生产进度明细 AS a
UNION SELECT a.产品名称, iif(a.工序5 is null,"工序5","") AS 未开始工序, iif(not a.工序5 is null,"工序5" & 工序5,"") AS 正进行工序
FROM 产品生产进度明细 AS a
UNION SELECT a.产品名称, iif(a.工序6 is null,"工序6","") AS 未开始工序, iif(not a.工序6 is null,"工序6" & 工序6,"") AS 正进行工序
FROM 产品生产进度明细 AS a;
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|