postgresql - ranking a data set in SQL, excel or tableau? -


i have data set filled race drivers recording of each of lap times 10 laps. request not show lap times rankings each lap ( ex. jeff gordon lap 1: 1st, lap 2: 5th, lap 3: 9th, lap 4: 3rd, etc)

i have pgadmin, tableau , excel done. sound direction appreciated.

you didn't give detail tables, like:

select driver_name,        lap_number,         dense_rank() on (partition lap_number order lap_time) rank_in_lap,        dense_rank() on (order lap_time) overall_rank lap_times order driver_name, lap_number; 

more details window functions in manual:


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -