Question: Write java code using JDBC to do the following: 1 . Create a database and a table Student with the following details: Name, BITSID, Sub

Write java code using JDBC to do the following:
1. Create a database and a table Student with the following details: Name, BITSID, Sub1_marks, Sub2_marks, Sub3_marks and Sub4_marks, total, average and result.
2. Insert data only for the following columns: Name, BITSID, Sub1_marks, Sub2_marks, Sub3_marks and Sub4_marks
3. Fetch the result into local variables in java using the result set. Calculate the total, average and result (Pass if all marks >=50).
4. Update the Student table to reflect the total, average and result.
5. Fetch the updated data and display the students mark sheet in a neat format for all the students.

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!