Re: Updating destination table

More
14 years 4 months ago - 14 years 4 months ago #4769 by EDSolutions
Hello. I was wondering if the following is possible. I have 2 different tables in my database. One is called SparesTransactions, and the other is LocationPerSpare. The first table has new lines added to it whenever there is a new transaction. The second table (LocationPerSpare) has only one line which is updated by the first table. Lets assume that LocationPerSpare has an amount in the column QTY = 5. We now capture a new transaction in the first table (SparesTransactions), with a transaction quantity = 7. Is there some way of updating LocationPerSpare so that the new QTY = 12 (5 original quantity + 7 new transaction quantity)?

Ca I use the Calculation field to add this new amount to an existing amount. The database is Microsoft SQL Server.
Last edit: 14 years 4 months ago by EDSolutions. Reason: Added more info.

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #4770 by admin
Can you post here tables creation scripts please

Mike

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #4771 by admin
We would need to modify our software for that.

It will take 2-3 days

Peter

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #4775 by EDSolutions
As mentioned, the Transaction_Qty (multiple lines), in the table SparesTransaction updates the Qty in the table LocationsPerSpare (single line per location).

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #4781 by admin
Positive news :)

We have implemented new functionality internally and currently testing it

Mike

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #4786 by EDSolutions
Hi, and thanks for considering this addition. I think it will prove useful to many of your users. I will be very happy to help you with any testing if you like, as I will need to do this for my client anyway.

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save