Link to home
Start Free TrialLog in
Avatar of Steve Eckerman
Steve Eckerman

asked on

SQL Query Problem

I have a query where I am trying to update a field to the new fiscal year with the matching field from the old fiscal year.   It looks like this but it does not work.  Any ideas?

UPDATE [SELECT Mgr, PSINO, FiscalYear FROM PartForecast WHERE FiscalYear=2013; ] AS A INNER JOIN [SELECT Mgr, PSINO, FiscalYear FROM PartForecast WHERE FiscalYear=2012; ] AS B ON A.PSINO=B.PSINO SET A.Mgr = B.Mgr;
Avatar of Steve Eckerman
Steve Eckerman

ASKER

Basically what I am trying to do is match the Manager field (Mgr) to the PSI part number (PSINO) they are responsible for from fiscal year 2012 to 2013.
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That is correct.
Great Answer!  Worked like a champ!!!  Thanks!!!