ReleaseNotes65 tr fm


Note The ROWS clause introduces three new InterBase SQL keywords: ROWS



Download 487,04 Kb.
Pdf ko'rish
bet17/54
Sana02.08.2021
Hajmi487,04 Kb.
#135903
1   ...   13   14   15   16   17   18   19   20   ...   54
Bog'liq
ReleaseNotes

Note

The ROWS clause introduces three new InterBase SQL keywords: ROWSTIES, and 



PERCENT.

Syntax

SELECT 

FROM 

WHERE [GROUP BY clause]

[HAVING clause]

[UNION clause]

[ORDER BY clause]

[ROWS  [TO ] [BY ] [PERCENT] [WITH TIES] 

An informal UPDATE syntax would be as follows:

UPDATE 




LANGUAGE ENHANCEMENTS

21

SET

WHERE

[ORDER BY clause]

[ROWS  [TO ] [BY ] [PERCENT] [WITH TIES] 

An informal DELETE syntax has similar semantics to UPDATE:

DELETE FROM 

WHERE

[ORDER BY clause]

[ROWS  [TO ] [BY ] [PERCENT] [WITH TIES] 

Examples:

The following two isql statements selects the top 100 performing sales people. This 

example shows the ability for a Web developer to split the result set in half for display 

purposes. 

SELECT SALESMAN, SALES_DOLLARS, SALES_REGION

FROM SALESMEN

ORDER BY SALES_DOLLARS DESC

ROWS 1 TO 50;

This second isql statement makes use of the TIES keyword. 

SELECT SALESMAN, SALES_DOLLARS, SALES_REGION

FROM SALESMEN

ORDER BY SALES_DOLLARS DESC

ROWS 51 TO 100 WITH TIES;

The following isql statements selects the best 100 performing salesmen and rewards them 

with a 15% bonus: 

UPDATE SALESMEN

SET SALES_BONUS = 0.15 * SALES_DOLLARS

ORDER BY SALES_DOLLARS DESC

ROWS 100 WITH TIES;



INTERBASE 6.5 FEATURES

22

INTERBASE 6

The following isql statements selects the worst 5% performing members of sales force and 

deletes them: 

DELETE FROM SALESMEN

ORDER BY SALES_DOLLARS

ROWS 5 PERCENT WITH TIES;

4

Support for ROWS clause in GPRE

GPRE now supports this additional functionality of the ROWS clause. Currently this 

feature is only supported with the C / C++ programming language. 




Download 487,04 Kb.

Do'stlaringiz bilan baham:
1   ...   13   14   15   16   17   18   19   20   ...   54




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