Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Sams Teach Yourself Beginning Databases In 24 Hours

Authors: Ryan Stephens, Ron Plew

1st Edition

067232492X, 978-0672324925

More Books

Students also viewed these Databases questions