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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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 ?    1 Yes 0 No
Soni
 
 
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
What is row by row processing ?  1
what command is used to create a table by copying the structure of another table?  5
Well sometimes sp_reanmedb may not work you know because if some one is using the db it will not accept this command so what do you think you can do in such cases?  2
What is the difference between local table and global table Polaris1
how will u create "n" possible tables in sql... Oracle1
What are the new features in SQL Server 2005? Emphasis2
What are mdf,ndf,ldf files and how to see the data in those files? Accenture5
WRITE A FUNCTION TO DISPLAY THE OUTPUT OF AN EXISTING TABLE RANGE LIKE COMMAM SEPERATED VALUES LIKE RANGE1,RANGE2,... TVS2
What is Transaction?  2
Accidentally i deleted my table. How can i get that table?  4
Create Index myIndex On myTable(myColumn) What type of Index will get created after executing the above statement  2
Let’s say the table in the database is named as TBL_Register. The fields in this table include: 1. User_Name, 2. User_Telephone, 3. Register_Date The field Register_Date stores the current date and time of the registration. Write the SQL statement that inserts the data into the table. Techno-Solutions2
Can I remove the default constraint columns in SQL SERVER? Value-Labs3
how to rename the table  3
what is IDE,DMV in sql server? Value-Labs1
What is the difference between a Application Server and a Database Oracle2
When you first load SQL SERVER you will startup with what all databases? CompuSol3
How to display n-1 columns from n number of columns, from a single table in MS SQL server 2005?  1
Can you give an example of Stored Procedure?  2
what is the difference between sql query and google query? TCS7
 
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