php - MySQL: Compare two TABLES and list rows that are new? -
we have daily data feed. need determine rows new. (it's long story, there no record numbers rows , aren't going any.) need able identify rows new since previous data feed. file comes in json , have been putting mysql table other purposes.
how take yesterday's table , compare today's table, , display rows have been added since yesterday? can done in mysql, or need of php?
if doing in php, i'm thinking search today's table yesterday's table, , flag (an added column) in today's table called new "n" when it's found. "y" default means row new. using mysql select new="y" , display new fields. how this? overlooking better method? thanks!
if have 2 separate tables (which how sounds description, odd) , aren't comparing literally same table, can
select partnumber today_table partnumber not in (select partnumber yesterday_table)
Comments
Post a Comment