Created
February 29, 2016 08:05
-
-
Save radityopw/58799a75cf48a9709667 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE AdventureWorks2012; | |
GO | |
CREATE TABLE dbo.MyEmployees | |
( | |
EmployeeID smallint NOT NULL, | |
FirstName nvarchar(30) NOT NULL, | |
LastName nvarchar(40) NOT NULL, | |
Title nvarchar(50) NOT NULL, | |
DeptID smallint NOT NULL, | |
ManagerID int NULL, | |
CONSTRAINT PK_EmployeeID PRIMARY KEY CLUSTERED (EmployeeID ASC) | |
); | |
-- Populate the table with values. | |
INSERT INTO dbo.MyEmployees VALUES | |
(1, N'Ken', N'Sánchez', N'Chief Executive Officer',16,NULL) | |
,(273, N'Brian', N'Welcker', N'Vice President of Sales',3,1) | |
,(274, N'Stephen', N'Jiang', N'North American Sales Manager',3,273) | |
,(275, N'Michael', N'Blythe', N'Sales Representative',3,274) | |
,(276, N'Linda', N'Mitchell', N'Sales Representative',3,274) | |
,(285, N'Syed', N'Abbas', N'Pacific Sales Manager',3,273) | |
,(286, N'Lynn', N'Tsoflias', N'Sales Representative',3,285) | |
,(16, N'David',N'Bradley', N'Marketing Manager', 4, 273) | |
,(23, N'Mary', N'Gibson', N'Marketing Specialist', 4, 16); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment