Database - Interview Questions and Answers for 'Amdocs' | Search Java Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com
Share

Search Interview Questions


 2720 questions in repository.
 There are more than 200 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Database - Interview Questions and Answers for 'Amdocs' - 3 question(s) found - Order By Newest

 Q1. What is the purpose of Commit and Rollback in Databases ?Database2016-07-14 14:28:55

Ans. When a DML is executed, the changes only stays in session and still not pushed to DB Tables, Commit is used to push those changes to the Tables.

In case we realize that we don't want to commit those changes and would like to ignore them, we can use rollback.

For example - You may like that for a banking transaction you would like to update the account balance only if the debit or credit record was correctly inserted, so you may like to encapsulate both DML's - insert for transaction and update for balance in a single transaction and would only commit if both succeeds else rollback.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     databases  commit  rollback     Amdocs  The Bank of New York Mellon (BNY Mellon)      Basic


Related Questions

  What is database deadlock ? How can we avoid them?
  What things you would care about to improve the performance of Application if its identified that its DB communication that needs to be improved ?
  If you are given a choice to implement the code to either Insert a Record or Update if already exist, Which approach will you follow ?
 What is ACID ?
  What is the use of @GeneratedValue annotation in Hibernate?
  What is a Cursor ?
  What are temp tables ?
  Does SQL allow null values ? Can we use it within Where clause ?
  Write an SQL to find all records having all upper case alphanumeric characters in a field ?
  Write an SQL to find all records having all numeric characters in a field ?


 Q2. What are the methods to connect to database in Java ?Database2017-02-05 09:00:41

Ans. JDBC ( Java Database Connectivity ),ODBC (Open Database Connectivity), Hibernate, JPA ( Java Persistence API ), JOOQ,MyBatis

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     database connection  jdbc  ORM  Hibernate     Amdocs


Related Questions

  What is database deadlock ? How can we avoid them?
  What things you would care about to improve the performance of Application if its identified that its DB communication that needs to be improved ?
  If you are given a choice to implement the code to either Insert a Record or Update if already exist, Which approach will you follow ?
 What is ACID ?
  What is the use of @GeneratedValue annotation in Hibernate?
  What is a Cursor ?
  What are temp tables ?
  Does SQL allow null values ? Can we use it within Where clause ?
  Write an SQL to find all records having all upper case alphanumeric characters in a field ?
  Write an SQL to find all records having all numeric characters in a field ?


 Q3. Write a SQL to delete duplicate records in a tableDatabase2017-04-20 06:42:22

Ans. DELETE FROM TABLE WHERE ROW_NUM NOT IN ( SELECT MAX(ROW_ID) FROM TABLE GROUP BY DUPLICATE_FIELD )

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve          Amdocs  Accenture


Related Questions

 What are Inner , Outer , Left and Right Joins in SQL ?
  What is JDBC? Describe the steps needed to execute a SQL query using JDBC.
 What is a self Join and give an example of a self Join ?

or

What is self Join and What is it's purpose ?
  Difference between Inner and Outer Join ?
  What is a Cursor ?
  What are temp tables ?
  Does SQL allow null values ? Can we use it within Where clause ?
  Write an SQL to find all records having all upper case alphanumeric characters in a field ?
  Write an SQL to find all records having all numeric characters in a field ?
  Do you know of any DB statement that can be used if we would like to insert multiple rows into a table ?




Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner



comments powered by Disqus
 

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked:
         

X Close this

X Close this

Help Us Improve.
Please share your
interview experience.

Company Name:   


Questions Asked: