fireantz
Senior Member
- Joined
- Dec 12, 2006
- Messages
- 1,284
- Reaction score
- 2
hi there
need help with sql query construction...
Scenario
Customer has access to update item price list (item_price), however my application does not read directly from this table because i do not want the price to change real time. I have a separate table (price_main) to keep the price list. For price sync up, i'll be running a sql script to update everyday at a specific time. I need help with the construction here.
Table structure
item_price
item_id (PK)
item_price
price_main
item_id (PK)
price
updated_on
Requirement
- to sync price_main from item_price table.
- if the price is the same, it is not necessary to update the price_main table.
need help with sql query construction...
Scenario
Customer has access to update item price list (item_price), however my application does not read directly from this table because i do not want the price to change real time. I have a separate table (price_main) to keep the price list. For price sync up, i'll be running a sql script to update everyday at a specific time. I need help with the construction here.
Table structure
item_price
item_id (PK)
item_price
price_main
item_id (PK)
price
updated_on
Requirement
- to sync price_main from item_price table.
- if the price is the same, it is not necessary to update the price_main table.
