Показать сообщение отдельно
Старый 17.03.2004, 11:42   #2  
Maxim Gorbunov is offline
Maxim Gorbunov
Administrator
Соотечественники
Лучший по профессии 2009
 
2,483 / 645 (26) +++++++
Регистрация: 27.11.2001
Адрес: Dubai, UAE
PHP код:
select sum(Quantfrom a1
    join sum
(Quantfrom a2
    where a1
.id == a2.a1_id;
    
ret a1.Quant a2.Quant
По моему, так.
__________________
Not registered yet? Register here!
Have comments, questions, suggestions or anything else regarding our web site? Don't hesitate, send them to me