QuestionQ161

VerifiedDeveloping Code for Data Processing using Python and SQL

A platform engineer must report resource consumption by SKU tier across every workspace. The engineer chooses the system.billing.usage system table to build a query.

Which SQL query correctly returns daily usage by product?

Explanation

system.billing.usage stores the SKU identifier in sku_name, the consumed DBUs in usage_quantity, and the relevant record timestamp in usage_start_time. Aggregating SUM(usage_quantity) by date_trunc('day', usage_start_time) and sku_name returns daily DBU consumption for each SKU across the account’s workspaces.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!