Grocery Database

A grocery shop is using the following tables in its relational database:

TABLE Product
  id INTEGER
  name VARCHAR
  categoryId INTEGER REFERENCES ProductCategory(id)

TABLE ProductCategory 
  id INTEGER
  name VARCHAR

TABLE ProductSale
  id INTEGER
  productId INTEGER REFERENCES Product(id)
  price DECIMAL
  date DATE

The company has decided to implement a data warehouse since their analytic queries to get sales information have started causing issues by consuming most database resources.

As a first step, the company wants to create a star schema of the previous tables. Which tables should be present in the star schema?

(Select all acceptable answers.)

Tags

  • Data Warehouse
  • Star Schema
  • Public
  • Easy

Information

Difficulty: Easy

Duration: 5 min

Author: Anonymous

Score Distribution

% of candidates
0-33%
34-67%
68-100%
Score

Would you like to see our other questions?

We have 1000+ premium hand-crafted questions for 160+ job skills and 20+ coding languages. We prefer questions with small samples of actual work over academic problems or brain teasers.

Would you like to see our tests?

The following tests contain Data Warehouse related questions:

On the blog

Since we're all biased and we use incorrect proxies, why not just outsource hiring to experts or recruitment agencies? After all, they've been screening people for many years, so they must know how to do it right?

Not really. I was surprised to discover that many experts...