題組內容

三、考慮以下的商品交易資料庫綱目(Database schema):
User(  uId  , name, rdate)
//使用者編號,姓名,加入日期
Product(  pId, seller  , name, category, star)
//商品編號,賣家名稱,商品名稱,類別,星等
Transaction(  uId, pId, seller, date  , amount, star)
//使用者編號,商品編號,賣家名稱,日期,數量,星等
各資料表的主鍵(Primary key)以底線表示。此外,並有以下的外鍵(Foreign key):
Transaction(uId)參考到 User 的主鍵
Transaction(pId, seller)參考到 Product 的主鍵

(三)對於每一個總購買量超過(含)1000 的藍芽耳機(Product.category = ‘Bluetooth earphone’)商品和其賣家,列出賣家名稱、商品名稱和星等。

詳解 (共 1 筆)

112中華電國安調特資訊組上榜,賣筆記,請看個人介紹了解
112中華電國安調特資訊組上榜,賣筆記,請看個人介紹了解
詳解 #5632803
2022/10/12
Select Product.selle...
(共 188 字,隱藏中)
前往觀看

私人筆記 (共 1 筆)

aa20000326
aa20000326
私人筆記 #5046750
2023/04/23
法一:直接Join先連起來再處理 Sel...
(共 1123 字,隱藏中)
前往觀看