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 MyJDBC.java or MySQLQuestion.py. Note: With Python to have multiple cursors on a connection, set the cursor to buffering like this: cursor = cnx.cursor(buffered=True). 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 he/she directly supervises sorted by decreasing salary. The result of your program should look like this: Supervisor: B. Casey M. Smith, 50000.00 Supervisor: J. Jones B. Casey, 50000.00 R. Davis, 40000.00 Supervisor: L. Chu J. Miller, 20000.00 Supervisor: M. Smith J. Doe, 30000.00 Supervisor: R. Davis A. Lee, 40000.00 L. Chu, 30000.00 Answer: Java answer file, Python answer file Part #2: 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 cosc304_lab6 folder that you just created. These are the modifications you must make to get the program working: Change Line 5 to: String url ="jdbc:sqlserver://localhost;DatabaseName=workson;TrustServerCertificate=True"; Change Line 6 to: String uid ="sa"; Change Line 7 to: String pw = "put password here";

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!