Question: Create a new program called MyJDBC . java or MySQLQuestion.py . Note: With Python to have multiple cursors on a connection, set the cursor to
Create a new program called MyJDBCjava or MySQLQuestion.py Note: With Python to have multiple cursors on a connection, set the cursor to buffering like this: cursor cnxcursorbufferedTrue Your program should be able to do this: List each employee that is a supervisor. Sort the list of supervisors by name. Under each supervisor, list the employees that heshe directly supervises sorted by decreasing salary. The result of your program should look like this: Supervisor: B Casey M Smith, Supervisor: J Jones B Casey, R Davis, Supervisor: L Chu J Miller, Supervisor: M Smith J Doe, Supervisor: R Davis A Lee, L Chu, Answer: Java answer file, Python answer file Part #: Microsoft SQL Server Java Setup Make sure the Microsoft SQL Server JDBC driver is in your classpath. This can be done in VSCode in the Java Project tab. If the workson database was not automatically created, you must connect to SQL Server using SQuirreL or command line to create the workson database. Download the sample file. Save this file in your cosclab folder that you just created. These are the modifications you must make to get the program working: Change Line to: String url jdbc:sqlserver:localhost;DatabaseNameworkson;TrustServerCertificateTrue"; Change Line to: String uid sa; Change Line to: String pw "put password here";
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
