Guest_imported
New member
- Jan 1, 1970
- 0
Hi, I've posted this question here before, but none of the suggestions have worked; I'm now thinking that I've finally found something impossible to do with php/mySQL
I have 2 "nearly" identical tables. One table is old, one is new.
The new table has just a few things MORE than the old table has. What kind of query will print to a file, the list of the newly added stuff (red items) in the new table?
Were talking huge tables. In my example below, I want to limit it to only RED items that have been ADDED.
(tables were created as follows)
CREATE TABLE Old_table (
color varchar(20) NOT NULL default '',
item varchar(20) NOT NULL default '',
price decimal(4,2) NOT NULL default '0.00',
PRIMARY KEY (item),
);
Let's say in the "old" table, I have:
red car 2000.00
green truck 1000.00
red apple 2.00
red boat 3000.00
In the "new" table, I have:
green truck 1000.00
purple car 2000.00
red apple 2.00
red boat 3000.00
red blanket 15.00
The exact result I would want to see is:
red blanket 15.00
Thank you!!
I have 2 "nearly" identical tables. One table is old, one is new.
The new table has just a few things MORE than the old table has. What kind of query will print to a file, the list of the newly added stuff (red items) in the new table?
Were talking huge tables. In my example below, I want to limit it to only RED items that have been ADDED.
(tables were created as follows)
CREATE TABLE Old_table (
color varchar(20) NOT NULL default '',
item varchar(20) NOT NULL default '',
price decimal(4,2) NOT NULL default '0.00',
PRIMARY KEY (item),
);
Let's say in the "old" table, I have:
red car 2000.00
green truck 1000.00
red apple 2.00
red boat 3000.00
In the "new" table, I have:
green truck 1000.00
purple car 2000.00
red apple 2.00
red boat 3000.00
red blanket 15.00
The exact result I would want to see is:
red blanket 15.00
Thank you!!