Sql server® 2012 t-sql fundamentals



Download 10,93 Mb.
Pdf ko'rish
bet166/443
Sana26.01.2022
Hajmi10,93 Mb.
#411755
1   ...   162   163   164   165   166   167   168   169   ...   443
Bog'liq
BookSQL

 

CHAPTER 3

 

Joins


 

 113

the nonpreserved side of the join to filter is important. You should choose an attribute that can only 

have a NULL when the row is an outer row and not otherwise (for example, not a NULL originating 

from the base table). For this purpose, three cases are safe to consider—a primary key column, a 

join column, and a column defined as NOT NULL. A primary key column cannot be NULL; therefore, 

NULL in such a column can only mean that the row is an outer row. If a row has a NULL in the join 

column, that row is filtered out by the second phase of the join, so a NULL in such a column can only 

mean that it’s an outer row. And obviously, a NULL in a column that is defined as NOT NULL can only 

mean that the row is an outer row.

To practice what you’ve learned and get a better grasp of outer joins, make sure that you perform 

the exercises for this chapter.


Download 10,93 Mb.

Do'stlaringiz bilan baham:
1   ...   162   163   164   165   166   167   168   169   ...   443




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish