DataDriven
LearnPracticeInterviewDiscussDailyJobs

Cost Share Within Category

A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.

Domain
SQL
Difficulty
medium
Seniority
L4

Problem

The FinOps team wants to see each allocation's weight within its spending category, but only for compute, storage, and network. For each entry in those categories, show the allocation ID, category, amount, and what percentage of that category's total it represents. List by category then allocation ID.

Summary

Each entry's slice of the category total.

Practice This Problem

Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.

Related

  • All Practice Problems
  • Mock Interview Mode
  • SQL Interview Questions
  • Data Engineering Interview Prep Guide
  • Daily Challenge
  • Data Engineering Lessons