Please help me to solve this.
Create the following table in your database using this code (post the script directly in MySQL Workbench window and then run):
create table Employee (
emp_id INT NOT NULL AUTO_INCREMENT,
emp_name VARCHAR(100) NOT NULL,
emp_email VARCHAR(40) NOT NULL,
emp_address VARCHAR(40) NOT NULL,
emp_position VARCHAR(40) NOT NULL,
PRIMARY KEY (emp_id)
);
INSERT INTO Employee (emp_name, emp_email, emp_address, emp_position) VALUES ('Mary Smith', 'smichmescrose.edu', '1234 Main Street, Albany, NY', 'Director IT');
INSERT INTO Employee (emp_name, emp_email, emp_address, emp_position) VALUES ('John Pat', 'patjescrose.edu', '12 Allen Street, Albany, NY', 'Helpdesk Tech');
INSERT INTO Employee (emp_name, emp_email, emp_address, emp_position) VALUES ('Tony Gillian', 'gillinatescrose.edu', '77 Manning Street, Albany, NY', 'Network Analyst');
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:
1. Insert a new Employee into the table
2. Update an existing Employee in the table
3. Select all Employees from the table
4. Delete an Employee from the table
5. Select an Employee from the table using an Employee name from user input
Your code should output the contents of the database table after every SQL execution. Take a snapshot (screenshot) of the contents of the database table after every output (from the console or from the Workbench).
Submit the following documents in a zipped folder labeled "yourlastname_HWKZ.zip":
1. Java code in the proper Java file (.java)
2. Snapshots of the contents of your database table.