0% found this document useful (0 votes)
4 views

AccessExercise-Sample 2

Uploaded by

mytinhsz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

AccessExercise-Sample 2

Uploaded by

mytinhsz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

INTERNATIONAL UNIVERSITY (IU) – VIETNAM NATIONAL UNIVERSITY – HCMC

Q1. [40 marks]


a. In Access, create the three tables Airports, Customer info, and Flight. Details of their components are shown
in the tables below

Arrival time
Airports ID

Emergency

Departure
Terminals

Flight per
Country

Average
number
Airport

contact

service
charge
Name

Gates

Shop

time
day
Electric
London
1 UK 4 3 store, (+44)123456 1500 $30,000.00 14:00
Heathrow
Souvenir
Coffee
Manchester
2 UK 1 25 Shop, The (+44)562134 1000 $15,000.00 7:00
International
Watch
Charles de
3 France 4 6 Souvenir (+45)235547 2000 $20,000.00 15:00
Gaule
Electric
Washington store,
4 USA 3 8 (+99)789548 100 $60,000.00 16:30
DC General
store
Coffee
Shop,
5 Tokyo Japan 2 9 Souvenir, (+22)622332 2100 $10,000.00 18:45
The
Watch
Coffee
Shop,
Chubu
6 Japan 1 4 Electric (+65)786321 1200 $9,000.00 19:20
International
store,
Souvenir
Table 4. Airports
Requirements:
- Shop: (multiple selection) contains Electric store, Souvenir, General sore, Coffee Shop, and The Watch
- Emergency contact number: the format should follow the style “(+55)555555”
- Flight per day: receives number only
- Average service charge: currency with 2 decimal places
- Departure time: the format should follow the style “15:00”
- Arrival time: the format should follow the style “15:00”
- Others: Use appropriate arguments to choose the suitable data types
Booking status

Flight number
Email address
Customer ID

First Name

Last Name

Insurance
payment

payment
Date of
Genre

Femal
1 Mary Baker [email protected] $1,500.00 02/01/2020 AF350
e
Page | 1
INTERNATIONAL UNIVERSITY (IU) – VIETNAM NATIONAL UNIVERSITY – HCMC

2 John Police Male [email protected] $1,700.00 05/04/2020 JA380


3 George Parker Male [email protected] $800.00 02/01/2020 CP767
4 Jason Statham Male [email protected] $2,000.00 04/06/2020 VN777
Femal
5 Margaret Pole [email protected] $1,000.00 06/05/2020 SA787
e
6 Tony Bruce Male [email protected] $1,900.00 03/03/2020 SA787
Table 5. Customer info
Requirements:
- Email address: hyperlink
- Booking status: Yes/No
- Insurance payment: currency with 2 decimal places
- Date of payment: the format should follow the style day/month/year
- Others: Use appropriate arguments to choose the suitable data types

Allowed carry luggage


Booked customers

Flight ticket value


Flight number

Airplane Type

Investment

Airport ID
Capacity

Discount
Airlines

AF350 Air France Airbus 241 230 $10,300,000.00 $1,500.00 1 1


Cathay
CP767 Boeing 375 375 $9,400,000.00 $900.00 2 3
Pacific
Japan
JA380 Airbus 853 800 $8,000,000.00 $2,000.00 1 5
Airlines
Singapore
SA787 Boeing 290 290 $8,000,000.00 $1,800.00 1 4
Airlines
Thai
TB777 Boeing 550 550 $7,000,000.00 $600.00 1 2
Airways
Vietnam
VN777 Boeing 550 540 $6,000,000.00 $1,400.00 2 6
Airlines
Table 6. Flight
Requirements:
- Capacity: number with no decimal places
- Booked customers: number with no decimal places
- Investment: currency with 2 decimal places
- Flight ticket value: currency with 2 decimal places
- Allowed carry luggage: only positive value is allowed; if not, a warning “Only positive value” appears
- Discount: Yes/No
- Others: Use appropriate arguments to choose the suitable data types
[30 marks]
b. Create relationships of the 3 tables. Known that,

Page | 2
INTERNATIONAL UNIVERSITY (IU) – VIETNAM NATIONAL UNIVERSITY – HCMC

- Table Airports and Table Flight: One-to-Many relationship.


- Table Flight and Table Customer info: One-to-Many relationship.
Show clearly these relationships. The information that indicate connections among the tables have been
mentioned in the descriptions of Table 4-Table 6 above.
[10 marks]

Q2. [20 marks]


Use the tables in Q2 to create
a. Booked status query which shows the full name (Last name and First name), Genre, Email address and
Booking status, especially, the Booking status must be already booked.
[4 marks]
b. TrueTicketValue query shows Airlines, Discount and Flight ticket value. Given that the Discount is selected
and create a new field True Value where True Value = Flight ticket value+200.
[6 marks]
c. Profit checked query shows Airlines and Investment. Besides,
i. Create new field Cost where Cost = Flight per day*Average service charge
ii. Create new field Analysis where based on the field Cost in part i, if the difference between Cost and
Investment is greater than 0, show “Profit”, otherwise, show “Undetermined”
[10 marks]

Page | 3

You might also like