dbTalk Databases Forums  

Variable prices

comp.databases.theory comp.databases.theory


Discuss Variable prices in the comp.databases.theory forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
graeme
 
Posts: n/a

Default Variable prices - 01-11-2008 , 03:36 AM






Hi
I am trying to find out how you deal with variable prices, so when I query
[annual unit sales] * [price] I don't get [annual unit sales] * [current
price]. Is there a rule of thumb for this type of issue?

graeme

Reply With Quote
  #2  
Old   
David Cressey
 
Posts: n/a

Default Re: Variable prices - 01-11-2008 , 06:30 AM







"graeme" <nntp1grame_DELETETHIS_ (AT) googlemail (DOT) com> wrote

Quote:
Hi
I am trying to find out how you deal with variable prices, so when I query
[annual unit sales] * [price] I don't get [annual unit sales] * [current
price]. Is there a rule of thumb for this type of issue?

graeme
I don't have any rule of thumb for you, but I do know how to keep
individual sales in a data mart or data warehouse.

The trick is to tie each item sold to the price charged for that item, on
that sale. This can even take into account discounts for coupons or thing
like that. The way you can have time varying prices for the same item is to
have multiple entries in the PRODUCT dimension for the same product. The
entries have a start date and stop date. The entries in the SALES facts are
tied to the PRODUCT entry with the correct price.

At this point, you can, if desired, materialize the extended price as
[extended price] = [units sold] * [current price] way down at the lowest
level of granularity. Then, when you want the annual sales dollars for
that product, it's just a matter of finding and adding.

Warning: if you have no intention of creating a data mart, don't let this
argument persuade you otherwise. There is a large cost to building such a
thing, and it needs to be justified by a large benefit.





Reply With Quote
  #3  
Old   
David Cressey
 
Posts: n/a

Default Re: Variable prices - 01-11-2008 , 06:30 AM




"graeme" <nntp1grame_DELETETHIS_ (AT) googlemail (DOT) com> wrote

Quote:
Hi
I am trying to find out how you deal with variable prices, so when I query
[annual unit sales] * [price] I don't get [annual unit sales] * [current
price]. Is there a rule of thumb for this type of issue?

graeme
I don't have any rule of thumb for you, but I do know how to keep
individual sales in a data mart or data warehouse.

The trick is to tie each item sold to the price charged for that item, on
that sale. This can even take into account discounts for coupons or thing
like that. The way you can have time varying prices for the same item is to
have multiple entries in the PRODUCT dimension for the same product. The
entries have a start date and stop date. The entries in the SALES facts are
tied to the PRODUCT entry with the correct price.

At this point, you can, if desired, materialize the extended price as
[extended price] = [units sold] * [current price] way down at the lowest
level of granularity. Then, when you want the annual sales dollars for
that product, it's just a matter of finding and adding.

Warning: if you have no intention of creating a data mart, don't let this
argument persuade you otherwise. There is a large cost to building such a
thing, and it needs to be justified by a large benefit.





Reply With Quote
  #4  
Old   
David Cressey
 
Posts: n/a

Default Re: Variable prices - 01-11-2008 , 06:30 AM




"graeme" <nntp1grame_DELETETHIS_ (AT) googlemail (DOT) com> wrote

Quote:
Hi
I am trying to find out how you deal with variable prices, so when I query
[annual unit sales] * [price] I don't get [annual unit sales] * [current
price]. Is there a rule of thumb for this type of issue?

graeme
I don't have any rule of thumb for you, but I do know how to keep
individual sales in a data mart or data warehouse.

The trick is to tie each item sold to the price charged for that item, on
that sale. This can even take into account discounts for coupons or thing
like that. The way you can have time varying prices for the same item is to
have multiple entries in the PRODUCT dimension for the same product. The
entries have a start date and stop date. The entries in the SALES facts are
tied to the PRODUCT entry with the correct price.

At this point, you can, if desired, materialize the extended price as
[extended price] = [units sold] * [current price] way down at the lowest
level of granularity. Then, when you want the annual sales dollars for
that product, it's just a matter of finding and adding.

Warning: if you have no intention of creating a data mart, don't let this
argument persuade you otherwise. There is a large cost to building such a
thing, and it needs to be justified by a large benefit.





Reply With Quote
  #5  
Old   
David Cressey
 
Posts: n/a

Default Re: Variable prices - 01-11-2008 , 06:30 AM




"graeme" <nntp1grame_DELETETHIS_ (AT) googlemail (DOT) com> wrote

Quote:
Hi
I am trying to find out how you deal with variable prices, so when I query
[annual unit sales] * [price] I don't get [annual unit sales] * [current
price]. Is there a rule of thumb for this type of issue?

graeme
I don't have any rule of thumb for you, but I do know how to keep
individual sales in a data mart or data warehouse.

The trick is to tie each item sold to the price charged for that item, on
that sale. This can even take into account discounts for coupons or thing
like that. The way you can have time varying prices for the same item is to
have multiple entries in the PRODUCT dimension for the same product. The
entries have a start date and stop date. The entries in the SALES facts are
tied to the PRODUCT entry with the correct price.

At this point, you can, if desired, materialize the extended price as
[extended price] = [units sold] * [current price] way down at the lowest
level of granularity. Then, when you want the annual sales dollars for
that product, it's just a matter of finding and adding.

