0% found this document useful (0 votes)
4 views1 page

Create Employee Table

The document contains SQL commands to create a table named 'employees' with various attributes including employee_id, first_name, last_name, job_title, salary, reports_to, and office_id. It also includes a series of INSERT statements to populate the 'employees' table with data for multiple employees. The data includes employee details such as names, job titles, and salaries.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Create Employee Table

The document contains SQL commands to create a table named 'employees' with various attributes including employee_id, first_name, last_name, job_title, salary, reports_to, and office_id. It also includes a series of INSERT statements to populate the 'employees' table with data for multiple employees. The data includes employee details such as names, job titles, and salaries.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

create table employees ( employee_id int not null auto_increment primary key,

first_name varchar(255), last_name varchar(255), job_title varchar(255), salary


int,
reports_to int, office_id int );
select * from employees;

INSERT INTO EMPLOYEES


VALUES (9369, 'TONY', 'STARK', 'SOFTWARE ENGINEER', 7902, 9654,20),
(9499, 'TIM', 'ADOLF', 'SALESMAN', 7698, 9654, 30),
(9566, 'KIM', 'JARVIS', 'MANAGER', 7839, 9654, 20),
(9654, 'SAM', 'MILES', 'SALESMAN', 7698, 9654,30),
(9782, 'KEVIN', 'HILL', 'MANAGER', 7839, 9844,10),
(9788, 'CONNIE', 'SMITH', 'ANALYST', 7566, 9844, 20),
(9839, 'ALFRED', 'KINSLEY', 'PRESIDENT', 7566, 9844, 10),
(9844, 'PAUL', 'TIMOTHY', 'SALESMAN', 7698, 9844, 30),
(9876, 'JOHN', 'ASGHAR', 'SOFTWARE ENGINEER', 7788, 9876,20),
(9900, 'ROSE', 'SUMMERS', 'TECHNICAL LEAD', 7698, 9591,20),
(9902, 'ANDREW', 'FAULKNER', 'ANAYLYST', 7566, 9591,10),
(9934, 'KAREN', 'MATTHEWS', 'SOFTWARE ENGINEER', 9591, 9876, 20),
(9591, 'WENDY', 'SHAWN', 'SALESMAN', 7698, 9591, 30),
(9698, 'BELLA', 'SWAN', 'MANAGER', 7839, 9860,30),
(9777, 'MADII', 'HIMBURY', 'ANALYST', 7839, 9860,20),
(9860, 'ATHENA', 'WILSON', 'ANALYST', 7839, 9860,50),
(9861, 'JENNIFER', 'HUETTE', 'ANALYST', 7839, 9860,50);

You might also like