Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Java, create code to perform the two queries below on the CSV file directly. I have already completed the two queries using SQL but

In Java, create code to perform the two queries below on the CSV file directly. I have already completed the two queries using SQL but for this specific problem I must use solely java. The goal is to create code in java to

Query 1: List people who work in the same department as Adcock Sr Gerald W- himself excluded.

Query 2: List all the departments and total number of employees working in that department.

Excel file: https://drive.google.com/file/d/0B6wUR2OjN6GcZldwN1YzMlo2YWs/view?usp=sharing

SQL Code

Query 1:

SELECT FULL_NAME FROM Employees WHERE DEPARTMENT = DTS AND FULL_NAME NOT IN( SELECT FULL_NAME FROM Employees WHERE FULL_NAME = Adcock Sr Gerald W);

Query 2:

SELECT DEPARTMENT, COUNT(FULL_NAME) AS NUM_OF_EMPLOYEES FROM Employees GROUP BY DEPARTMENT;

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions