table1 user_info
table2 study_score create or replace view stuscore as 
select max(ui.id) as user_id,
avg(case when '语文' then sc.yuwen end) as ywscore,
avg(case when '数学'then sc.数学 end) as sxscore
from user_info ui,study_score sc where ui.id=sc.user_id;学生考了多次试,求出所有考试的某学科的平均成绩,现在想要将该平均成绩设置一个默认值“0”(如:该学生在多次考试中都没有考"语文",那么ywscore 的值就是is null,但是我想将它设置为 0 ),不知道怎么设置.....
大家帮帮忙......