Показать сообщение отдельно
Старый 18.03.2004, 12:56   #8  
Sergey_1972 is offline
Sergey_1972
Участник
 
7 / 10 (1) +
Регистрация: 17.03.2004
Извиняюсь, конечно умножить
select Sum(a1.Quant * a2.Price) from a1, a2 where a1.id = a2.a1_id
а не
select Sum(a1.Quant) * Sum(a2.Price) from a1, a2 where a1.id = a2.a1_id