How to make queries in MS Access which require three columns to match?
OK
say I have an access table with 4 columns, A, B, C, and D. How can I make a query which requires column A = x, B=Y, and C=Z and return the value in column D?
Thanks for any help. I am making my queries in design view in access 2003.
Just use Queries and get all table you would like to use for your requirement, drag the columns to relate the tables, more than one relations are permitted, use join type like outer joins by double clicking the relation path/line. select the field/s you would like to show and you can further add criteria to it!!! For more goto http://www.utteraccess.com/forums/
March 3rd, 2010 at 6:37 am
Well this is kind of rusty but lets see
SELECT D FROM [table here] WHERE A==x && B==y && C==z
keep in mind that if those values are Strings you are better of using like this: A LIKE x
References :
March 3rd, 2010 at 7:14 am
Just use Queries and get all table you would like to use for your requirement, drag the columns to relate the tables, more than one relations are permitted, use join type like outer joins by double clicking the relation path/line. select the field/s you would like to show and you can further add criteria to it!!! For more goto http://www.utteraccess.com/forums/
References :
http://www.utteraccess.com/forums/