1: 2: 3: 4: 5:
DECLARE @UserName varchar(30) SET @UserName = 'SKIES\irodriguez' --SKIES\Ksteele Select CustomerNo from AR_Customer AR inner join UserSecurity US on AR.UserSecurityKey >= US.Security_ID and US.UserName = @UserName