Skip to content

Help in modelling schema

0

Hey people, I would like this help.

I have this simple EDR shema.

schema

My standard access is:

  1. Query transactions for stationId + fuelPointNumber per time (newest records)
  2. Query transactions for stationId + attendantId per time (newest records)

This is a modeling draft. modelling

The question is, how could I resolve my query 2?

asked 3 years ago279 views
1 Answer
0
Accepted Answer

Base Table

pkskgsipkfpnaid
sid#1234#fpn#1232021-10-10T00:00:000sid#1234#aid#11231
sid#5678#fpn#3212021-10-10T00:00:000sid#5678#aid#13211

GSI

gsipkskpkfpnaid
sid#1234#aid#12021-10-10T00:00:000sid#1234#fpn#1231231
sid#5678#aid#12021-10-10T00:00:000sid#5678#fpn#3213211
AWS
EXPERT
answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.