GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Notizen

Note FOR JOINS

Mahdaoui Mostafa DPI 6 Englisch 2 Seiten

Note FOR JOINS

Inhalt der Notizen (2)

Seite 1

INNER VS OUTER JOIN

WE have to tables " Product table " And "Category Table"

We want To make Joins Between Them

But Their Is many Diffrents ways To join :

JOIN

RIGHT OUTER JOIN

LEFT OUTER JOIN

-------

AS you see prd and cty in the of each line that we did it just f the next we do need to type all the line on commande so prd is a shortcut for AdventureWorks2014.SimpleOrders.Product

Note FOR JOINS

Note FOR JOINS

Note FOR JOINS

"THE JOIN IS A INNER JOIN" AS you see prd and cty in the of each line that we did it just f the next we do need to type all the line on commande so prd is a shortcut for AdventureWorks2014.SimpleOrders.Product And cty is a shortcut for AdventureWorks2014.SimpleOrders.Category

So we just Display a list of the product and theire respective category

But if we want to display all category we need to diplay all from right or left Side

Let's see RIGHT OUTER JOIN

AS You see we force to display all rows in Category NAME

Note FOR JOINS

Note FOR JOINS

Let's See For Left OUTER JOIN

Note FOR JOINS

SELF JOIN

We have category and the parent category

So we want to joint Category With Parent category

USING "cty.parent.category=pty.category"

N.B --- TO get ALL GAtogreys EVEN WITHOUT A Parent Outer Join IS needed

Note FOR JOINS

Note FOR JOINS

Seite 2

Informationen

Beschreibung
6 DPI (USING JOINS In a SELECT STATEMENTS) Notiz am Note FOR JOINS, erstellt von Mahdaoui Mostafa am 28/03/2016.
Erstellt von
Mahdaoui Mostafa
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck