UPDATE From SubQuery

UPDATE [TargetTable]
SET 
	[TargetTable].First = [OtherTable].Notes, 
	[TargetTable].Last = [OtherTable].Notes
FROM [PatientProfile] AS [TargetTable]
INNER JOIN [MIKPatientVisit] AS [OtherTable]
ON [OtherTable].PatientProfileId = [TargetTable].[PatientProfileId]

INSERT INTO

INSERT INTO SampleTable 
(ID, Col1)
VALUES 
(1, 'One'), 
(2, 'Two'), 
(3, 'Three');
INSERT INTO SampleTable 
(ID, Col1)
SELECT MyId, MyColumn)
FROM [MyTable]

SELECT INTO

SELECT * 
INTO MyBicycles
FROM Production.Product
WHERE ProductNumber LIKE 'BK%';

SCOPE_IDENTITY(), IDENT_CURRENT, @@IDENTITY

SELECT 
	SCOPE_IDENTITY() AS [SCOPE_IDENTITY],
	@@IDENTITY AS [@@IDENTITY]
	IDENT_CURRENT('Production.Product') AS [IDENT_CURRENT];