Microsoft Access Update Query Examples
Q: Write a Microsoft Access query to update a specific column value in a table for a given record using the UPDATE statement.
- Microsoft Access
- Senior level question
Explore all the latest Microsoft Access interview questions and answers
ExploreMost Recent & up-to date
100% Actual interview focused
Create Microsoft Access interview for FREE!
To update a specific column value in a table for a given record in Microsoft Access, you can use the UPDATE statement. Here's an example query:
UPDATE table_name
SET column_name = new_value
WHERE condition;
Replace "table_name" with the actual name of the table you want to update. Replace "column_name" with the name of the column you want to update, and "new_value" with the new value you want to assign to that column. "condition" specifies the condition to identify the specific record you want to update.
For instance, if you have a table named "Employees" and you want to update the "salary" column to a new value of 5000 for an employee with an "employee_id" of 12345, the query would be:
UPDATE Employees
SET salary = 5000
WHERE employee_id = 12345;
Executing this query will update the "salary" column to 5000 for the employee with the specified employee ID.
Remember to adjust the table name, column name, new value, and condition based on your specific database schema and requirements.


