我有两个查询,我不确定如何作为一个做一些简单的数学运算。
SELECT count(*) FROM CUSTOMERINFO
where member between '2013-01-01' and '2013-12-31'
返回:7823
select COUNT(DISTINCT ORDERINFO.OrderID) from orderinfo, orderiteminfo
where code = '810samp'
AND ORDERINFO.OrderID = ORDERITEMINFO.OrderID
AND orderinfo.PrepareDate between '2013-01-01' and '2013-12-31'
回报:4106
我需要查询返回:4106 / 7823 X 100