Review For
Review For
REVIEW FOR
MID-TERM
SOLUTION
FOR
REVIEW
MS ACCESS EXERCISES
a. Creat a new database and save it looks like
sample
Step 1: Open Access -> Blank database -> Set up
name of your access with form
[StudentFirstNameLastName_StudentID.accdb
-> Create
Step 2: Choose Table fields -> View -> Design view
-> Rename with required names -> OK
Step 3: Fill in the given information -> Save
Step 4: For next table, Create -> Table and do other
similar steps.
Solution:
Solution:
MS ACCESS EXERCISES
b. Creat the relationship between 3
tables.
Step-by step
Step 1: Create -> Query
Step 2: At Add Tables Box
, choose the
table that is required (Boo
ks)
Step 3: Add fields and crite
ria
Criteria: >=1994 for year a
nd Between
15 and 25 for Qty_On_Han
d
Step 4: Click Run to get th
e results and
Save it.
c.List the ISBN, title, author, year of publication and quantity on hand of all books published since 1994 and number of items in
the storage between 15 and 25.
d.List the ISBN, title, year of publication, publisher code and publisher name of all books contains the word “Business”
published before 1992 or contains the word “Database” published after 1992.
Step-by step
Practice this task
similar to task c.
To filter all book
s containing
"Business", you u
se Like"*Busines
The criteria for b s*".
ooks published b
1992 is <1992. e f or e
Similar, for anoth
er situation, all b
contain "Databas ooks
e", you use
Like"*Database*".
The criteria for b
ooks published a
1992 is >1992. f te r
Then, Runt it to g
et the result and
s a ve
d.List the ISBN, title, year of publication, publisher code and publisher name of all books contains the word “Business”
published before 1992 or contains the word “Database” published after 1992.
e. For all publishers in which we have book items, list the code, name of the publisher and the number different of book
items published by that publisher
Step-by step
Step-by step
P r a c tic e th is
ta s k s i m i l a r
- T o lis t a ll d to t a s k c .
e t a i l s o f a ll c
e n te r in g , y o u s to m e r s b y
u s h o u ld f i l l
C u s t_ N a m e th e c r i te r i a
by of
L i k e [E n t e r
t h e f i r s t l e tt
Then, Run a e r] & "* "
n d e n t e r th e
y o u n e e d to l e tte r th a t
fin d .
A n d S a v e th
i s q u e r y w it
h th e n a m e
f. List all details of all customers by entering a first letter of their name (i.e., enter D to display Dwight Cole).
g. List name, phone number and email address of all customers whose last name got at least 5 characters and the last
character is an ‘e’ (i.e., Marque, Clive, Michelle).
Step-by step:
Practice this task with Query desi
gn,
do similar steps like before questi
ons.
To find the customers whose last
name got at least 5 characters and
the
last character is "e", we fill in the
criteria of Cust_name is Like "* *?
???
e"
Then, Run this query and Save it
g. List name, phone number and email address of all customers whose last name got at least 5 characters and the last
character is an ‘e’ (i.e., Marque, Clive, Michelle).
h. List all details of all publishers who have email.
Hint:
In Criteria of email, you can fill
Like"*@*" or "Is Not Null" to filter
the publishers who have email
h. List all details of all publishers who have email.
i. List all details of all invoice(s) in a given date which is prompted by the user (i.e. Enter a date: 26/04/2017).
Hint:
Practice this task
similar to task f.
[Enter the date]
i. List all details of all invoice(s) in a given date which is prompted by the user (i.e. Enter a date: 26/04/2017).
j. List customer name, transaction dates, quantity, unit price and total amount for each transaction date (header Total
Amount, quantity x unit price) of the customer’s name Sean Losche. Sort in descending order.
Hint:
- To find these details of Customer
's name
Sean Losche, let's fill "Sean Losche
" in the
Criteria of Cust_Name column.
- Set the name the collum of Tota
l Amount
and evaluate it : Total Amount:[Qty
]*
[Unit_Price]
- Setting Descending Order just ap
ply for
only 1 column (field)
.
j. List customer name, transaction dates, quantity, unit price and total amount for each transaction date (header Total
Amount, quantity x unit price) of the customer’s name Sean Losche. Sort in descending order.
ank
To do list
Th
!
can review by Quiz in Blackboard
you
2 Practice these
exercises more.