因為你只要是89分以下都符合第二個elif <=89不會往第三個之後的elif繼續判斷 你第二個之後的elif條件應該統一改用 >= 80,>...
這裡有
改這樣? select new { c.id, c.tw, id2 = o.id, o.name, o.company_...