May 13 2024 01:57 PM
I have a problem with creating a specific query.
You have three tables: one for student information including name, class (ranging from 1 to 5), and nationality (either your a national or a foreigner). The second table shows the tuition fees and registration fee for nationals across the five classes, and the third table does the same for foreigners.
I would like someone to help me on how I can go about with this on accesss, so as to retrieve the appropriate fee information based on a student's nationality and class, whether they are a national or a foreigner. So, if you input "national class 3," Access should display the fee for a national student in class 3, including registration and fee. Similarly, if you input "foreigner class 4," Access should show the fees for a foreign student in class 4. Thanks for the help in advance
May 13 2024 04:56 PM
May 14 2024 11:58 PM
May 15 2024 12:03 AM
May 15 2024 12:04 AM
SolutionMay 15 2024 12:50 AM
May 15 2024 01:34 AM
source table:
Name Class Nationality
John | 1 | National |
Emily | 2 | Foreigner |
Class Tuition_Fee Registration_Fee
1 | 1000 | 50 |
2 | 1200 | 60 |
result with join:
Name Class Nationality Tuition_Fee Registration_Fee
John | 1 | National | 1000 | 50 |
Emily | 2 | Foreigner | 1200 | 60 |
Class is 1:
Name Class Nationality Tuition_Fee Registration_Fee
John | 1 | National | 1000 | 50 |
May 15 2024 02:50 AM
May 15 2024 04:57 AM
May 15 2024 12:04 AM
Solution