Показать сообщение отдельно
Старый 11.10.2004, 14:38   #5  
AlexUnik is offline
AlexUnik
Участник
 
199 / 22 (1) +++
Регистрация: 01.06.2004
Адрес: Королёв
Странно. У меня первая вариация запроса, которую Вы предложили тоже валится, но вторая проходит без проблем. (Axapta 3.0 SP3). Быть может, Вы что-то не учли? Попробуйте так:
X++:
static void JobRec(Args _args)
{

taxOnItem taxOnItem;
taxGroupData taxGroupData;
taxTable taxTable;

select RecId from taxOnItem
        where taxOnItem.TaxItemGroup == 'НДС18'
    join RecId from taxGroupData
        where taxGroupData.TaxCode == taxOnItem.TaxCode
    join RecId from taxTable
        where  taxTable.TaxCode == taxGroupData.TaxCode;
{
    info(strfmt("%1", taxOnItem.TaxCode));
}
}