Table1
IssNo Qty
120 10
Table2
IssNo Qty
120 20
124 30
use this also :
From Table1-> substring(Table1.IssNo,1,2),at end I need to add "%" (eg) 12%
Now I need to check this like condition in table2 For Qty..And i need to add all Qty of 12% (eg) 20 and 30 will come..after SUM=> 50
My query is Select Name,id,IssNo,address,Qty from Table1(here Qty alone should be sum of Table2)
Expected o/p
IssNo Qty
120 50(Sum of Qty from Table2)