CREATE TABLE #tbl_Referral
(
User_idT int NULL,
LastName nvarchar (50) Null,
FirstName nvarchar(50) NULL,
Gender nvarchar(50) NULL,
DOB datetime,
Date_Referral datetime,
Status nvarchar(50) NULL,
Location nvarchar(50) NULL
)
Insert into #tbl_Referral( User_idT, LastName, FirstName, Gender,
DOB, Date_Referral, Status)
(Select ID, LastName, FirstName, Gender, DateOfBirth,
DateOfReferral, Status
FROM tbl_Referral )
|