Hello,
I've looked in the documentation and on this forum and evertytime I get into stuff I really think is overkill for what I want (projections, views, etc..)
The thing is really simple ... I have a table with highscores for a game. It includes the gamers name and score (among other things). Everytime a gamer submits a score, a new record gets inserted (no updates).
Now I want to get a query for the top 20 scores, but distinct it per user. So in fact, the query only returns the highest score for each player (and TOP 20'd)
So something like :
SELECT TOP 20 score, DISTINCT playername FROM SCORES ORDER BY score DESC
So if for instance we have player A with scores of 500 & 600, and player B with scores of 700 & 800, it would return : B-800 and A-600
What is the best (simplest & most performant) way to write this in self-servicing llblgen code ? This seems so simple, and I just can't get around it ..I just know I'm gonna feel so stupid when my eyes are opened ...
Btw, this is geared towards LLBLGen 2.6 Self servicing