I am attempting to combine two columns (from separate tables) in an access query based on the value of 2 other columns in the tables (semester and student_name in this instance), for instance if I had the following:
and
how could I make a query to get the final result of:
where the third and fourth semester (only the third and fourth) sections of some_data have been combined based on student_name (there may be some names that are in one table, but not in another, etc, although that is not shown in these examples). I am not very experienced with access queries at this point in time, so I am having a difficult time accomplishing this. Any help is much appreciated, thanks!
If you just want to see the results before they are applied you can click the
Datasheet View
button instead of theRun
button.If you want to leave your two tables intact and just have a view you can do this:
with an optional
where
clauseThe
Nz
function here uses data from the first parameter unless that parameter is null, in which case it uses the value from the second parameter.something like