0% found this document useful (0 votes)
9 views2 pages

Access EXERCISE 001

access

Uploaded by

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

Access EXERCISE 001

access

Uploaded by

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

1.

1 Exercise 1
1. In Microsoft Access, create a new database called StudInfo to hold student
information.
2. Create the following tables in design view. The table name is given on top.

STUDENT_MST

Field Name Data Type Field Other Information


Size
STUDENT_ID Text 10 Primary Key
Input Mask A/99/999
Caption – Student ID
STUD_NAME Text 50 Required
Do not allow zero length
Caption - Name
DOB Date/Time Format – Medium Date
Required
Caption – Date of Birth
STUD_SEX Text 1 Required
Do not allow zero length
Default value - “M”
Validation Rule – Allow only “M”
or “F”
Validation Text – “Invalid Sex”
Indexed with duplicates
Caption - Sex

SUBJECT_MST

Field Name Data Type Field Other Information


Size
SUBJECT_ID AutoNumber Long Primary Key
Integer Caption – Subject ID
SUBJECT_NAME Text 50 Required
Do not allow zero length
Caption – Subject Name
CeIT
EDUCATION
ENROLMENT_MST

Field Name Data Type Field Other Information


Size
ENROLMENT_ID AutoNumber Long Primary Key
Integer Caption – Enrolment ID
STUDENT_ID Text 10 Required
Do not allow zero length
Input Mask A/99/999
Indexed with duplicates
Caption – Student ID
SUBJECT_ID Number Long Required
Integer Indexed with duplicates
Caption – Subject ID
MARKS Number Integer No decimal places
Indexed with duplicates
Validation Rule – Only marks less
than or equal to 100
Validation Text – Invalid Marks
Caption - Marks

3. Enter the following data into the above tables.

STUDENT_MST

STUDENT_ID STUDENT_NAME DOB STUD_SEX


A/00/045 Aruni 05-Jul-1980 F
E/00/230 Kumara 31-Mar-1979 M
A/99/156 Anura 02-Feb-1982 M

SUBJECT_MST

SUBJECT_ID SUBJECT_NAME
1 Geography
2 History
3 Economics
4 Mathematics
5 Zoology

ENROLMENT_MST

ENROLMENT_ID STUDENT_ID SUBJECT_ID MARKS


1 A/00/045 1 68
2 A/00/045 2
3 A/00/045 3 85
4 E/00/230 4 76
5 A/99/156 2
6 A/99/156 3 42

Copyright © 2005 by Information Technology Center, University of Peradeniya 2

You might also like