Lets say i have an Inventory table with 2 fields (Our inventory dont really only have 2 fields just keeping it simple)
The above 2 items are the SAME item, Lets say the first item came out the factory
Then the second one had a firmware change to improve it, but its still the exact same item.
Now i want insert them, into our database Price List Table (Which is now empty)
Problem is our price list that the marketing people create in excel will always have the newest Item on it.
They dont keep both items on there because that would make it tremendously long.
So now i need to first return the items from the Inventory
Like this
- Not sure if my code is exactly right but its the thought that counts.
So then for each resault i want to insert each item into the price list into the database
Code:
[B]ITEM_NUMBER[/B] [B]ITEM_DESC[/B]
1234ZZ000AA Wifi Keyboard
1234ZZ000AB Wifi Keyboard
The above 2 items are the SAME item, Lets say the first item came out the factory
Then the second one had a firmware change to improve it, but its still the exact same item.
Now i want insert them, into our database Price List Table (Which is now empty)
Problem is our price list that the marketing people create in excel will always have the newest Item on it.
They dont keep both items on there because that would make it tremendously long.
So now i need to first return the items from the Inventory
Like this
Code:
Select ITEM_NUMBER , ITEM_DESC from INVENTORY Where ITEM_NUMBER like substring(ITEM_NUMBER1,8) + '%'
So then for each resault i want to insert each item into the price list into the database