Sign up, and CougarBoard will remember which categories you want to view. Sign up
May 1, 2021
11:36:00am
molodyets Mortgage guy in all 50 states
You would have something like this:
Location Id
Order Id
Order Item Id
Item option IDs - this could be in an array
Item price
Item quantity


Then you join to order to get the total price and create/close out times

Location to get the store information

Products to get the item name

Options to get the names of the options in the array.

Since these are all numbers it will be drastically smaller and faster than storing this all in text - you only need the text once in the dimension tables and can reuse it over and over. Joins and filters are also faster on numbers vs text.

And if you are filter on time it usually converts that to a Unix time stamp in the background and joins it that way so the conversion is added overhead, so you’ll sometimes see the times stored as an integer not a datetime
This message has been modified
Originally posted on May 1, 2021 at 11:36:00am
Message modified by molodyets on May 1, 2021 at 11:38:46am
Message modified by molodyets on May 1, 2021 at 11:40:38am
molodyets
Previous username
patches1391
Bio page
molodyets
Joined
Mar 26, 2006
Last login
May 3, 2024
Total posts
43,236 (19,300 FO)
Messages
Author
Time

Posting on CougarBoard

In order to post, you will need to either sign up or log in.