MySQL Forums
Forum List  »  Newbie

Re: Display sum of table in one line of text?
Posted by: Claude Martin
Date: March 29, 2005 08:24AM

no forget the thing with score+0 it doesnt work anyway

use this instead:

SELECT member, kills, deaths,
IF (deaths, ROUND( kills / deaths, 1 ) , kills) AS score
FROM `matthew`
ORDER BY score

http://animalliberation.tk http://veganismus.ch
http://maqi.de http://tierrechtskochbuch.de

Options: ReplyQuote


Subject
Written By
Posted
Re: Display sum of table in one line of text?
March 29, 2005 08:24AM


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.