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

Table. Column Name Type Empno NUMBER (4) Ename VARCHAR2 (20) Designation VARCHAR2 (20) Joindate Date SAL NUMBER (9,2)

This document outlines a Java lab assignment involving database operations. It includes: 1. Creating an EMP table with columns for employee number, name, designation, join date, and salary. 2. Performing operations like insertion, deletion, updating, and selection on tables EMP and STUDENT using JDBC. 3. Designing an applet program to allow entry, deletion, updating and viewing of employee details in another EMP table, as well as displaying employees with salaries over $50,000 or incrementing salaries under $10,000. 4. Creating a BOOK table and designing a frame to allow database operations on it.

Uploaded by

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

Table. Column Name Type Empno NUMBER (4) Ename VARCHAR2 (20) Designation VARCHAR2 (20) Joindate Date SAL NUMBER (9,2)

This document outlines a Java lab assignment involving database operations. It includes: 1. Creating an EMP table with columns for employee number, name, designation, join date, and salary. 2. Performing operations like insertion, deletion, updating, and selection on tables EMP and STUDENT using JDBC. 3. Designing an applet program to allow entry, deletion, updating and viewing of employee details in another EMP table, as well as displaying employees with salaries over $50,000 or incrementing salaries under $10,000. 4. Creating a BOOK table and designing a frame to allow database operations on it.

Uploaded by

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

JAVA Lab Cycle 6

1. Write a java application program to create Emp table.

Column Name Type


EMPNO NUMBER(4)
ENAME VARCHAR2(20)
DESIGNATION VARCHAR2(20)
JOINDATE DATE
SAL NUMBER(9,2)

2. Write a java application program to insert 5 rows to the above table.

3. Write a java application program to add a new column grade with data type as

integer to the above table.

4. Write a java application program to modify the data type of grade to char(1).

5. Write a java application program to change the ename of any employee.

6. Write a java application program to remove the join date of 2nd employee.

7. Write a java application program to display the details of 3rd employee.

8. Create the following table: TABLE: STUDENT

COLUMN NAME DATA TYPE CONSTRAINTS


Roll_no Number(5) Primary Key
Name Varchar(20) Not null
Dept_id Number(5) Foreign Key
Gender Varchar(2)
Contact_no Number(10)

Do the operations Insertion, deletion, updation and selection on table


STUDENT using jdbc.
9. Create an employee table contains the following fields:
a) emp_id b)emp_name c) salary d) date_of_join
Design a applet programme containing following operations:
a. Employee Details Entry.
b. Delete Employee Record.
c. Update employee details.
d. View Employee Details.
e. Display list of Employee having basic pay >50000.
f. Increment salary of employee if salary< 10000 by 2000.
10. Create the following book table:
Column Name Type
Bkid Number(2)
Bname Varchar(20)
Qty Number(3)
Price Number(3
Author Number(3)
Design a frame to do the following operations
a. Employee Details Entry.
b. Delete Employee Record.
c. Update employee details.
d. View Employee Details.

You might also like