Hi, I am updated my database table each day with a few thousand rows of data.
The data relates to products and contains a unique product code
Each day sales information comes in about the product and the update may also contain new products.
Data is like this:
time_stamp: 1267354256
prod_id: DB78HAL
day_sales: 308.88
time_stamp: 1267354256
prod_id: J8K8HAL
day_sales: 343.77
time_stamp: 1267354256
prod_id: GEF8H34D
day_sales: 25.84
time_stamp: 1267354256
prod_id: JEELH55
day_sales: 557.81
Then the next day
time_stamp: 1267854251
prod_id: DB78HAL
day_sales: 257.22
time_stamp: 1267854251
prod_id: J8K8HAL
day_sales: 45.75
time_stamp: 1267854251
prod_id: PET58GY
day_sales: 587.83
time_stamp: 1267854251
prod_id: GEF8H34D
day_sales: 789.80
time_stamp: 1267854251
prod_id: JEELH55
day_sales: 507.85
So you see the third entry is a new one.
What would be the best way to find these new arrivals ?