I have a table(itemid, itemcode,itemname,unit,partno,qty1,qty2,price) named item
I want to " select itemname,partno,unit,sum(qty1+qty2),price from item where itemcode='###'". but it will not work .plz help?
Sum of two columns
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Ravi K Kashyap26 reputationPosted Jun 26, 2011, 9:36 PM EDT
USE THIS
SELECT
itemname,partno,unit,qty1+qty2 AS [TOTAL QUANTITY],price FROM ITEM WHERE ITEMCODE = '###'Sandeep ShekhawatRank #2,439 · 577 reputationPosted Jun 26, 2011, 9:32 PM EDT
Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Jun 26, 2011, 9:57 PM EDT
Suthish NairRank #92 · 22.8K reputationPosted Jun 27, 2011, 4:38 AM EDT