Vous êtes sur la page 1sur 7

Hashemite University

Access Assignments
Computer Skills
(110108116)
3 Credit Hours
Faculty of Science
Second Semester
2011/2012
!" #$%&'$ ()&*+'$ ,-./!&'$
Assignment 1
1. Create a new database named Employees, and then create a new able with the
!ields as shown below.
". #a$e the table as #ta!!, with no primary %ey.
3. &o to 'atasheet $iew and enter the !ollowin( records.
). *ac% to desi(n $iew and create +oo%up ,i-ard !ield !or the &ender !ield, then
!ill it with .ale or /emale.
0. 1pen the #ta!! table in the desi(n $iew and do the !ollowin(2
a. 3d4ust the !ield si-e in #urname to "0.
b. Con$ert all te5t in the #urname !ield to upper case.
c. Con$ert all the te5t in the 6nitials !ield to lower case
d. 3d4ust the &rade !ield si-e to be #in(le.
e. /ormat the salary !ield to Euro with 1 decimal place.
!. /ormat the #tartin( 'ate !ield to +on( date.
(. 3dd a .arried !ield to the #ta!! table, and !ormat the data type to
7es89o, and then !ill it.
h. Enter 8 as a $alue into the &rade !ield o! e$ery new record.
i. /or the &rade !ield, create a $alidation rule that will only accept the
$alues less than 10, and create a $alidation te5t to (o with it.
Assignment 2
1. Create a new database then Create a eams table with the !ollowin( !ields:
". #elect the team6' !ield as primary %ey
3. Create another table called 'ri$ers, with the !ollowin( !ields
driver012 3uto9umber, primary ;ey
firstname2 e5t , si-e "0
lastname 2 e5t upper case
date3f4irth: 'ate8ime !ormat is <.edium 'ate2, the date should
between 1818"000 and 1818"010
points2 9umber byte
team2 9umber
). Create a relationship between team6' in eams table and team !ield in
'ri$ers table. Clic% the En!orce =e!erential 6nte(rity.
0. ype the !ollowin( data into the eam table.
6. 1pen the 'ri$er table and enter the !ollowin( data:
>. ry enterin( the !ollowin( additional row in 'ri$er table, what happens?
6 4ohn (oer(e 1818"00) 6> 6>
8. .odi!y the row so that it can be sa$ed.
@. 'esi(n a Auery called <eams2 to select team name, en(ine, and points.
10. 'esi(n a Auery called <'ri$ers2 to select /irst 9ame, dri$er6', points, and
team.
11. 'esi(n a Auery called <Auery"02 to select team, team name, en(ine, and
dri$er6'.
Assignment 5
1. Create a new blan% database call it <C' Collection2 and sa$e it on des%top.
". Create new two tables with the !ollowin( names, !ield names, and
appropriate data types:
3lbum 3uthor
/ield 9ame 'ata ype /ield 9ame 'ata ype
C' 9o
itle
+en(th
Burchased
B; is C1 6o
9umber
e5t
9umber
'ate8ime
3uthor 9o
3uthor 9ame
3ddress
C'C9o
B; is Author 6o
9umber
e5t
e5t
9umber
3. Chan(e the Burchased !ield in 3lbum table to be .edium 'ate !ormat.
). Enter the !ollowin( records into 3lbum table:
1, =oc%, 00, "8"081@@0
", Cool, 60, 838081@@8
3, Bop, )8, @888"000
), =oc%, 60, 881"8"00"
0. Enter the !ollowin( records into 3uthor table:
10, Dane, 1>0 Cider Blace, "
11, Chapman, 1) the Enion *uildin(, )
1", .oor, Enit 0 *oreham, 3
13, #mith, 16 &rain(er Bar%, 1
6. .a%e a relationship between 3uthor table and 3lbum table. ,hat is the type
o! this relation?
>. Create a new Auery that returns only C' 9o, itle, and +en(th !rom 3lbum
table, where title must start with B and end with B. sa$e it with the name BB
Fuery.
8. Giew only the records in 3lbum table that ha$e len(th (reater than 00, and
sa$e the result as Auery call it .7 FEE=7.
@. Ese /orm ,i-ard to create a new !orm call it 3lbums 6n!ormation on 3uthor
table that contain all !ields.
10. Create a new !rom !or 3lbums table !or all !ields.
Assignment 7
1. Create a database name it University.
". Create the !ollowin( two tables:
1epartment
1ept801 9umber Brimary ;ey
1ept86ame e5t =eAuired
9mployee
9mp801 9umber B;
6ame e5t /ield si-e 10, upper case
4irth1ate 'ate8ime 3!ter 18181@60
1ept 01 9muber
Active 7es89o
3. Establish a relationship between the 'epC6' in 'epartment table and
'ep 6' in Employee table
). /ill the !ollowin( data:
1ept801 1ept86ame
1 En(
" 6
9mp801 6ame 4irth1ate 1ept 01 Active
100 #arah @81"86) 1 7es
101 Dim 88")8>0 " 7es
10" &lenn 08888) 1 9o
0. Create a Auery that displays 6', 9ame, 'epC6' !or all 3cti$e Employees
only, sa$e the Auery as <3cti$eCEmployees2.
6. Create a !orm !or Employee table with all !ields
>. Create a report !or Employees (rouped by 'epC6', then sort the table in
ascendin( order accordin( ti <9ame2 !ield

Vous aimerez peut-être aussi