![]() ![]() ![]() ![]() |
|||||
|
|||||
樓主 水餃 ![]()
![]() |
覺得應該能用一個SQL指令解決,但一直試不出來,是否有高手願意協助幫忙簡化指令提升效能 ^^ 謝謝 strsql = " Select feen, t_no, c_no, t_fee from table01 where feemon = '2012/07' and ch_no ='A12345' " 以上是 rs1的SQL指令 strsql = " Select t_no, c_no, sum(fee) as fee from table02 where t_no='" & rs!t_no & "' and c_no='" & rs!c_no & " group by t_no,c_no" 以上是 rs2的SQL指令 我要將 rs1.t_fee <> rs2.fee 的資料列出來 並得到table01.t_no, table01.c_no, table01.t_fee 及 sum(table02.fee) 的資料 一直試不出來~ 應該有高手能將兩串SQL整合。 是否有高手願意指教﹐ 謝謝
搜尋相關Tags的文章:
[ SQL指令 ] ,
本篇文章發表於2012-07-12 10:27 |