練習題題庫 [第五章:關聯模式的運算]
練習5-1
參考圖4-4 的資料庫,請列出以下運算式的執行結果:
Result = σcatalog = ‘CD’unitPrice > 300 (Product))
 
練習5-2
參考圖4-4 的資料庫,請列出以下運算式的執行結果:
Result = πpName, unitPricecatalog = ‘CD’unitPrice > 300 (Product)))
 
練習5-3
參考圖4-4 的資料庫,請列出以下運算式的執行結果:
Result = σProduct.pNo = Author.pNo (Product × Author)
 
練習5-4
參考圖4-4 的資料庫,請列出以下運算式的執行結果:
TransRecord = TransactionTransaction.tNo = Record.tNo Record
Result = πtransMid, pName(TransRecord TransRecord.pNo = Product.pNo Product)
 
練習5-5
參考圖4-4 的線上購物系統資料庫,請列出以下運算式的執行結果:
Tmp = Product Product.pNo = Author.pNo Author
Result(pName, aName) = πpName, name Tmp
 
練習5-6
參考圖4-4 的資料庫,請列出以下運算式的執行結果:
Result(tNo, totalProductNum) = tNo COUNT pNo (Record)