Answered step by step
Verified Expert Solution
Link Copied!

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 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

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

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions