Computing.Net > Forums > Database > comparing two queries in Access DB

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

comparing two queries in Access DB

Reply to Message Icon

Name: T-boy
Date: February 10, 2009 at 15:11:27 Pacific
OS: Windows XP
Subcategory: General
Comment:

I have one main table that feeds three queries named “Qry_MBA”, ”Qry_BBA”, and “Qry_AS”, and they all consist of (Student_ID, Student_Name, and Degree). How can I have one student to appear in Qry_MBA only, even though he or she have all the three Degrees? Or How can I have one student to appear in Qry_BBA alone, even though he or she have BBA, and AS Degrees?
Would be great if I can get some help from here, on this issue!
Thanks in advance.



Sponsored Link
Ads by Google

Response Number 1
Name: quackadilly
Date: February 12, 2009 at 01:06:56 Pacific
Reply:

When creating a query, you can use non-displayed columns to further sort your data. You do this by unchecking the box for that column.

If you have 3 separate columns, each for a different degree you can use these hidden columns in the query to exclude displaying the student where a higher degree is present.

For example:

3 columns, AS, BBA, MBA.

If the student has an AS and a BBA your hidden column for the AS query would draw from the BBA column in the main table. In the criteria cell you would type something like this: "<> YES"....if "YES" is the keyword to show that they have that degree. Doing so will eliminate anyone with an AS aswell as a BBA.

Might be a little confusing reading this, it's much easier to show someone how to do this.


-1
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Database Forum Home


Sponsored links

Ads by Google


Results for: comparing two queries in Access DB

How to edit query in MS Access using batch www.computing.net/answers/dbase/how-to-edit-query-in-ms-access-using-batch/682.html

Access Query/Find Similar Records www.computing.net/answers/dbase/access-queryfind-similar-records/177.html

Merging DB's in Access www.computing.net/answers/dbase/merging-dbs-in-access/34.html