26.09.2018, 15:09 | #1 |
Участник
|
А как бы его так?
Есть запрос
X++: select firstonly RecId from ledgerJournalTableC index hint PostedJournalNumIdx where ledgerJournalTableC.JournalType == ledgerJournalTable.JournalType && ledgerJournalTableC.Posted == NoYes::Yes join RecId from ledgerJournalTransC where ledgerJournalTransC.JournalNum == ledgerJournalTableC.JournalNum && ledgerJournalTransC.AdvanceId == ledgerJournalTrans.AdvanceId && ledgerJournalTransC.RecId != ledgerJournalTrans.RecId; |
|