sure:
declare @dealID int
set @dealID = 1413
declare @rep nvarchar(20)
set @rep = (select rep from crmprod_01.dbo.p_deals where dealID = @dealID)
declare @toEmail nvarchar(100)
set @toEmail = ISNULL((select nullif(useremail, '') from r_users where username= @rep), '
[email protected]')