Using the SQL server agent jobs, I am try to update a record in a table. The record in question has todays date as a key field. I am trying to update the field called "AP".
My SQL code is as follows:
UPDATE dbo.Execsum set AP=SELECT sum(amt_1 + amt_2) from APOPNFIL_SQL
I need help with the WHERE clause (today's date) and I am getting a syntax error near the SELECT statement.
Can anyone help with this?
Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
My SQL code is as follows:
UPDATE dbo.Execsum set AP=SELECT sum(amt_1 + amt_2) from APOPNFIL_SQL
I need help with the WHERE clause (today's date) and I am getting a syntax error near the SELECT statement.
Can anyone help with this?
Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports