SUM COLUMN RESULTS 0 GROUP BY IN SUBQUERIES mysql

前端 未结 0 1456
青春惊慌失措
青春惊慌失措 2021-02-09 08:50
select cs.prod_id, 
    cs.product,
    cs.barcode, 
    COALESCE(total,0) as TOTALQTY, 
    COALESCE(sold,0) as SOLD, 
    COALESCE(total-sold,0) as RMNG  
from product         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题