Difficulty: Easy
Correct Answer: Sort Key
Explanation:
Introduction / Context:
Data administrators often need to group and order records so that related rows appear together in reports, exports, or user interfaces. Choosing an appropriate sort key (also called a control key or grouping key) ensures that records with the same attribute value naturally cluster. This question uses the example attribute ‘‘Jobcode’’ in the ‘‘abc’’ database to test your understanding of how grouping by a key works in practice.
Given Data / Assumptions:
Concept / Approach:
In reporting and query operations, the column used to define grouping or ordering is commonly called a sort key. When you sort by Jobcode, rows with the same Jobcode appear consecutively, making subtotals, page breaks, and summaries straightforward. While indexes speed up searching and sorting, the conceptual term for the attribute by which data is grouped in output is ‘‘sort key.’’
Step-by-Step Solution:
Verification / Alternative check:
Run queries such as: SELECT Jobcode, COUNT(*) FROM Employees GROUP BY Jobcode ORDER BY Jobcode. The column used to group/order (Jobcode) is functioning as the sort key for meaningful clustering.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing the physical structure (index) with the logical grouping concept (sort key). Although sorting may use indexes, the term that answers the conceptual question is the sort key.
Final Answer:
Sort Key
Discussion & Comments