J
James
Here are my 2 queries
SELECT TOP 20 accounts.Username as Username,
eb.ScoreTotal as ScoreTotal, eb.SecPlayed as SecPlayed,
eb.LevelNum as LevelNum FROM accounts INNER JOIN eb ON
accounts.Seed = eb.Seed ORDER BY eb.ScoreTotal DESC;
SELECT TOP 20 accounts.Username as Username,
eb.ScoreTotal as ScoreTotal, eb.SecPlayed as SecPlayed,
eb.LevelNum as LevelNum FROM accounts INNER JOIN eb ON
accounts.Seed = eb.Seed ORDER BY eb.SecPlayed ASC;
the problem is the first query works as expected, getting
the top 20 scores in descending order, but the second
query gets all scores as if ignoring the top 20 command?
when i change the second query to DESC it works as
normal, what the heck is going on here, do I need parens
somewhere where I don't have them? Thanks for your
guidance.
PS, this is for the stats page for a game I am almost
done writing
SELECT TOP 20 accounts.Username as Username,
eb.ScoreTotal as ScoreTotal, eb.SecPlayed as SecPlayed,
eb.LevelNum as LevelNum FROM accounts INNER JOIN eb ON
accounts.Seed = eb.Seed ORDER BY eb.ScoreTotal DESC;
SELECT TOP 20 accounts.Username as Username,
eb.ScoreTotal as ScoreTotal, eb.SecPlayed as SecPlayed,
eb.LevelNum as LevelNum FROM accounts INNER JOIN eb ON
accounts.Seed = eb.Seed ORDER BY eb.SecPlayed ASC;
the problem is the first query works as expected, getting
the top 20 scores in descending order, but the second
query gets all scores as if ignoring the top 20 command?
when i change the second query to DESC it works as
normal, what the heck is going on here, do I need parens
somewhere where I don't have them? Thanks for your
guidance.
PS, this is for the stats page for a game I am almost
done writing