I am trying to normalize a data set based on the minimum values of certain columns.
I figured out that I can get the minimum value using a query like SELECT least(min(colOne),min(colTwo)) FROM myTable Is there a way I can do the normalization in a single query? Ideally, something like... SELECT colOne-least(min(colOne),min(colTwo)) FROM myTable I realize that that does not work and maybe I need some kind of join. Is it possible to apply that subtraction to every row of the result set when it is returned? (instead of normalizing after I retrieve the result) thx --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php