早教吧作业答案频道 -->英语-->
ISNULL(字段,0)用后无变化selectdistinctStudentName,StudentNumber,[NumberofCompletedExercise],[AverageTime],StudentIDfrom#PersonListleftjoin(selectPersonID,ISNULL(count(Completed),0)as[NumberofCompletedExercise]fromUserTransactio
题目详情
ISNULL(字段,0) 用后无变化
select distinct
StudentName,
StudentNumber,
[Number of Completed Exercise],
[Average Time],
StudentID
from #PersonList
left join (select PersonID,ISNULL(count(Completed),0) as [Number of Completed Exercise]
from UserTransaction.UserExercises
group by PersonID)M
on M.PersonID=#PersonList.StudentID
left join (select PersonID,UserExerciseID from UserTransaction.UserExercises) Q
on Q.PersonID=#PersonList.StudentID
left join (select UserExerciseID,ISNULL(avg(seconds),'') as [Average Time]
from UserTransaction.UserExerciseTime
group by UserExerciseID)N
on N.UserExerciseID=Q.UserExerciseID
order by StudentNumber
END
GO
运行后空值没有变为0,
select distinct
StudentName,
StudentNumber,
[Number of Completed Exercise],
[Average Time],
StudentID
from #PersonList
left join (select PersonID,ISNULL(count(Completed),0) as [Number of Completed Exercise]
from UserTransaction.UserExercises
group by PersonID)M
on M.PersonID=#PersonList.StudentID
left join (select PersonID,UserExerciseID from UserTransaction.UserExercises) Q
on Q.PersonID=#PersonList.StudentID
left join (select UserExerciseID,ISNULL(avg(seconds),'') as [Average Time]
from UserTransaction.UserExerciseTime
group by UserExerciseID)N
on N.UserExerciseID=Q.UserExerciseID
order by StudentNumber
END
GO
运行后空值没有变为0,
▼优质解答
答案和解析
看!你们没看见一条迷人的大腿在前进!
微酸,我感觉到
润的黎明,蓝黑水在进行蓝黑的溶化.
你有福了,无人.
死一样沉寂.我把蜘蛛网挂在灯罩上.
草原无边海洋无际哈哈
微酸,我感觉到
润的黎明,蓝黑水在进行蓝黑的溶化.
你有福了,无人.
死一样沉寂.我把蜘蛛网挂在灯罩上.
草原无边海洋无际哈哈
看了 ISNULL(字段,0)用后...的网友还看了以下:
讨论:关于如何求卷积x(t)*h(-t)的积分表达式?以前信号与系统里学过了x(t)*h(t)的表 2020-06-06 …
克每立方厘米和千克每立方分米的进率还有1.1g/cm³=?t/m³2.1kg/m³=?kg/dm³ 2020-06-08 …
j+j+t+m=23j+t+t+m=24j+t++m+m=25j=?t=?m=? 2020-06-12 …
由代数式的乘法法则类比推导向量的数量积的运算法则:①m•n=n•m类比得到a•b=b•a;②(m+ 2020-06-27 …
f(x)=1/3x^3-x-1.f(x)在t≤x≤t+3上最大值为M(t),最小值为m(t)记g( 2020-07-13 …
若存在t∈R与正数m,使F(t-m)=F(t+m)成立,则称“函数F(x)在x=t处存在距离为2m 2020-07-26 …
帮忙求个递推公式,从兔子繁殖问题衍生而来.m(0)=1,m(1)=1,m(2)=1,m(3)=2, 2020-08-01 …
初高中衔接书上的几道比例线段的题,a/x=t/t+m,a/b=t/t+m+n联立两式,消去t,得x 2020-08-02 …
已知质点运动方程为r(t)=x(t)i+y(t)j其中x(t)=(m/s)t+2m,y(t)=(1/ 2020-11-01 …
探究加速度与力质量的关系实验为什么m远小于m浪了一个寒假忘的差不多了对小车:T=Ma得到a=T/M, 2020-11-01 …