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

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

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

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