Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

JOIN clause

$
0
0

Apology in advance for a long question, but doing this just

for the sake of learning:

i'm new to SQL and researching on JOIN for now. I'm getting two

different behaviors when using INNER and OUTER JOIN. What I know is,

INNER JOIN gives an intersection kind of result while returning only

common rows among tables, and (LEFT/RIGHT) OUTER JOIN is outputting what

is common and remaining rows in LEFT or RIGHT tables, depending upon

LEFT/RIGHT clause respectively.

While working with MS Training Kit and trying to solve this practice:

"Practice 2: In this practice, you identify rows that appear in one

table but have no matches in another. You are given a task to return the

IDs of employees from the HR.Employees table who did not handle orders

(in the Sales.Orders table) on February 12, 2008. Write three different

solutions using the following:...


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>