Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

JAVA

TEST

1. What is JDBC explain the different types of drivers?


2. What is the different between thin and thick drivers?
3. What is type 4 and write sample program to explain the
connection of type 4 driver?
Consider the following table name as Employee
E_Id

LastName

FirstName

Address

City

Hansen

Ola

Timoteivn 10

Sandnes

Svendson

Tove

Borgvn 23

Sandnes

Pettersen

Kari

Storgt 20

Stavanger

4. Write sample program which selects the columns from table


employee and close the resource after completing the usage?
5. Write a sample program to select the Employee details where the
id is 2?
6. Write a sample program to select the first name which starts with
o?
7. Write a sample program to select the rows count of above table?
8. Write a sample program which changes the city of e_id 2 as
Hyderabad
9. Add row to the table employee the value e_id should increase
using max() function ?
Consider the following Table name as Order Table
O_Id
1
2
3
4
5
6

OrderDate
2008/11/12
2008/10/23
2008/09/02
2008/09/03
2008/08/30
2008/10/04

OrderPrice
1000
1600
700
300
2000
100

Customer
Hansen
Nilsen
Hansen
Hansen
Jensen
Nilsen

10. Write a sample application which selects and prints the


Customer(column name) whose orderprice is between 600 to 1000

UPTECIDEALABS

test 001

JAVA

TEST

11. Write a sample program which select the orderprice


1000 and increment it by 300 and should update the
latest values in ordertable?
12. Write a sample program which select the update the
date with current date?
13. Write a sample program to select the customer whose
name starts with H?
14. How to get next count of O_id ?
15. Use above id and insert the values in the order table ?

UPTECIDEALABS

test 002

You might also like