0% found this document useful (0 votes)
28 views3 pages

Assignment JDBC

Uploaded by

Dnyanda Nemade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views3 pages

Assignment JDBC

Uploaded by

Dnyanda Nemade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Department of Computer Science and Applications

A.Y. 2023-2024.
Even Semester
==============================================================================
ASSSIGNMENT NUMBER -01
FYMCA- Div-A and Div-B
Topic- JDABC using GUI.
Date: 12/2/2024 Submission Date: 16/02/2022
==============================================================================

Q.1. Write a program to list the content of fields company id, order date, purchase amount and
status id in the table purchase, order (you have to create the structure and add the data in this
table)

Q.2.Develop a program with GUI to display an instance of text area and three button assume that
a table with fields namely book_name, author_name and publisher_name is available. write a
program in such a way that the book names will be listed within the text area when the first
button is pressed, the author names will be listed when the 2nd button is pressed, and the
publisher names will be listed when the 3rd button is pressed.

Q. 3. Write a program to update the sales column in the table copies by executing an update
command of the following form with the help of prepared statement object.
update coffees set sales=? where cof_name=?

Q.5. Write a program to extract the list of the coffees what from supplier acme, inc by considering a
query
Q.6. Design and implement web application for Customer Management
Create a customer

● Update a customer

● Delete a customer

● Retrieve a customer

● List of all customers

Q.7. Create a table called Employee, Accept all the details of Newly joined employees and
perform all the SQL operation

● Update a Employee

● Delete a Employee

● Retrieve a Employee

● List of all Employees

● Avoid duplicate entry of Employee.

● Display top 10 Employees who is having highest Salary


Q.8. The TPC-B benchmark implements a bank application. The application keeps track of
customers, their bank accounts and their deposits and withdrawals. Besides the account balance,
the application must also keep track of the teller balance and the branch office balance. If a
customer visits a local bank office and withdraws 1000 Euros from teller no. 1 in that office, the
application must deduct 1000 Euros from the customer’s account balance, teller no. 1’s balance
and the branch office balance.

The database consists of four tables, ACCOUNT, TELLER, BRANCH, and HISTORY. The
history table logs all deposits and withdrawals.

Each withdrawal and deposit forms one transaction which involves updating the account balance,
teller balance, branch balance, writing a log entry to the HISTORY table and querying to
determine the resulting customer account balance. In the benchmark, this transaction is
performed over and over again.

Q.9. Write a program to update the SALES column in the table COFFES by adding the weekly
amounts sold to the existing total.

Q.10. Write a program to design GUI for SUPPLIR table cosist of field Supplier_id,
Supplier_name, GST_Number, Quotation_Number, Purchase_Order_Number, Payment
_Amount, Order_Status, Payment_Status
Perform the following operation.

● Update Supplier

● Delete Supplier

● Show Previous Record of Particular Supplier-id

● List of all the Suppliers

● Avoid duplicate entry of Suppliers.

● Display the Supplier whose Payment is due cause of late order delivered.

You might also like