Scenario: A financial institution manages a vast amount of transaction data in its database. Queries often involve retrieving transactions within specific date ranges or for particular account holders. How would you utilize indexing to enhance query performance in this scenario?

  • Avoid indexing to prioritize storage space
  • Create a clustered index on the date column and a non-clustered index on the account holder column
  • Implement a non-clustered index on the date column
  • Use a covering index on all transaction-related columns
For this scenario, creating a clustered index on the date column and a non-clustered index on the account holder column would enhance query performance. Clustered indexes dictate the physical order of data, and non-clustered indexes provide quick access to specific columns.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *