请问一下: 现在我有两张表,A,B。A中存在多个BID。 我需要查询出:A中共有多少条记录,以及存在多少个不同的BID,合计A-PLY 最后按年分组 我用 select count(a_id),count(distinct(b_id),sum(a_ply) from a group by year(a_date) 这样使用为什么总是出错?(在delphi中),提示distinct未定义,不知是什么原因。 谢谢 |
|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )
GMT+8, 2024-5-8 12:01 , Processed in 0.085034 second(s), 16 queries .
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.