Question: Create the following table in your database using this code ( post the script directly in MySQL workbench window and then run ) : create
Create the following table in your database using this code post the script directly in
MySQL workbench window and then run:
create table Employee
empid INT NOT NULL AUTOINCREMENT,
name VARCHAR NOT NULL,
email VARCHAR NOT NULL,
address VARCHAR NOT NULL,
department VARCHAR NOT NULL,
PRIMARY KEY empid
;
INSERT INTO Employee name email, address, department
VALUES Julia Bunt", "buntj@email.com", Main
Street, New York, NY "Head of Dining Hall";
INSERT INTO Employee name email, address, department
VALUES Mary Finn", "finnm@email.com", th Street,
New York, NY "Helpdesk Admin";
INSERT INTO Employee name email, address, department
VALUES Abby Smith", "smitha@email.com", Main Street, New York, NY "Computer Scientist";
Note Employee ID is automatically generated, and you do not need to enter that field
when doing the insert see the INSERT statements above
Create a Java class that establishes a connection to your database and executes the
following queries:
a Insert a new Employee into the table
b Update an existing Employee in the table
c Select all Employees from the table.
d Delete an Employee from the table.
e Select an Employee from the table using an Employee, name from user input.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
