Get all rack according to shelf but books should not contain any position
select ri.RackID,ri.RackNo from RackInfo ri where ri.shelfID = 5
group by ri.RackID having (select Count(*) from
fnGetPostionByRack(5,ri.RackNo,1)) > 0
so given some error any one can help me
Column 'RackInfo.RackNo' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
so given some error any one can help me
Column 'RackInfo.RackNo' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
Comments
Post a Comment