Ashutosh Samantaray Blogger

Friday, 2 March 2018

Temp Table

Create Table #MyTempTable (
    EmployeeID int,
    Name varchar(100)
);

Insert Into #MyTempTable SELECT dbo.Employee.Id as EmployeeID, dbo.Table_1.Name as Name
FROM   dbo.Employee INNER JOIN
             dbo.Table_1 ON dbo.Employee.Id = dbo.Table_1.id

Select EmployeeID, Name from #MyTempTable

Drop Table #MyTempTable
Posted by Ashutosh at 06:55 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Comments (Atom)

Blog Archive

  • ►  2020 (5)
    • ►  June (3)
    • ►  April (2)
  • ►  2019 (4)
    • ►  August (4)
  • ▼  2018 (4)
    • ►  August (1)
    • ►  April (1)
    • ▼  March (1)
      • Temp Table
    • ►  January (1)
  • ►  2017 (3)
    • ►  September (2)
    • ►  March (1)
  • ►  2016 (8)
    • ►  December (1)
    • ►  October (1)
    • ►  July (1)
    • ►  June (2)
    • ►  May (2)
    • ►  April (1)
  • ►  2015 (5)
    • ►  July (1)
    • ►  June (2)
    • ►  May (1)
    • ►  March (1)
  • ►  2014 (8)
    • ►  October (1)
    • ►  July (1)
    • ►  June (3)
    • ►  May (3)
  • ►  2013 (54)
    • ►  December (3)
    • ►  November (1)
    • ►  October (3)
    • ►  August (4)
    • ►  July (11)
    • ►  June (6)
    • ►  May (2)
    • ►  April (21)
    • ►  March (3)

About Me

Ashutosh
View my complete profile
Simple theme. Powered by Blogger.