this is my table:
CREATE TABLE IF NOT EXISTS `multiplying` ( `id` int(11) NOT NULL AUTO_INCREMENT, `price` float NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ; -- -- Dumping data for table `multiplying` -- INSERT INTO `multiplying` (`id`, `price`) VALUES (1, 250), (2, 5), (3, 3), (4, 1), (5, 4.5);
so my numbers is: 250, 5, 3, 1, 4.5
for sum all numbers: 250 + 5 + 3 + 1 + 4.5
i use this query:
SELECT SUM(`price`) FROM `multiplying`
how to Multiplying all numbers?
Multiplying: 250 * 5 * 3 * 1 * 4.5
thank you so much


Sign In
Create Account


Back to top









