Viewing 3 posts - 1 through 3 (of 3 total)
Try
select *, (select count(*) + 1 from tbl t where t.time < m.time) as Rank from tbl m where name = 'xxxx'
or
select m.name, count(*) + 1 as Rank from tbl m join tbl t on t.time < m.time where m.name...
February 9, 2005 at 12:48 pm
That query with the where clause will return one line. However, also note that he requests
People should be able to submit their times and they will show up in a...
February 8, 2005 at 12:00 pm
select *, (select count(*) from tbl t where t.time <= m.time) as Rank from tbl m where name = 'xxxx'
or
select m.name, count(*) as Rank from tbl m join tbl t on t.time <= m.time where m.name = 'xxxx' group...
February 8, 2005 at 11:45 am
Viewing 3 posts - 1 through 3 (of 3 total)