In the SQL, how would I say give me the top 100, then group the rest as "Other"?
In the SQL, how would I say give me the top 100, then group the rest as "Other"?
5xx error in the book coming back, and retry-after-delay. Most of these errors are either one-offs or transientSorry, we were unable to evaluate your query
{sql: string, values: string} so that wouldn't be an issue.toUnixTimestamp(timestamp) * 10001693800900000 is a perfectly valid js number.
5xxSorry, we were unable to evaluate your query{sql: string, values: string}toUnixTimestamp(timestamp) * 10001693800900000 Input was invalid: cannot combine the DateTime and String types with the >= operator: "timestamp" >= '2023-03-01 00:00:00' WHERE timestamp > NOW() - INTERVAL '7' DAYSELECT id, ...,
CASE
WHEN id <= 100 THEN id
ELSE 'Other'
END AS groupedId
FROM myTable(intDiv(toUInt32(timestamp), 120) * 120) * 1000 as x