Everythin looks ok, maybe one of other columns has nulls.
But anyway here is the alternative to a case
update r
set pkg_name = pkg_s.pkg_name,
Current_Seats = isnull(r.current_seats,'')
from #Results as r join
#Pkg_Seats as pkg_s
on r.customer_no = pkg_s.customer_no
and r.order_no = pkg_s.order_no
where r.customer_no = @customer_no
Main Topics
Browse All Topics





by: pivarPosted on 2009-10-23 at 13:05:46ID: 25648021
Hi,
char(10),p kg_s.seat_ num) seat_num)
Try this instead
r.Current_Seats =
case when r.current_seats is null then pkg_s.seat_row+convert(var
else r.current_seats + ',' + pkg_s.seat_row + convert(varchar(10),pkg_s.
end
/peter