AXForum  
Zurück   AXForum > Microsoft Dynamics AX > DAX: Программирование
All
Kennwort vergessen?
Registrieren Forum Rules Hilfe Benutzerliste Heutige Beiträge Suchen

 
 
Themen-Optionen Thema durchsuchen Ansicht
Alt 24.04.2015, 21:20   #1  
Морковка ist offline
Морковка
Участник
 
71 / 10 (1) +
Registriert seit: 12.10.2014
Подскажите, что не так с group by
X++:
while select  InvoiceId,      
                  INVOICEDATE,    
                  DlvMode,
                  weight 
          from VendInvoiceJour
          where VendInvoiceJour.INVOICEDATE>=startdate && VendInvoiceJour.INVOICEDATE<=endDate

          join Party
          from VendTable
          where VendTable.AccountNum ==VendInvoiceJour.InvoiceAccount 

          join Name          
               from    DirPartyTable
               where VendTable.Party == DirPartyTable.RecId

          join MarkupCode,         
               DeliveryTripId,
               DeliveryOrderId,
               SUM(Value)            
               from   MarkupTrans
               GROUP BY MarkupCode, MarkUpTrans.TRANSRECID ,MarkUpTrans.TRANSTableID, DeliveryTripId, DeliveryOrderId
               where MarkUpTrans.TRANSRECID == VendInvoiceJour.RecId
                     && MarkUpTrans.TRANSTableID == VendInvoiceJour.TableId 
        
          outer join  TripID,         
                Contractor
               from   DeliveryTrip
               where MarkupTrans.DeliveryTripId == DeliveryTrip.TRIPID
    { info (InvoiceId) }
Как только добавляю group by и sum, то у меня инфо выводит пустую строку, и прочие поля основной таблицы VendInvoiceJour все пустые?? SUM(Value) при этом верная. Убираю group by и sum и всё выводит верно по всем таблицам и по основной в том числе- там просто одна строка всего должна выводится пока. ЧТо делаю неверно?
Спасибо всем откликнувшимся большое.
 

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
emeadaxsupport: Error while importing a user group from the Active Directory into Microsoft Dynamics AX 2012 Blog bot DAX Blogs 0 22.05.2012 19:11
axinthefield: Optimizing AX Batch Performance - Batch Group Configuration Blog bot DAX Blogs 0 01.04.2011 13:11
dynamicsaxtraining: Item setup: Inventory dimension group Blog bot DAX Blogs 1 05.10.2010 15:35
dynamicsaxtraining: Item setup: Item group Blog bot DAX Blogs 0 12.11.2009 17:05
emeadaxsupport: Group policy setting "System Objects: Default owner for objects created by members of the administrators group" is missing on Windows Server 2008 Blog bot DAX Blogs 2 28.08.2009 02:14

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Gehe zu

Рейтинг@Mail.ru
Alle Zeitangaben in WEZ +3. Es ist jetzt 18:53 Uhr.
Powered by vBulletin® Version 3.8.5 (Deutsch)
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.