All current r1s ORDER BY Timestamp LIMIT 1
SELECT *, dense_rank() OVER (PARTITION BY Map ORDER BY TIME) as rank FROM record_race WHERE rank=1
?!_Vergeboy_!
and aaa on 2013-10-08, 17:55:04> SELECT r1s.map, name, timestamp, time FROM record_race AS ranks INNER JOIN (SELECT map, MIN(time) AS mintime FROM record_race GROUP BY map) AS r1s ON ranks.map = r1s.map AND ranks.time = r1s.mintime ORDER BY timestamp LIMIT 10;
+------------------+----------------+---------------------+---------+
| map | name | timestamp | time |
+------------------+----------------+---------------------+---------+
| Difficult 1.3 | !_Vergeboy_! | 2013-10-08 17:55:04 | 738.3 |
| Difficult 1.3 | aaa | 2013-10-08 17:55:04 | 738.3 |
| SpaceIsKey | Shyr | 2013-11-22 00:39:50 | 176.26 |
| The Cursed Night | (1)Ninja_Valik | 2014-04-09 20:55:25 | 2376.06 |
| The Cursed Night | Ninja_Valik | 2014-04-09 20:55:25 | 2376.06 |
| DeathClaw | - Jogginghose | 2014-05-12 16:33:23 | 1623.2 |
| DeathClaw | shoxX | 2014-05-12 16:33:23 | 1623.2 |
| Orange 1 | artkis | 2014-07-21 04:24:12 | 109.06 |
| The Problem | Virus2k gay | 2014-07-27 17:45:04 | 222.66 |
| WEEDS | Cireme | 2014-07-27 22:07:39 | 182.9 |
+------------------+----------------+---------------------+---------+
==13035== 14 errors in context 4 of 203:
==13035== Conditional jump or move depends on uninitialised value(s)
==13035== at 0x337F4D: void sort_bubble<plain_range_sorted<CMenus::CDemoItem> >(plain_range_sorted<CMenus::CDemoItem>) (algorithm.h:96)
==13035== by 0x337D2D: void sort<plain_range_sorted<CMenus::CDemoItem> >(plain_range_sorted<CMenus::CDemoItem>) (algorithm.h:114)
==13035== by 0x337A9F: sorted_array<CMenus::CDemoItem, allocator_default<CMenus::CDemoItem> >::sort_range() (sorted_array.h:33)
==13035== by 0x333C79: CMenus::DemolistPopulate() (menus_demo.cpp:767)
==13035== by 0x33408E: CMenus::RenderDemoList(CUIRect) (menus_demo.cpp:825)
==13035== by 0x31EFFB: CMenus::Render() (menus.cpp:1174)
==13035== by 0x32428B: CMenus::OnRender() (menus.cpp:2157)
==13035== by 0x371CFC: CGameClient::OnRender() (gameclient.cpp:644)
==13035== by 0x2742EA: CClient::Render() (client.cpp:1138)
==13035== by 0x27CC24: CClient::Run() (client.cpp:3266)
==13035== by 0x28269C: main (client.cpp:4305)
==13035== Uninitialised value was created by a stack allocation
==13035== at 0x3339D0: CMenus::DemolistFetchCallback(char const*, long, int, int, void*) (menus_demo.cpp:727)
==13035==
sometimes causes the demo page to break104 10 0x564ca161fb60
105 10 0x564ca161fb60
104 10 0x564ca161fb60
105 10 0x564ca161fb60