Académique Documents
Professionnel Documents
Culture Documents
SQL Server Interview Questions
C#
Boo MV ASP. C SQL W Written HR Subsc SQL Buy
Program 2
ks C NET # Server CF Test Round ribe Tutorial DVD
s
Best software training institute in bangalore for SAP ABAP,
SAP BI, .Net, Informatica, Software Testing, Siebel CRM
I am Venkat and this is my website. I did training in Pragim
Technologies and got job in Dell in less than a week. PRAGIM is the
best S/W training institute in Bangalore.
Click here for Hyderabad Center Website
For further details please call 09900113931.
Outer Join is again divided into 3 types as shown below.
1. Left Outer Join or Left Join
2. Right Outer Join or Right Join
3. Full Outer Join or Full Join
You might have heard about self join, but self join is not a different type of join. A
self join means joining a table with itself. We can have an inner self join or outer
self join. Read this sql server interview question, to understand self join in a
greater detail.
SAP BI Training in Bangalore
Best SAP BI Training institute in Bangalore,
Marathahalli. Real time project based training
provided by working software professionals
having more than 10 years of experience.
Informatica Training in Bangalore
Informatica training in bangalore delivered by
a real time software expert having 10 years
of experience.
Siebel CRM Training in Bangalore
Best software training institute for Siebel CRM
training in Marathahalli, Bangalore.
Software testing training institute in
bangalore
http://venkatsqlinterview.blogspot.in/2011/05/basicsqlserverinterviewquestionson.html 1/6
12/24/2016 SQL Server Interview Questions: Basic SQL Server Interview Questions on Joins
Software testing training on real time projects
and placements.
MSBI Training Institute in Bangalore
Best MSBI Training in Bangalore by an
expert. MSBI training on real time projects
and placements.
Basic SQL Server Interview Questions
If we run the above query, we produce the result set shown in the image
SQL Server interview questions on below.
string manipulation functions
Key Points to remember about CROSS JOIN.
1. A cross join produces the Cartesian product of the tables involved in the
join.This mean every row in the Left Table is joined to every row in the Right
Table. Candidate is LEFT Table and Company is RIGHT Table. In our example
we have 28 total number of rows in the result set. 7 rows in the Candidate table
multiplied by 4 rows in the Company Table.
2. In real time scenarios we rarley use CROSS JOIN. Most often we use either
INNER JOIN or LEFT OUTER JOIN.
3. CROSS JOIN does not have an ON clause with a Join Condition. All the other
JOINS use ON clause with a Join Condition.
4. Using an ON clause on a CROSS JOIN would generate a syntax error.
Note: Understanding the above key points will help you answer any follow up
interview questions on cross join in sql server.
If you can think of any other sql server interview questions please post
them as comments, so they will be useful to other users like you. This will
be a great help from your side to improve this site.
+2 Recommend this on Google
9 comments:
http://venkatsqlinterview.blogspot.in/2011/05/basicsqlserverinterviewquestionson.html 3/6
12/24/2016 SQL Server Interview Questions: Basic SQL Server Interview Questions on Joins
Replies
Reply
Thanks
Jay.
Reply
Replies
Reply
Reply
Replies
Reply
Replies
WITH cte AS
(
SELECT *,ROW_NUMBER() OVER(PARTITION BY
emp_name ORDER BY emp_name)'RowRank'
FROM Employee_Test
)
DELETE FROM cte WHERE RowRank > 1
Reply
Enter your comment...
Comment as: Select profile...
Publish
Preview
http://venkatsqlinterview.blogspot.in/2011/05/basicsqlserverinterviewquestionson.html 5/6
12/24/2016 SQL Server Interview Questions: Basic SQL Server Interview Questions on Joins
Disclaimer Terms of use Contact Us
http://venkatsqlinterview.blogspot.in/2011/05/basicsqlserverinterviewquestionson.html 6/6