Sql server® 2012 t-sql fundamentals


   Microsoft SQL Server 2012 T-SQL Fundamentals Conclusion



Download 10,93 Mb.
Pdf ko'rish
bet174/443
Sana26.01.2022
Hajmi10,93 Mb.
#411755
1   ...   170   171   172   173   174   175   176   177   ...   443
Bog'liq
BookSQL

120  

Microsoft SQL Server 2012 T-SQL Fundamentals



Conclusion

This chapter covered the JOIN table operator. It described the logical query processing phases in-

volved in the three fundamental types of joins—cross joins, inner joins, and outer joins. The chapter 

also covered further join examples, including composite joins, non-equi joins, and multi-join queries. 

The chapter concluded with an optional reading section covering more advanced aspects of outer 

joins. To practice what you’ve learned, go over the exercises for this chapter.



Exercises

This section provides exercises to help you familiarize yourself with the subjects discussed in this 

chapter. All exercises involve querying objects in the TSQL2012 database.

1-1

Write a query that generates five copies of each employee row.



Tables involved: HR.Employees and dbo.Nums



Desired output:



empid       firstname  lastname             n 

----------- ---------- -------------------- ----------- 

1           Sara       Davis                1 

2           Don        Funk                 1 

3           Judy       Lew                  1 

4           Yael       Peled                1 

5           Sven       Buck                 1 

6           Paul       Suurs                1 

7           Russell    King                 1 

8           Maria      Cameron              1 

9           Zoya       Dolgopyatova         1 

1           Sara       Davis                2 

2           Don        Funk                 2 

3           Judy       Lew                  2 

4           Yael       Peled                2 

5           Sven       Buck                 2 

6           Paul       Suurs                2 

7           Russell    King                 2 

8           Maria      Cameron              2 

9           Zoya       Dolgopyatova         2 

1           Sara       Davis                3 

2           Don        Funk                 3 

3           Judy       Lew                  3 

4           Yael       Peled                3 

5           Sven       Buck                 3 

6           Paul       Suurs                3 

7           Russell    King                 3 

8           Maria      Cameron              3 

9           Zoya       Dolgopyatova         3 

www.it-ebooks.info





Download 10,93 Mb.

Do'stlaringiz bilan baham:
1   ...   170   171   172   173   174   175   176   177   ...   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