Hi Intellects,
I've two tables :
table_1 - ControlID, Code, ReportedDate, FiledDate Age, AgeCategory, etc.,
table_2 - ControlID, Code, ReportedDate, FiledDate etc.,
ControlID
in table_1
is Foreign key whereas not in table_2. I need to update ReportedDate in table_1 with ReportedDate in table_2 and Age and AgeCatogory has been calculated and fine.
I want to update those three columns in table_1, where ControlID, FiledDate and Code in both are identical.
Now far I've :
UPDATE table_1 SET ReportedDate=table_2.ReportedDate, Age='<value>' AgeCategory='<value>'
WHERE table_1.ControlID=table_2.ControlID AND
table_1.FiledDate=table_2.FiledDate AND table_1.Code=table_2.Code
If anyone has the idea of how could it be resolved???
Anyhelp would be appreciated...
EDIT:
I'm getting error saying MySQL Syntax error at 'FROM ...'