Creating A Relational Database 3

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Creating a Relational Database

One-to-one Relationship
If only a row of a table is related to a row of another table, it is called a
one-to-one relationship.

One-to-many Relationship
If each record of a table is related to several records of the other table, this
is called a one-to-many relationship.
Many-to-many Relationship
If a record of a table is related to several records of another table and if a
record of that related table is related to several records of the other table, there is a
many-to-many relationship between those two tables.
Creating a Relational Database Using Database
Management System Software
The following table lists the data types available in desktop databases in Access 2013 and later
versions.

Data Type Usage Size


Short Text (formerly Alphanumeric data (names, Up to 255 characters.
known as “Text”) titles, etc.)
Long Text (formerly Large amounts of Up to about 1 gigabyte (GB),
known as “Memo” alphanumeric data: sentences but controls to display a long
and paragraphs. See The text are limited to the first
Memo data type is now called 64,000 characters.
“Long Text” for more
information on the Long Text
details.
Number Numeric data. 1, 2, 4, 8, or 16 bytes.
Large Number Numeric data. 8 bytes.
For more information,
see Using the Large Number
data type.
Date/Time Dates and times. 8 bytes.
Date/Time Extended Dates and times. Encoded string of 42 bytes
For more information,
see Using the Date/Time
Extended data type.
Currency Monetary data, stored with 4 8 bytes.
decimal places of precision.
AutoNumber Unique value generated by 4 bytes (16 bytes for
Access for each new record. ReplicationID).
Yes/No Boolean (true/false) data; 1 byte.
Access stores the numeric
value zero (0) for false, and -1
for true.
Special Features in Related Tables

 As soon as the values of a primary key field of the Student Table are updated
using 'Referential Integrity,' the foreign key field values of the related table are
automatically changed.

 Further, when a record of the Student Table is deleted, the related records of
the related table are automatically deleted.

 First, data should be entered to the student Table. After that, data can be
entered to the Marks Table.

 After entering the marks to the Student Table, data can be entered to the
Marks Table through it.

 For this, click on the + mark which is in front of the Admission Number of
the Student Table. Then data can be entered to Marks Table easily.

You might also like