Sql server® 2012 t-sql fundamentals


   Microsoft SQL Server 2012 T-SQL Fundamentals The EXCEPT Operator



Download 10,93 Mb.
Pdf ko'rish
bet250/443
Sana26.01.2022
Hajmi10,93 Mb.
#411755
1   ...   246   247   248   249   250   251   252   253   ...   443
Bog'liq
BookSQL

198  

Microsoft SQL Server 2012 T-SQL Fundamentals



The EXCEPT Operator

In set theory, the difference of sets A and B (A – B) is the set of elements that belong to A and do not 

belong to B. You can think of the set difference A – B as A minus the members of B also in A. Figure 6-3 

shows a graphical depiction of the set difference A – B.



A

B

Difference: A – B



FIGuRE 6-3

  Set difference.

In T-SQL, set difference is implemented with the EXCEPT set operator. EXCEPT operates on the re-

sult sets of two input queries and returns rows that appear in the first input but not the second. After 

I describe the EXCEPT (implicit DISTINCT) operator, I’ll describe EXCEPT ALL, which has not yet been 

implemented as of SQL Server 2012, and how to provide an alternative to this operator.




Download 10,93 Mb.

Do'stlaringiz bilan baham:
1   ...   246   247   248   249   250   251   252   253   ...   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