Hi All
I need some help with an sql query for MS SQL.
Basically we have various items that come from multiple sources, ie our own in house stuff, and that from external suppliers. In some instances one product is on both sources. At the moment I have a 'consolidation' script which imports all of the instances into a 'master list'.
What I need now is an sql query that finds all ocurrences of a particular product in a list ( using our product code) and then works out the total stock holding if there is more than 1 source.
Im not sure if this is possible or the best way to do it.
As usual any help is appreciated.
Thanks
Aaron
I need some help with an sql query for MS SQL.
Basically we have various items that come from multiple sources, ie our own in house stuff, and that from external suppliers. In some instances one product is on both sources. At the moment I have a 'consolidation' script which imports all of the instances into a 'master list'.
What I need now is an sql query that finds all ocurrences of a particular product in a list ( using our product code) and then works out the total stock holding if there is more than 1 source.
Im not sure if this is possible or the best way to do it.
As usual any help is appreciated.
Thanks
Aaron