Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共3 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:inner join 和group by 报错

1楼
lur320 发表于:2024/7/12 10:04:00
 se ect * from (se ect 日期,trim(批号) as 批号,trim(岗位) as 岗位,trim(工序) as 工序, sum(实得工时) as 工时 from {RecordValue}) as a inner join (se ect 日期 as 产出日期, 盒数, 成品编码, 描述, 人工时间 as 总时间, 批号 from {batchper}) as b on a.批号=b.批号 group by a.工时


这里总是出错,怎么改?
改为工时、sum(实得工时)都是错的
2楼
有点蓝 发表于:2024/7/12 10:07:00
se ect * from (se ect 日期,trim(批号) as 批号,trim(岗位) as 岗位,trim(工序) as 工序, sum(实得工时) as 工时 from {RecordValue} group by 工时,批号,岗位,工序) as a inner join (se ect 日期 as 产出日期, 盒数, 成品编码, 描述, 人工时间 as 总时间, 批号 from {batchper}) as b on a.批号=b.批号 
3楼
lur320 发表于:2024/7/12 10:10:00
 谢谢,忘记了。
共3 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .01709 s, 2 queries.