Examly題庫立即開始練習
地方政府公務人員四等-電子工程類科計算機概要11011單選題

關聯式資料庫中,原本已有一個關聯(relation)表 Employee,其屬性(attributes)包括 id、name、gender、address。屬性 gender 記錄員工的性別,男性員工的 gender 欄位標記為 male,女性員工的 gender 欄位標記為 female。對關聯表 Employee 使用下列那一個關聯運算,可以產生只包含男性員工元組(tuples)的資料表?

Aselect正確答案
Bintersection
Cjoin
Dupdate
答案與詳解
A
正確答案
篩選符合條件的 tuple(列)要用 select(σ)運算,題目要挑 gender=male 的列。

為什麼答案是 A

select(σ)是關聯代數中用條件篩選 tuple 的運算,σ_gender='male'(Employee) 即可得到只含男性員工的資料表,完全符合題意。

考點:選擇運算考點:集合運算考點:合併運算考點:資料修改
載入中…

計算機概要 相關題目

想練更多計算機概要考古題?

Examly 收錄 38 萬+ 道歷屆題目,每題都有像這樣的精選詳解。免費下載,立即開練。

Download on theApp Store即將推出Google Play
黑皮