Compare one field to another

G

Guest

I have a table that has 5 fields with 5000+ records.
Fields are:
Employee Name
Employee Budget code
Store budget code
Store Type
Hours worked.

What I want is a query that will show me the records where the Employee
budget code does not match the Store budget code.
 
M

MGFoster

Tim said:
I have a table that has 5 fields with 5000+ records.
Fields are:
Employee Name
Employee Budget code
Store budget code
Store Type
Hours worked.

What I want is a query that will show me the records where the Employee
budget code does not match the Store budget code.

SELECT EmployeeName, EmployeeBudgetCode, StoreBudgetCode, StoreType,
HoursWorked
FROM table_name
WHERE EmployeeBudgetCode <> StoreBudgetCode
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top