Вы находитесь на странице: 1из 7

Computer Skills

(110108116)
3 Credit Hours

Hashemite University
Faculty of Science

Access Assignments

Second Semester
2011/2012

Assignment 1
1. Create a new database named Employees, and then create a new Table with the
fields as shown below.

2. Save the table as Staff, with no primary key.


3. Go to Datasheet view and enter the following records.

4. Back to design view and create Lookup Wizard field for the Gender field, then fill
it with Male or Female.
5. Open the Staff table in the design view and do the following
a. Adjust the field size in Surname to 25.
b. Convert all text in the Surname field to upper case.
c. Convert all the text in the Initials field to lower case
d. Adjust the Grade field size to be Single.
e. Format the salary field to Euro with 1 decimal place.
f. Format the Starting Date field to Long date.
g. Add a Married field to the Staff table, and format the data type to Yes/No,
and then fill it.

h. Enter 8 as a value into the Grade field of every new record.


i. For the Grade field, create a validation rule that will only accept the values
less than 10, and create a validation text to go with it.

Assignment 2
1. Create a new database then Create a Teams table with the following fields:

2. Select the teamID field as primary key


3. Create another table called Drivers, with the following fields
driverID:
AutoNumber,
primary Key
firstname:
Text ,
size 20
lastname :
Text
upper case
dateOfBirth:
Date/Time
format is Medium Date, the date should
between 1/1/2000 and 1/1/2010
points:
Number
byte
team:
Number
4. Create a relationship between teamID in Teams table and team field in Drivers
table. Click the Enforce Referential Integrity.
5. Type the following data into the Team table.

6. Open the Driver table and enter the following data:

7. Try entering the following additional row in Driver table, what happens?
6

john

goerge

1/1/2004

67

67

8. Modify the row so that it can be saved.


9. Design a query called Teams to select team name, engine,
and points.
10.
Design a query called Drivers to select First Name,
driverID, points, and team.
11.
Design a query called query20 to select team, team
name, engine, and driverID.

Assignment 3
1. Create a new blank database call it CD Collection and save it
on desktop.
2. Create new two tables with the following names, field names,
and appropriate data types:

Album
Field Name
CD No
Title

Data Type
Number
Text

Author
Field Name
Author No
Author Name

Data Type
Number
Text

Length
Purchased

Number
Date/Time

PK is CD No

Address
CD_No

Text
Number

PK is Author No

3. Change the Purchased field in Album table to be Medium Date


format.
4. Enter

the following records into Album table:


1, Rock, 50, 2/20/1995
2, Cool, 60, 3/5/1998
3, Pop, 48, 9/8/2000
4, Rock, 65, 8/12/2002

5. Enter

the following records into Author table:


10, Jane, 175 Cider Place, 2
11, Chapman, 14 the Union Building, 4
12, Moor, Unit 5 Boreham, 3
13, Smith, 16 Grainger Park, 1

6. Make a relationship between Author table and Album table.


What is the type of this relation?
7. Create a new query that returns only CD No, Title, and Length
from Album table, where title must start with P and end with P.
save it with the name PP Query.
8. View only the records in Album table that have length greater
than 50, and save the result as query call it MY QUERY.
9. Use Form Wizard to create a new form call it Albums
Information on Author table that contain all fields.
10.

Create a new from for Albums table for all fields.

Assignment 4
1. Create a database name it University.
2. Create the following two tables:
Dept_ID
Dept_Name

Department
Number
Text

Emp_ID
Name
BirthDate
Dept ID
Active

Employee
Number
Text
Date/Time
Nmuber
Yes/No

Primary Key
Required
PK
Field size 10, upper case
After 1/1/1960

3. Establish a relationship between the Dep_ID in Department


table and Dep ID in Employee table
4. Fill the following data:

Dept_ID
Eng

IT

Emp_ID
100
101
102

Dept_Name

Name
Sarah
Jim
Glenn

BirthDate
9/12/64
8/24/70
5/8/84

Dept ID
1
2
1

Active
Yes
Yes
No

5. Create a query that displays ID, Name, Dep_ID for all Active Employees
only, save the query as Active_Employees.

6. Create a form for Employee table with all fields

7. Create a report for Employees grouped by Dep_ID, then sort the table in
ascending order according ti Name field

Вам также может понравиться