Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 143529

Using group by and order by at the same time in In memory table

$
0
0

Hi guys,

How to use group by and order by at the same time in in memory table?

           while
           select sum(RemainAmount),sum(InterestAmount),DueDate
              from     tmpInterestNoteorder by tmpInterestNote.DueDate asc
              group by tmpInterestNote.DueDate
              
              {
                  custInterestInfoLine = new CustInterestInfoLine();
                  custInterestInfoLine.parmDueDate(tmpInterestNote.DueDate);
                  custInterestInfoLine.parmInterestAmount(tmpInterestNote.InterestAmount);
                  custInterestInfoLine.parmRemainAmount(tmpInterestNote.RemainAmount);
                  custInterestInfoLineList.addStart(custInterestInfoLine);
              }


Error:Temporary tables can have either Group By or Order By fields, but not both.


Viewing all articles
Browse latest Browse all 143529

Latest Images

Trending Articles



Latest Images