我想在统计一个表中的总价格。
当flag=1时的价格select sum(price) as price from data where flag=1当flag=2时的价格。select sum(price) as price from data where flag=2我想把这两个结果都放到一个报表中的QRDBText1和QRDBText2中。怎么实现!!
当flag=1时的价格select sum(price) as price from data where flag=1当flag=2时的价格。select sum(price) as price from data where flag=2我想把这两个结果都放到一个报表中的QRDBText1和QRDBText2中。怎么实现!!
分别把qrdbtext1连接到query1,
把qrdbtext2连接到query2,
然后用这两个sql语句对query1和query2筛选,
这是猜的,由于两个表一样,很可能会两个内容一样,这样的话,把两个表筛选的结果分别保存起来,
取到变量里边