Jump to content

This topic is 2346 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Good day gurus,

As usual seeking some valuable advice. I am currently importing a price list, the source is a tab delimited files, I am doing a one-to-one import and all works perfected.

Now the boss is requesting to be able to compare the last imported price with the previous import.

What I was thinking was to create an additional table (e.g. import one, import two,) and adding a import date field in order to identify when the import was done. Then create a script to empty the second table, move the records from table one to table two and then importing the new data in table one.

Can someone give me some ideas as I feel i am trying to reinvent the wheel 

Thanks

Rudy

Posted

If they for sure want only the previous import, you could just get by with a single additional field for that, and do a Replace with the current price before you import.

Otherwise, I'd consider just importing the price into its own related table as new records each time. That way each item could keep a complete price history, and you could make a chart of it and your boss would be so impressed.

Posted

Make sure as you import each record gets a time stamp, or at least a date stamp.  You could easily search/report price history broken down by date in a sub-summary report.

Posted
7 hours ago, Fitch said:

If they for sure want only the previous import, you could just get by with a single additional field for that, and do a Replace with the current price before you import.

Otherwise, I'd consider just importing the price into its own related table as new records each time. That way each item could keep a complete price history, and you could make a chart of it and your boss would be so impressed.

The second idea let you keep many imports because after get the 2 last imports, your boss will ask you for the 3 last ;)

you set and id import unique for each import then a link between the same table with sort by date desc and id ≠ id second table (don't know if it's clear)

For example, first import 20 records with id = 1, second import 20 records with id = 2 etc

Tom

This topic is 2346 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.