Sql server® 2012 t-sql fundamentals



Download 10,93 Mb.
Pdf ko'rish
bet243/443
Sana26.01.2022
Hajmi10,93 Mb.
#411755
1   ...   239   240   241   242   243   244   245   246   ...   443
Bog'liq
BookSQL

The UNION Operator

In set theory, the union of two sets (call them A and B) is the set containing all elements of both A and 

B. In other words, if an element belongs to any of the input sets, it belongs to the result set. Figure 6-1 

shows a set diagram (also known as a Venn diagram) with a graphical depiction of the union of two 

sets. The shaded area represents the result of the set operator.

Union: A U B



A

B

FIGuRE 6-1

  A union of two sets.

In T-SQL, the UNION operator unifies the results of two input queries. If a row appears in any of 

the input sets, it will appear in the result of the UNION operator. T-SQL supports both the UNION ALL 

and UNION (implicit DISTINCT) flavors of the UNION operator. 


Download 10,93 Mb.

Do'stlaringiz bilan baham:
1   ...   239   240   241   242   243   244   245   246   ...   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