Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started