kpamrutha
04-17-2009, 01:15 AM
Hi,
I have two tables:
TableName1 : Transportation
Fields : id,order_id, shipzip, shipstate
No. of records: 984750
TableName2 : Blanks
Fields : id,order_id, shipzip, shipstate
No. of records: 465780
Table Blanks is a subset of Table Transportation. Table Blanks has all shipzip as blanks and shipstate as NULL. I want to update Blanks table for shipzip and shipstate fields from table Transportation such that order_id from Blanks = order_id from Transportation AND shipstate from Transportation is not NULL.
I have tried couple of update staements, insert statements, conditional statements but nothing seems to work. I would appreciate any suggestion on how to proceed with this. I am a lot frustrated now. Please help.
Thank you,
Amrutha.
I have two tables:
TableName1 : Transportation
Fields : id,order_id, shipzip, shipstate
No. of records: 984750
TableName2 : Blanks
Fields : id,order_id, shipzip, shipstate
No. of records: 465780
Table Blanks is a subset of Table Transportation. Table Blanks has all shipzip as blanks and shipstate as NULL. I want to update Blanks table for shipzip and shipstate fields from table Transportation such that order_id from Blanks = order_id from Transportation AND shipstate from Transportation is not NULL.
I have tried couple of update staements, insert statements, conditional statements but nothing seems to work. I would appreciate any suggestion on how to proceed with this. I am a lot frustrated now. Please help.
Thank you,
Amrutha.