阿摩線上測驗 登入

試題詳解

試卷:114年 - 114 學士後醫學系招生考試試題:計算機概論與程式設計#137105 | 科目:【阿摩】未分類題庫

試卷資訊

試卷名稱:114年 - 114 學士後醫學系招生考試試題:計算機概論與程式設計#137105

年份:114年

科目:【阿摩】未分類題庫

24. A company’s database contains a table Sales with millions of rows, and the following SQL query is executed frequently:


Which of the following optimizations would most effectively improve the query performance?
(A) Adding an index on SalesAmount
(B) Creating a composite index on (Region, ProductID)
(C) Partitioning the table by ProductID
(D) Using HAVING SUM(SalesAmount) > 0 to filter results

(E) Adding an index on ProductID only

正確答案:登入後查看