ขอบคุณครับ แต่ SELECT SUM ฟิลด์มันต้องเป็นตัวเลขอ่ะครับ อันนี้เป็น string มีวิธีแปลงไหมครับ
[Err] ERROR: function sum(boolean) does not exist
LINE 1: SELECT SUM(os = 'Android')
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.