Query with too many variables
Posted on 2013-01-03
I am trying to write an update query but I can't get the initial select query right. I am hoping I am making this more difficult than it needs to be but I am stuck.
I have two tables - Temp (shortened for here) and History. They have all the same fields (I perform calculations in temp before appending it to history) and the link is ticker. I need to write a query to return values where ticker in the two tables is equal, quarter from history references the field on a form, and category from one table does not equal category from the other.
In other words, I want the values where
is compared to
and values where the category is different will be returned.