阿摩線上測驗
登入
首頁
>
公職◆資料庫應用
>
98年 - 098年升官等薦任資料庫應用#48283
>
題組內容
一、假設一個零件關連資料庫(Relational Database) 有下面一個表格(Tables)儲存「庫存」 (Inventory)。其 Schema 及目前資料庫狀態如下: Inventory(庫存)(欄位意義:倉庫、零件號、存量)(主鍵:{倉庫、零件號})
⑴請依據目前資料庫狀態,列出下面一個 SQL 查詢之結果:(10 分) SELECT Warehouse, Quantity FROM Inventory WHERE Part = ’Mouse1’ and Quantity = ( SELECT MAX(Quantity) FROM Inventory WHERE Part = ’Mouse1’);