Skip to content

Commit

Permalink
Create SQL Basics Create Table and Insert Into
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTheAnalyst authored Apr 26, 2020
1 parent 17cb0dc commit 7590d97
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions SQL Basics Create Table and Insert Into
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@

Table 1 Query:
Create Table EmployeeDemographics
(EmployeeID int,
FirstName varchar(50),
LastName varchar(50),
Age int,
Gender varchar(50)
)

Table 2 Query:
Create Table EmployeeSalary
(EmployeeID int,
JobTitle varchar(50),
Salary int
)



Table 1 Insert:
Insert into EmployeeDemographics VALUES
(1001, 'Jim', 'Halpert', 30, 'Male'),
(1002, 'Pam', 'Beasley', 30, 'Female'),
(1003, 'Dwight', 'Schrute', 29, 'Male'),
(1004, 'Angela', 'Martin', 31, 'Female'),
(1005, 'Toby', 'Flenderson', 32, 'Male'),
(1006, 'Michael', 'Scott', 35, 'Male'),
(1007, 'Meredith', 'Palmer', 32, 'Female'),
(1008, 'Stanley', 'Hudson', 38, 'Male'),
(1009, 'Kevin', 'Malone', 31, 'Male')

Table 2 Insert:
Insert Into EmployeeSalary VALUES
(1001, 'Salesman', 45000),
(1002, 'Receptionist', 36000),
(1003, 'Salesman', 63000),
(1004, 'Accountant', 47000),
(1005, 'HR', 50000),
(1006, 'Regional Manager', 65000),
(1007, 'Supplier Relations', 41000),
(1008, 'Salesman', 48000),
(1009, 'Accountant', 42000)

0 comments on commit 7590d97

Please sign in to comment.