Whats up David. Use a CASE like so to acheive this:set nocount ondeclare @tUsers table (myID int, fName varchar(25), lName varchar(25), fullName varchar(25))insert into @tUsers select 1, 'Nathan', 'Skerl', 'Nathan L Skerl' union select 2, 'Adam', 'Skerl', 'Adam J Skerl'declare @tDetails table (detailID int, myID int)insert into @tDetails select 1, 1 union select 2, 1SELECT myID, fName, lName, fullName, case when(select count(*) from @tDetails where myID = t.myID) > 0 then 1 else 0 end as 'bHasRec'FROM @tUsers t
Nathan Skerl