求救
我想請問一下在sql中從一個表格中取出數據然后再除以從另一個表格 中提出來的數據從而算出良率,
(cast(substring(s.sn_st_porp,5,1) when 'F' then count(s.sn_no) else 0 )AS VARchar(10))/((substring(w.sn_st_prop,4,1) when 'A' then count(w.sn_st_prop) else 0 ) AS VARchar(10)) *100 +'%' as ok
請問這條語句哪里錯了