MySQL Forums
Forum List  »  MySQL for Excel

Re: Calculating fields
Posted by: Dave Niezabitowski
Date: March 10, 2012 10:18PM

Here is what I came up with:
SELECT * FROM events,results WHERE events.eventid = results.event_id
 INSERT INTO RESULTS VALUES POINTS_AWARDED,
    (ROUND(IF(RESULTS.FINISH_POS-EVENTS.ATTENDANCE*0.3<0.51,15*(SQRT(SQRT(EVENTS.ATTENDANCE)*(EVENTS.ATTENDANCE-6)/RESULTS.FINISH_POSITION)),20)+20) )

there is still something wrong i think

Options: ReplyQuote


Subject
Views
Written By
Posted
2476
March 09, 2012 12:40AM
1441
March 09, 2012 01:40AM
1424
March 09, 2012 10:55AM
1359
March 09, 2012 11:15AM
1475
March 10, 2012 10:07PM
1448
March 09, 2012 12:08PM
1347
March 10, 2012 09:58PM
Re: Calculating fields
1295
March 10, 2012 10:18PM
1432
March 11, 2012 02:27AM
1499
March 11, 2012 10:50AM
1386
March 09, 2012 07:42AM
1402
March 11, 2012 12:27PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.