Upload
kata-naresh-babu
View
213
Download
1
Embed Size (px)
DESCRIPTION
java script
Citation preview
TEST
JAVATEST
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_IdLastNameFirstNameAddressCity
1HansenOlaTimoteivn 10Sandnes
2SvendsonToveBorgvn 23Sandnes
3PettersenKariStorgt 20Stavanger
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 Hyderabad9. Add row to the table employee the value e_id should increase using max() function ?
Consider the following Table name as Order Table O_IdOrderDateOrderPriceCustomer
12008/11/121000Hansen
22008/10/231600Nilsen
32008/09/02700Hansen
42008/09/03300Hansen
52008/08/302000Jensen
62008/10/04100Nilsen
10. Write a sample application which selects and prints the Customer(column name) whose orderprice is between 600 to 1000 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 ?UPTECIDEALABStest 002