Home » U++ Library support » U++ SQL » OrderBy in descending order [ANSWER FOUND]
Re: OrderBy in descending order [message #13338 is a reply to message #13337] |
Wed, 02 January 2008 11:51   |
|
From HomeBudget:
SQL & ::Select(NAME, SqlId("sum(value) as val"))
.From(MONEY, CATEGORIES)
.Where(DT_ID == dtid && CAT_ID == ID.Of(CATEGORIES) && PM.Of(MONEY) < 0)
.GroupBy(CAT_ID)
.OrderBy(Descending(SqlId("val")));
Just add Descending to OrderBy
|
|
|
Goto Forum:
Current Time: Thu Aug 07 02:59:55 CEST 2025
Total time taken to generate the page: 0.05982 seconds
|