Cov txheej txheem:

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

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

Video: Dab tsi yog qhov kev sib raug zoo algebra ua haujlwm?
Video: Lesson 6-English -Algebra-Volume IV 2024, Hlis ntuj nqeg
Anonim

Tsib theem pib kev ua haujlwm hauv kev sib raug zoo algebra : Kev Xaiv, Kev Tshaj Tawm, Cartesian khoom, Union, thiab Teeb Qhov Sib Txawv.

Tom qab ntawd, kev sib raug zoo algebra yog dab tsi?

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. Tus neeg teb xov tooj tuaj yeem yog unary lossis binary. Lawv lees txais kev sib raug zoo raws li lawv cov tswv yim thiab tawm tswv yim kev sib raug zoo raws li lawv cov txiaj ntsig.

Dab tsi yog cov neeg ua haujlwm sib raug zoo? Relational Operators

  • <: tsawg dua.
  • <=: tsawg dua los yog sib npaug.
  • >: ntau dua.
  • >=: ntau dua los yog sib npaug.
  • ==: sib.
  • //: tsis sib npaug.

Tom qab ntawd, ib tug kuj yuav nug, dab tsi yog qhov kev sib raug zoo algebra ua haujlwm txhawb nqa hauv SQL?

Relational algebra tsuas yog muab lub hauv paus theoretical rau kev sib txheeb databases thiab SQL

  • Cov neeg ua haujlwm hauv Relational Algebra.
  • Qhov projection (π)
  • Nco tseg: Los ntawm Default projection tshem tawm cov ntaub ntawv duplicate.
  • Kev xaiv (σ)
  • Nco tseg: xaiv tus neeg teb xov tooj tsuas yog xaiv cov tuples uas yuav tsum tau tab sis tsis tso rau lawv.
  • Union (U)
  • Teeb qhov txawv (-)

Dab tsi yog koom nrog hauv kev sib raug zoo algebra?

Xws li koom ua rau ob tus cwj pwm nyob rau hauv qhov kev sib raug zoo uas muaj qhov zoo ib yam. ? Ib tug natural koom yuav tshem tawm cov cwj pwm duplicate.

Pom zoo: