Answers for "sql sum of rows with same id"

SQL
0

How to take sum of column with same id and different table in SQL?

select t2.szCustId
     , t2.bAllowToCredit
     , sum(t1.decCreditLimit) as decCreditLimit 
from table1 t1
join table2 t2 on t1.szCustId = t2.szCustId
group by t2.szCustId
       , t2.bAllowToCredit
Posted by: Guest on September-05-2021
0

SQL add a totals of differemt rows of the same id

SELECT ID, NAME, SUM([NO]) 
FROM Your_TableName
GROUP BY ID, NAME;
Posted by: Guest on September-05-2021

Code answers related to "sql sum of rows with same id"

Code answers related to "SQL"

Browse Popular Code Answers by Language