Sql server® 2012 t-sql fundamentals


   Microsoft SQL Server 2012 T-SQL Fundamentals Conclusion



Download 10,93 Mb.
Pdf ko'rish
bet257/443
Sana26.01.2022
Hajmi10,93 Mb.
#411755
1   ...   253   254   255   256   257   258   259   260   ...   443
Bog'liq
BookSQL

204  

Microsoft SQL Server 2012 T-SQL Fundamentals



Conclusion

This chapter covered set operators, including the general syntax and requirements of set operators, 

and describing in detail each supported set operator—UNIONINTERSECT, and EXCEPT. I explained 

that standard SQL supports two flavors of each operator—DISTINCT (set) and ALL (multiset)—and 

that as of SQL Server 2012, SQL Server implements the ALL flavor only with the UNION operator. I 

provided alternatives to the missing INTERSECT ALL and EXCEPT ALL operators that make use of the 

ROW_NUMBER function and table expressions. Finally, I introduced precedence among set opera-

tors, and explained how to circumvent unsupported logical query processing phases by using table 

expressions.

Exercises

This section provides exercises to help you familiarize yourself with the subjects discussed in Chapter 6. 

All exercises except for the first require you to be connected to the sample database TSQL2012

1

Write a query that generates a virtual auxiliary table of 10 numbers in the range 1 through 10 without 

using a looping construct. You do not need to guarantee any order of the rows in the output of your 

solution. 



Tables involved: None



Desired output:



----------- 









10 

 

(10 row(s) affected)



2

Write a query that returns customer and employee pairs that had order activity in January 2008 but 

not in February 2008.



Tables involved: TSQL2012 database, Sales.Orders table

www.it-ebooks.info





Download 10,93 Mb.

Do'stlaringiz bilan baham:
1   ...   253   254   255   256   257   258   259   260   ...   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