PtiTom

AdvWorks - AddRows - Increase size

Mar 16th, 2021 (edited)
710
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.39 KB | None | 0 0
  1. INSERT INTO [Production].[WorkOrder]
  2.        ([ProductID]
  3.        ,[OrderQty]
  4.        ,[ScrappedQty]
  5.        ,[StartDate]
  6.        ,[EndDate]
  7.        ,[DueDate]
  8.        ,[ScrapReasonID]
  9.        ,[ModifiedDate])
  10. SELECT TOP 1000
  11.     [ProductID]
  12.     ,[OrderQty]
  13.     ,[ScrappedQty]
  14.     ,GETDATE()
  15.     ,GETDATE() + 10
  16.     ,[DueDate]
  17.     ,[ScrapReasonID]
  18.     ,[ModifiedDate]
  19. FROM [Production].[WorkOrder]
Add Comment
Please, Sign In to add comment