Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
Interview Questions and Answers for 'MSCI' - 2 question(s) found - Order By Newest | ||||
Frequently asked in Cognizant ( Based on 2 feedback ) | ||||
| ||||
Ans. Inner join is the intersection of two tables on the condition defined by the where clause i.e will get records from both tables matched by a column. Outer join is the union of two tables i.e will get all records from both tables and will put null in the columns where related records are not present. Left Outer join is the left union of two tables i.e all records from the table on the left and values from the right table for related records else null for the columns from right table. Right Outer join is the right union of two tables i.e all records from the table on the right and values from the left table for related records else null for the columns from left table. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  sql  inner join  outer join  right join  left join Asked in 24 Companies basic   frequent | ||||
Related Questions | ||||
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 ? | ||||
If Table A has 100 records and Table B has 50 records , how many records will the left join of Table A with Table B generate ? | ||||
If Table A has 100 records and Table B has 50 records , how many records will the right join of Table A with Table B generate ? | ||||
If Table A has 0 records and Table B has 50 records , how many records will the equi join of Table generate ? | ||||
What is Left Outer Join ? | ||||
Describe SQL Joins | ||||
create an SQL query across multiple tables involving outer joins | ||||
Explain Working of joins in sql. | ||||
Frequently asked to experienced developers. Recently asked in many US interviews. | ||||
| ||||
Ans. When multiple external resources are trying to access the DB locks and runs into cyclic wait, it may makes the DB unresponsive. Deadlock can be avoided using variety of measures, Few listed below - Can make a queue wherein we can verify and order the request to DB. Less use of cursors as they lock the tables for long time. Keeping the transaction smaller. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  java   database   architecture Asked in 7 Companies expert   frequent | ||||
Related Questions | ||||
What is a Deadlock ? | ||||
What are the four situations that are required for deadlock to happen ? | ||||
What is Livelock in relation to deadlock ? | ||||
Write Java code that would cause deadlock ? | ||||
How can multi threading lead to a deadlock ? | ||||