ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
explain different types of jions with examples briefly?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: explain different types of jions with examples briefly?
Answer
# 1
Inner join
outer join--left outer join ,right outer join , full outer 
join
Cross Join
 
Is This Answer Correct ?    1 Yes 0 No
Hari
 
  Re: explain different types of jions with examples briefly?
Answer
# 2
Inner join: This type of join displays matched rows from 
tables.
this is based on equality condition ,so also called 
equijoin.
exp- select empid,d.deptid,deptname,empname,location,salary
from emp e inner join dept d on e.deptid=d.deptid

Cross join: this is not based on any condition. It results 
every  row of one table matching with every row of another 
table.
exp- select * from emp cross join dept

Self join: This ype of join joins a table to itself.
 

outer join:
Three types -
a.left outer join: It reults mathed rows from both tables 
as well as all unmatched rows from left table.
exp- select empid,d.deptid,deptname,name,location,salary
from emp e left outer join dept d
on e.emp=d.dept

 it displays all data from emp table .

right Outer join:It reults mathed rows from both tables as 
well as all unmatched rows from right table.
exp- select empid,d.deptid,deptname,name,location,salary
from emp e right outer join dept d
on e.emp=d.dept

 it displays all data from dept table .

 Full Outer Join: This type of join results all matched 
rows from both tables as well as umatched rows from both 
tables.
exp.-select empid,d.deptid,deptname,name,location,salary
from emp e full outer join dept d
 on emp e=d.dept d
 It displays all matched and unmatched rows from both emp  
and dept tables.
 
Is This Answer Correct ?    0 Yes 0 No
Soni
 
 
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
Accidentally i deleted my table. How can i get that table?  2
can you any body tell me suppose database is suspect mode. how can take to normal? Teledata1
Explain Active/Active and Active/Passive cluster configurations  1
What is a table called, if it does not have neither Cluster nor Non-cluster Index?  1
What is the difference between a local and a global variable?  2
When do we use the UPDATE_STATISTICS command?  1
i want only duplicates rows from coloumn ex. emp_id(colomn name)1,1,2,3,3,4,5,5. so i want only duplicates no. iFlex2
What are defaults? Is there a column to which a default can't be bound?  2
How do you measure the performance of a stored procedure? Infosys1
how to find nth highest salary  21
What are the four main query statements?  2
Write an SQL query if u want to select the data from one block which intern reflects in another block ? thanx,do reply Covansys1
Can a stored procedure call itself(recursive). If yes what level and can it be controlled.?  2
Which data type can be used only on OUTPUT parameters of the stored proceduer?  2
What's the purpose of Stored Procedure? Wipro3
What is a cursor in SQL Server 2000 and their types?  2
When you first load SQL SERVER you will startup with what all databases? CompuSol2
What is database normalization? Digicel5
SYNTAX FOR VIEWS WITH EXAMPLE HOW TO LINK TWO TABLES Microsoft1
What is the difference between OLEDB and ODBC CFCI2
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com