Hi, I have been trying to work out a query where I do a join on the same table. I know how to do the join but I am not sure how to get the results I’m looking for. I have a table called contact in that table, below is a sample with data. There thousands of rows in that table and the record types are determined by the field record_type. There are only learners and employers as record types in the database.What I need to do is and update query that takes the employer record client_id and matches it to the learner client_ids and then updates those learner client_ids with the uniqueid of that employer.Thanks for any help: So the results from my example below will show:Uniqueid company firstname lastname client_id record_typeuid11111 Company a John S 111 Employeruid22222 Company a James S 111 Learneruid33333 Company a Bob S 111 Learneruid44444 Company a Tim S 111 LearnerThe results I need it to show are:Uniqueid company firstname lastname client_id record_typeuid11111 Company a John S 111 Employeruid22222 Company a James S uid11111 Learneruid33333 Company a Bob S uid11111 Learneruid44444 Company a Tim S uid11111 Learner/****** Object: Table [dbo].[contacts] ******/CREATE TABLE [dbo].[contacts] ( [uniqueid] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [company] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [firstname] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [lastname] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [client_id] [varchar] (25) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [record_type] [varchar] (25) COLLATE SQL_Latin1_General_CP1_CI_AS NULL) ON [PRIMARY]GOINSERT INTO contacts (uniqueid, company, firstname, lastname, client_id, record_type)VALUES ('uid11111','Company a','John','S','111','Employer')INSERT INTO contacts (uniqueid, company, firstname, lastname, client_id, record_type)VALUES ('uid22222','Company b','James','T','111','Learner')INSERT INTO contacts (uniqueid, company, firstname, lastname, client_id, record_type)VALUES ('uid33333','Company c','Bob','K','111','Learner')INSERT INTO contacts (uniqueid, company, firstname, lastname, client_id, record_type)VALUES ('uid44444','Company d','Tim','Y','111','Learner')