Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9021

Re: Schema design question.

$
0
0

All depends on your

  1. Functional specifications: If in most of your queries, promotions will be dealt with just as any other sales, you're better off with one table only. If you go for a separate table, you'll need a view with a union to support all those queries. If most of your sales queries ignore the promotions, go for 2 tables.
  2. Database technology. If your underlying database supports column-based tables (e.g. HANA), there's no need at all for separting into two tables. Your moel will be simpler, easier to maintain and no negative performance impact whatsoever.

Viewing all articles
Browse latest Browse all 9021

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>