Показать сообщение отдельно
Старый 03.08.2005, 14:42   #2  
George Nordic is offline
George Nordic
Модератор
Аватар для George Nordic
Злыдни
 
4,480 / 1255 (50) ++++++++
Регистрация: 17.12.2003
Адрес: Moscow
Записей в блоге: 9
PHP код:
select contractSpecification
    join sum
(InvoiceQty)
    
from purchLine
    where contractSpecification
.ItemId == purchLine.ItemId &&
                
contractSpecification.Licence == purchLine.OR_Licence &&
                
contractSpecification.CIP == purchLine.PurchPrice &&
                
purchLine.PurchId == purchTable.PurchId// ---? откуда-то PurchTable взялось?
contractSpecification.QuotaDelivered purchLine.OR_InvoiceQty;
contractSpecification.update(); 
С Уважением,
Георгий