June 13, 2007 at 9:07 am
Select empid from tblemp.
Result set:
244
254
253
I want to check if each empid is either Accepted 'A'/ Rejected 'R'/Pending 'P' from tblstatus by doing some join like select statusid from tblstatus inner join tblemp on tblemp.empid=tblstatus.empid where empid=@empid.
I need the result set in a single column the following way
244-P
254-A
253-R
Pls let me know if this is possible.
June 13, 2007 at 9:27 am
June 13, 2007 at 11:19 am
Just curious... why do you need a single column?
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply