This query is for a race taking place over 3 days.
The query adds up 100% and i can get the total times of athletes.
My only problem i have, is to sort the race times depending on whether a competitor finish the race or not.
If all the athletes are suppose to complete 3 days, and one athlete only manage to finish 2 of the 3, then that person's finish position in the race, should be last .
In the attached screen pic, it can be seen that RaceNo 3 (Ian Adams) did not complete day3time (third day of the race.)His time is therefore actually the worst of the 3 athletes, but now the shortest as he only did 2 days.
Looking at the Totaltime for the 3 athletes, RaceNo=2 (Shawn) has the best totaltime = 01:30(shortest for the 3 days), followed by RaceNo1 =(Michael) in 01.31 and last is RaceNo3 because he failed to do Day3time.
My question: how can i sort RaceNo 2 and 3 in ascending order, and if you have a "blank time" for an athlete, then that name appear last in the query?
I also include the actual query problem
pls help
I have changed the tables but its still the same problem.
What i did not mention is that there can be up to 8 different times per RaceNo
If any Raceno (athlete) did not finish one or more of the "laps" , then that athlete's time should be at the bottom when the query is done.
I attached a new screen pic and adjusted database for 8 laps
My problem:
Only RaceNo 1 and 2 finished all the laps ie 8 in this case.
RaceNo 3 and 4 did not finish all 8.
I must sort on RaceNo 1 and 2 to get the overall positions in the race and RaceNo3 and 4 must appear after RaceNo 1& 2 in no specific order.
In the above example, RaceNo = 2 time 00:1:14 ( is the winner and should be on top followed by RaceNo =1 (00:1:18) etc
i wish this was a straight forward sort but these blank times create complications
in this instance the athlete has to complete 8 laps, but because of injury etc they may end up doing perhaps 6 only.
I have to sort those that do finish by their total time.
Why not add some amount of time, say 1 hour or 1 day, instead of 0 for any lap not completed. When you sort from lowest (fastest) time to highest(slowest), the times with 1 day added will be at the bottom of the list.
This will also rank those who only participated on some days. For your 3 day event, if an athelete competed 2 days, their time would be faster than someone who only competed 1 day, even if their 1 day time were slower than the average of the 2 day times.
I need to see a fully functional RT_XCAllLapsQ2 Query even if there are errors and the Records are not in the correct sequence. You latest Attachment does not show this.
Sort the "blank" fields with this code (ascending), where 1 is when you have a time and 10 if its blank. The athletes that finished all the required laps are at the top and vice versa
Hi,
I am attempting to write a complex query to group sets of data. I have my
query working correctly, but i ran into a problem with sorting.
I want to sort my query by a string field.
Is...
Hi,
I have been seing a weird problem with db2look tool in db2 8.2 on
Windows 2000 platform.
When i spool the DDL using db2look, it spools the DDL in the ascending
order of database objects...
Hi all you C boffins:
I need to sort a vector of doubles is ascending order. Qsort will
return the sorted vector, but I need a vector of the indices of the
sorted vector, not the actual sorted...
Hi,
I have an asp.net script that connects to MS Access database and displays
data in a table. For some reason I am do not know how to display data say in
ascending order of column1.
I have...
Hi there,
I'm not sure how to select the last 3 items in ascending order.
This does the trick in descending order:
select * from user_menu_main
where deleted = 0 and hidden = 0
order by...
Hello, consider the following assignment and my code for it:
/*
Write a program that does the following:
* Integer numbers shall be read from a textfile and stored in a
std::vector.
The name...
sir,
i have a table named tblexam.
i want to sort the whole table records according to the field subcode in ascending order.
docmd.runsql "update tblexam order by subcode asc"
But it is...
Hey,
I have a function that compares 2 arrays with 6 numbers in each and outputs the matching numbers. I have written a function that does this but I need to output the numbers in ascending order...
Hi,
I'm trying to overcome a situation whereby I have to search through 4-5 columns and produce the results with an order by according to the values matched in these columns.
Example:
My...
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...