RE: totalizing of Rows please help!!

2006-04-24 Thread Nicolas Verhaeghe
i have three Values in each row of my MySQL database, im needing to sum them in the table as they are displayed per Row ?? how do i do this ? Projectname Elecremain Controlremainotherremain Project1 2300 1600 250

Re: totalizing of Rows please help!!

2006-04-24 Thread Peter Brawley
Brian E Boothe wrote: i have three Values in each row of my MySQL database, im needing to sum them in the table as they are displayed per Row ?? how do i do this ? As Eugene said, VARCHAR values don't sum, since they are not numeric. Either cast the column values you wish sums of to a numeri

Re: totalizing of Rows please help!!SQL Dump

2006-04-24 Thread Eugene Kosov
Please answer to list next time. Good. Now, what is your "Elecremain", "Controlremain", "otherremain"? How should they be calculated... P.S.: Why don't you give a try to some numerical data types? ;) To use varchar everythere isn't a right way I think. Brian E Boothe wrote: my database st

Re: totalizing of Rows please help!!

2006-04-24 Thread Peter Brawley
Brian, i have three Values in each row of my MySQL database, im needing to sum them in the table as they are displayed per Row ?? how do i do this ? Projectname Elecremain Controlremain otherremain Project1 2300 1600 25

Re: totalizing of Rows please help!!

2006-04-24 Thread Eugene Kosov
Hi, Brian! First of all I think next time you should better attach your database structure. It'll be much easier to understand your problem if you will... Maybe you're asking for something like this: SELECT project_name, elecremain, controlremain, otherremain, elecremain + controlremain + ot

totalizing of Rows please help!!

2006-04-24 Thread Brian E Boothe
i have three Values in each row of my MySQL database, im needing to sum them in the table as they are displayed per Row ?? how do i do this ? Projectname Elecremain Controlremainotherremain Project1 2300 1600 250