SQL query: strange SUM behaviour

后端 未结 0 1675
慢半拍i
慢半拍i 2021-01-08 01:13

I\'m running this query

SELECT events.*, venues.*,
    SUM(events.eventCAPACITY) AS capacity,
    SUM(CASE WHEN bookings.bookingAMOUNT is NULL THEN 0 ELSE boo         


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