I Filter the My (TableA - fields app_id, user_id, points, tr_type, description) using Below Query
select app_id, user_id,sum(case when tr_type = 'add' then points when tr_type = 'sub' then - points end) as points
from TableA
group by app_id, user_id;
In Resuts:
app_id  user_id  points
1          1a      10
1          1b      12
1          1c      3
Now I have another table (TableB)
app_id   user_id   points  desc
1          1a      0       text
1          1b      0       tet
1          1c      0       txt
now I need fast replacement query to update TableB point values which is groupby from TableA
                        
You can use a inner join with subqiery for group by values