Relational algebra expression yog dab tsi?
Relational algebra expression yog dab tsi?

Video: Relational algebra expression yog dab tsi?

Video: Relational algebra expression yog dab tsi?
Video: 05-01-relational-algebra-1.mp4 2024, Hlis ntuj nqeg
Anonim

Relational Algebra . Relational algebra yog ib tug txheej txheem query lus, uas yuav siv sij hawm ntawm kev sib raug zoo raws li cov tswv yim thiab yields piv txwv ntawm kev sib raug zoo raws li tso zis. Nws siv cov neeg ua haujlwm los ua cov lus nug. Relational algebra yog ua recursively ntawm kev sib raug zoo thiab cov txiaj ntsig nruab nrab kuj suav tias yog kev sib raug zoo.

Yog li, piv txwv li kev sib txheeb algebra yog dab tsi?

Relational algebra mas muab theoretical foundation rau kev sib raug zoo databases thiab SQL. Cov neeg ua haujlwm hauv Relational Algebra . Projection (π) Projection yog siv los tsim cov ntaub ntawv xav tau ntawm kab ntawv los ntawm kev sib raug zoo. Piv txwv : R (A B C) ---------- 1 2 4 2 2 3 3 2 3 4 3 4 π (BC) B C ----- 2 4 2 3 3 4.

Tsis tas li ntawd, kev sib tshuam hauv kev sib raug zoo algebra yog dab tsi? INTERSECTION Kev ua haujlwm hauv RELATIONAL ALGEBRA . Kev sib tshuam ntawm teeb A thiab B = A ∩ B = {1, 6} Cov ntsiab lus uas muaj nyob rau hauv ob qho tib si A thiab B yuav tsuas muaj nyob rau hauv lub teeb tau los ntawm kev sib tshuam ntawm A thiab B.

Tsis tas li ntawd, PI txhais li cas hauv kev sib raug zoo algebra?

qhov project. - kev ua haujlwm qhia los ntawm tsab ntawv Greek piv (), uas yog siv los xa rov qab qhov kev sib cav nrog qee yam cwj pwm uas tau tso tseg. hloov npe. - kev ua haujlwm qhia los ntawm Greek tsab ntawv rho (), uas tso cai rau cov txiaj ntsig ntawm a kev sib raug zoo - algebra qhia kom muab lub npe, uas ua tau tom qab ntawd siv los xa mus rau lawv.

Dab tsi yog qhov kev sib raug zoo algebra ua haujlwm?

Tsib kev ua haujlwm yooj yim hauv kev sib raug zoo algebra : Kev xaiv, Projection, Cartesian cov khoom, Union, thiab teeb qhov sib txawv.

Pom zoo: