34,576
社区成员
发帖
与我相关
我的任务
分享
select curProcess=
isnull
((SELECT top 1 description FROM tba,tbb WHERE (LOADCELL_ID = @cellID) and processnumber=process_id
and status <>0
order by process_index desc),'')
SELECT aa,
(SELECT top 1 isnull(DESCRIPTION,'') FROM tba,tbb WHERE (LOADCELL_ID = @cellID) and processnumber=process_id
and status <>0
order by process_index DESC
) bb
FROM [Table]
SELECT top 1 isnull(DESCRIPTION,'') FROM tba,tbb WHERE (LOADCELL_ID = @cellID) and processnumber=process_id
and status <>0
order by process_index desc
select curProcess=
isnull
((SELECT top 1 description FROM tba,tbb WHERE (LOADCELL_ID = @cellID) and processnumber=process_id
and status <>0
order by process_index desc),'')
--try
isnull
((SELECT top 1 description FROM tba,tbb WHERE (LOADCELL_ID = @cellID) and processnumber=process_id
and status <>0
order by process_index desc ),'')
--try
isnull
(SELECT top 1 description FROM tba,tbb WHERE (LOADCELL_ID = @cellID) and processnumber=process_id
and status <>0
order by process_index desc ),'')