Warning: if you have no intention of creating a data mart, don't let this
argument persuade you otherwise. There is a large cost to building such a
thing, and it needs to be justified by a large benefit.





Reply With Quote
  #6  
Old   
David Cressey
 
Posts: n/a

Default Re: Variable prices - 01-11-2008 , 06:30 AM




"graeme" <nntp1grame_DELETETHIS_ (AT) googlemail (DOT) com> wrote

Quote:
Hi
I am trying to find out how you deal with variable prices, so when I query
[annual unit sales] * [price] I don't get [annual unit sales] * [current
price]. Is there a rule of thumb for this type of issue?

graeme
I don't have any rule of thumb for you, but I do know how to keep
individual sales in a data mart or data warehouse.

The trick is to tie each item sold to the price charged for that item, on
that sale. This can even take into account discounts for coupons or thing
like that. The way you can have time varying prices for the same item is to
have multiple entries in the PRODUCT dimension for the same product. The
entries have a start date and stop date. The entries in the SALES facts are
tied to the PRODUCT entry with the correct price.

At this point, you can, if desired, materialize the extended price as
[extended price] = [units sold] * [current price] way down at the lowest
level of granularity. Then, when you want the annual sales dollars for
that product, it's just a matter of finding and adding.

Warning: if you have no intention of creating a data mart, don't let this
argument persuade you otherwise. There is a large cost to building such a
thing, and it needs to be justified by a large benefit.





Reply With Quote
  #7  
Old   
David Cressey
 
Posts: n/a

Default Re: Variable prices - 01-11-2008 , 06:30 AM




"graeme" <nntp1grame_DELETETHIS_ (AT) googlemail (DOT) com> wrote

Quote:
Hi
I am trying to find out how you deal with variable prices, so when I query
[annual unit sales] * [price] I don't get [annual unit sales] * [current
price]. Is there a rule of thumb for this type of issue?

graeme
I don't have any rule of thumb for you, but I do know how to keep
individual sales in a data mart or data warehouse.

The trick is to tie each item sold to the price charged for that item, on
that sale. This can even take into account discounts for coupons or thing
like that. The way you can have time varying prices for the same item is to
have multiple entries in the PRODUCT dimension for the same product. The
entries have a start date and stop date. The entries in the SALES facts are
tied to the PRODUCT entry with the correct price.

At this point, you can, if desired, materialize the extended price as
[extended price] = [units sold] * [current price] way down at the lowest
level of granularity. Then, when you want the annual sales dollars for
that product, it's just a matter of finding and adding.

Warning: if you have no intention of creating a data mart, don't let this
argument persuade you otherwise. There is a large cost to building such a
thing, and it needs to be justified by a large benefit.





Reply With Quote
  #8  
Old   
David Cressey
 
Posts: n/a

Default Re: Variable prices - 01-11-2008 , 06:30 AM




"graeme" <nntp1grame_DELETETHIS_ (AT) googlemail (DOT) com> wrote

Quote:
Hi
I am trying to find out how you deal with variable prices, so when I query
[annual unit sales] * [price] I don't get [annual unit sales] * [current
price]. Is there a rule of thumb for this type of issue?

graeme
I don't have any rule of thumb for you, but I do know how to keep
individual sales in a data mart or data warehouse.

The trick is to tie each item sold to the price charged for that item, on
that sale. This can even take into account discounts for coupons or thing
like that. The way you can have time varying prices for the same item is to
have multiple entries in the PRODUCT dimension for the same product. The
entries have a start date and stop date. The entries in the SALES facts are
tied to the PRODUCT entry with the correct price.

At this point, you can, if desired, materialize the extended price as
[extended price] = [units sold] * [current price] way down at the lowest
level of granularity. Then, when you want the annual sales dollars for
that product, it's just a matter of finding and adding.

Warning: if you have no intention of creating a data mart, don't let this
argument persuade you otherwise. There is a large cost to building such a
thing, and it needs to be justified by a large benefit.





Reply With Quote
  #9  
Old   
David Cressey
 
Posts: n/a

Default Re: Variable prices - 01-11-2008 , 06:30 AM




"graeme" <nntp1grame_DELETETHIS_ (AT) googlemail (DOT) com> wrote

Quote:
Hi
I am trying to find out how you deal with variable prices, so when I query
[annual unit sales] * [price] I don't get [annual unit sales] * [current
price]. Is there a rule of thumb for this type of issue?

graeme
I don't have any rule of thumb for you, but I do know how to keep
individual sales in a data mart or data warehouse.

The trick is to tie each item sold to the price charged for that item, on
that sale. This can even take into account discounts for coupons or thing
like that. The way you can have time varying prices for the same item is to
have multiple entries in the PRODUCT dimension for the same product. The
entries have a start date and stop date. The entries in the SALES facts are
tied to the PRODUCT entry with the correct price.

At this point, you can, if desired, materialize the extended price as
[extended price] = [units sold] * [current price] way down at the lowest
level of granularity. Then, when you want the annual sales dollars for
that product, it's just a matter of finding and adding.

Warning: if you have no intention of creating a data mart, don't let this
argument persuade you otherwise. There is a large cost to building such a
thing, and it needs to be justified by a large benefit.





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.