我得到了三个名为EasyPaisa
,的表TimePay
,并且Omni
有字段Profit
where EasyPasia
got (10,10)
, Omni
got (15,15)
, TimePay
got (20,20)
。
- 总利润为 20 的 EasyPaisa
- 总利润 30 的 Omni
- TimePay 总利润 40
当我用这个查询取出利润时:
SELECT
Sum(EasyPaisa.Profit) AS Expr1,
Sum(Omni.Profit) AS Expr2,
Sum(TimePay.Profit) AS Expr3
FROM
EasyPaisa,
Omni,
TimePay;
它给我的结果是实际结果的两倍
- EasyPaisa 利润为 40
- Omni 利润为 60
- TimePay 利润为 80