Guest User

Untitled

a guest
Jul 22nd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. Let's say I have:
  2.  
  3. Product
  4. id name
  5. 303 Milk
  6. 404 Pasta
  7.  
  8.  
  9. Sales
  10. id product_id amount
  11. 20 303 32,3
  12. 23 404 29,2
  13.  
  14.  
  15.  
  16. The dimension table will then have:
  17.  
  18. dim_product
  19. product_key product_id product_name
  20. 2002 303 Milk
  21. 2003 404 Pasta
  22.  
  23.  
  24. And THEN, in my FCT_SALE table, I must have:
  25.  
  26. FCT_SALE
  27. sale_key sale_id product_key amount
  28. 203 20 !!!2002!!! 32,3
  29. 204 23 !!!2003!!! 29,2
Add Comment
Please, Sign In to add comment