Sql server® 2012 t-sql fundamentals



Download 10,93 Mb.
Pdf ko'rish
bet158/443
Sana26.01.2022
Hajmi10,93 Mb.
#411755
1   ...   154   155   156   157   158   159   160   161   ...   443
Bog'liq
BookSQL

 

CHAPTER 3

 

Joins


 

 105

anSI SQL-89 Syntax

Similar to cross joins, inner joins can be expressed by using the ANSI SQL-89 syntax. You specify a 

comma between the table names just as in a cross join, and specify the join condition in the query’s 

WHERE clause, like this.

SELECT E.empid, E.firstname, E.lastname, O.orderid 

FROM HR.Employees AS E, Sales.Orders AS O 

WHERE E.empid = O.empid;

Note that the ANSI SQL-89 syntax has no ON clause.

Again, both syntaxes are standard, fully supported by SQL Server, and interpreted in the same way 

by the engine, so you shouldn’t expect any performance difference between the two. But one syntax 

is safer, as explained in the next section. 




Download 10,93 Mb.

Do'stlaringiz bilan baham:
1   ...   154   155   156   157   158   159   160   161   ...   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