473,323 Members | 1,570 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

Retaining quote/order info based on a previous price list

20
In Northwind, a price change populates through the database, changing historic quotes that should remain at the values when they were first created. How do I cater for different versions of updated price lists, so that older records retain there original information from the old price list, but new records assume the values of the new price list?
This I think is more of a principle question, that must have been asked before many times. IS there an easy solution that I am missing?
Thanks!
Mike SA
Oct 16 '07 #1
2 1536
missinglinq
3,532 Expert 2GB
Developers who work on these kinds of apps generally feel that this is one of the situations where it is permissible to store calculated fields, and I'd have to agree. The only other answer that I can think of would to be to have a separate table for price lists, with each price list having a starting and ending date. Then each time you run a report or pull up a quote you'd have to compare the date of the quote with the various price lists, then run the calculations. Considering the low cost of data storage today, this seems like an awful lot of work to me!

Linq ;0)>
Oct 16 '07 #2
MikeSA
20
Developers who work on these kinds of apps generally feel that this is one of the situations where it is permissible to store calculated fields, and I'd have to agree. The only other answer that I can think of would to be to have a separate table for price lists, with each price list having a starting and ending date. Then each time you run a report or pull up a quote you'd have to compare the date of the quote with the various price lists, then run the calculations. Considering the low cost of data storage today, this seems like an awful lot of work to me!

Linq ;0)>
Hi Ling
Thanks for the feedback, I see where you are heading with this, but still I need further guidance, as the next level of design is still not quite evident to me:
Assuming separate tables, how do my calculations in queries decide which table to use? How is the decision made? Yes I know it must look at some or date criteria to make the decision, but I am not sure how to implement this?
Am I on the right track?
MikesSA
Oct 17 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: svilen | last post by:
hello again. i'm now into using python instead of another language(s) for describing structures of data, including names, structure, type-checks, conversions, value-validations, metadata etc....
7
by: Lasse Vågsæther Karlsen | last post by:
I have a list of items and a "rule" for ordering them. Unfortunately, the rule is not complete so it won't define the correct order for any two items in that list. In other words, if I pick...
4
by: Peeter Ups | last post by:
I have several tables in my database. I use these to create 'quotations' that show product code, description, selling price and quantity required. Users can enter as many lines as possible and a...
3
by: Scotty | last post by:
I have a database which is made up of several tables "contacts", "coaching", "clubs" etc. The Contact and coach tables are linked by an "ID" field. The Contact and clubs table are linked a by a...
1
by: Blake | last post by:
Below is the queries and the results I get when in psql monitor> QUERY 1: SELECT id,price FROM store ORDER by price ASC; RESULT : List from LOWEST price to HIGHEST price QUERY 2: SELECT...
1
by: jmar | last post by:
I posted on this topic a while back and received some good responses. However, I have better insight into what I'm looking to do so I am tapping the wealth of experience here again hoping to find a...
8
by: plemon | last post by:
alright here is what it is: a computer site where customers build custom system by selecting from forms and radio buttons. what is needed: a database (MySQL) with php basicly... 1 users...
3
by: ITAutobot25 | last post by:
Now this is really the last problem (for real now) with this assignment. My sorter is not working. I managed to sort by product name in my previous assignment; however, I can't get it to work on this...
0
by: Xiaode | last post by:
I only manage to do this assignment using combo box anyone has any idea to do this using option box??? Specifications Create a form based application that resembles the above figure. For each...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.