Bạn không được dùng ORDER BY cho các chỉ số hoặc phân đoạn không được chọn.
Giới hạn số lượng kết quả
Bạn có thể giới hạn tổng số kết quả được trả về bằng mệnh đề LIMIT.
Khi kết hợp với việc sắp xếp kết quả, bạn có thể tạo ra các báo cáo "N sản phẩm hàng đầu", chẳng hạn như một báo cáo chứa 5 sản phẩm có số lượt hiển thị cao nhất trong 30 ngày qua:
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-08-13 UTC."],[],["The Merchant API beta, a new version of the Content API for Shopping, is introduced. You can order response rows using the `ORDER BY` clause with `ASC` or `DESC` order for selected fields. The `LIMIT` clause restricts the total results, enabling \"top N\" reports. `ORDER BY` is limited to selected fields, and filtering (`WHERE`) is not available for metrics that aren't selected. The maximum number of rows returned is 1000, requiring pagination for more results.\n"],null,[]]