|
|
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: Fri Apr 26 10:51:11 CEST 2024
Total time taken to generate the page: 0.05847 seconds
|
|
|