18. Student Database
Field Name
Student No St_Name Address Date of birth
111 MahindaGamage Rahula Road, Matara 1975/08/09
Record s
112 Nimal Silva Galle Road, Matara 1980/09/09
115 Amila Ram kim Isadeen Town Matara 1988/08/09
Student No Ms Word Ms Excel Ms. Access Ms.Power
111 50 60 60 75
112 60 75 60 50
115 70 50 60 50
20. Create data table in a database
• Click “Create” Tab
• Then click “Table Design” on the reborn,
• Then display table design view
• Then type “field Name” and select “Data type”
• Press “Tab” Key on the keyboard.
• Type other field Name
• After click “save” button
• Then type table name
23. Data type
Data type Description Size
Text Alpha numeric Up to 255
Memo Sentences and Up to 64000
paragraph
Number Numeric Data Integer or long
integer
Date/time Date and time Format
date/time
Auto Unique generate by Long integer
number Access
Yes/no Boolean Data Yes/No
25. • Field Size – Data type ද text ද ද ද -
ද ද ද
ද ද ද ද දtype ද ද ද ද
ද ද ද ද ද ද
• Format - Data type ද text ද ද“>” or “<“type
ද ද
ද ද ද ද
ද ද ද
• Input Marks - ද ද ද Field ද ද
ද ද ද ද ද
ද ද ද
ද ද දformat ද ද ද ද ද ද
ද ද ද ද ද
ද ද ද ද දද ද ද ද ද - index no
ද ද ද ද ද ද ද ද
ද ද I.M- L999)
ද ද
• Validation Rule - ද ද ද Field ද ද
ද ද ද ද ද
control value or text , ද ද ද ද ද ද ද
ද ද ද ද ද ද ද
ද ද ද ද
ද ද ද
• Validation Text- massage text ද ද ද
ද ද
ද ද ද
ද ද
• Default Value - ද ද ද Field ද ද ද ද
ද ද ද ද ද ද ද
26. 1. Create a Database , Name “Student”
2. Create Following Main Table in Object ,
Field Name DataType Field Properties
ID AutoNumber
StuNo Number
FName Text F.S.20
LName Text F.S. 25
Address Text F.S. 35
Sex Text F.S. 1
Date of Birth Date Short Date
3. Set the Primary key
4. Save a table in “ student Detail”
5. 10 Student Records Enter data in student Detail table
27. 1. Create second table is Mark Sheet
Field Name Data type Field Properties
StuNo Number
Sinhala Number integer
English Number Integer
Mathematics Number integer
ICT Number integer
2. Set the primary Key
3. Enter 10 student record s’
28. Create Relationship
• A collection of related tables is called a relational
database
• You connect the records in the separate tables
through a common field
• A primary key is a field, or a collection of
fields, whose values uniquely identify each record
in a table
• When you include the primary key from one table
as a field in a second table to form a relationship
between the two tables, it is called a foreign key
in the second table
29. Relationship Type
• There are three type of relationship,
• One - to – one
• One - to – Many
• Many – to- Many
30. Click on it
Click on “show table” button
Then Add the table.
Double click on relationship field name
Then select field name to relation
Save button click
31. One to One type
Student Detail Student Marks
Table Table
StuNo StuNo
Name Sinhala
Address English
Sex Mathmatics
Dob ICT
Grade
• ද ද ද ද ද ද ද ද ද field ද ද ද ද ද ද ද
ද ද ද ද ද ද ද ද ද ද ද
ද ද ද ද ද ද ද ද දද දfield ද Primary Key
ද ද ද ද ද ද ද ද
field ද දද දද ද ද ද ද relation type ද
ද ද ද ද ද ද දone
to one ද දද ද ද ද ද
ද ද ද ද