SlideShare a Scribd company logo
1 of 20
DATABASE MANAGEMENT SYSTEM
(DBMS)
Muhd Dembo
muhdembo@gmail.com
+2348063723325
WHAT IS A DATABASE?
A database is a collection of logically related data
files which are integrated and organized so as to
provide a single comprehensive file system.
DBMS
A Database Management System (DBMS) is
system software for creating and managing
databases. The DBMS provides users and
programmers with a systematic way to create,
retrieve, update and manage data.
EXAMPLES OF DATABASE
MANAGEMENT SOFTWARES
• Oracle RDBMS
• Microsoft SQL Server
• IBM DB2
• Teradata
• MySQL
• PostgreSQL
• MongoDB
• SAP ASE (Sybase)
• Microsoft Access
• Informix
• MariaDB
• SQLite
• FileMaker
• MemSQL
• ADABAS
• dBase
• Amazon SimpleDB
• Firebird
• EnterpriseDB
• EXASOL
ELEMENTS OF A DATABASE
• DATA: Its define as raw facts.
• FILE: A file is a collection of logically related
records.
• FIELD: A field is used to store an individual
unit of item attributes.
• RECORD: A record is a collection of logically
related fields.
MICROSOFT ACCESS
Microsoft Access is a relational database product shipped with
some of the most expensive version of Microsoft-Office.
RELATIONAL DATABASE
A relational database is a collection of data items organized
as a set of formally-described tables from which data can be
accessed or reassembled in many different ways without having
to reorganize the database tables. The relational
database was invented by E. F. Codd at IBM in 1970.
ELEMENTS OF A RELATIONAL
DATABASE
• TABLE : The Tables are the containers for all the data in
a database.
• QUERIES: Is an object of database that is used to
extract or select some records from the table based on
specified condition or criteria.
• REPORTS: For printing query results.
• FORMS: used for entering information into the table.
Lab 1.0: Launching MS Access and
creating a database.
DATA TYPES
• Short Text: Text or combinations of text and numbers,
including numbers that do not require calculating. The size
is up to 255 characters.
• Long Text: Lengthy text or combinations of text and
numbers. The size is up to 63, 999 characters.
• Number: Numeric data used in mathematical
calculations.
• Date/Time: Date and time values for the years 100
through 9999.
Cont…
• Currency: Currency values and numeric data used in
mathematical calculations involving data with one to
four decimal places.
• AutoNumber: A unique sequential (incremented by 1)
number or random number assigned by Microsoft
Access whenever a new record is added to a table.
• Yes/No: Yes and No values and fields that contain only
one of two values (Yes/No, True/False, or On/Off).
• Attachment: Files, such as digital photos. Multiple files
can be attached per record. This data type is not
available in earlier versions of Access. The size is up to
2GB.
Cont…
• OLE Object: This can store pictures, audio, video, or
other BLOBs (Binary Large Objects). The size is up to
2GB.
• Hyperlink: Text or combinations of text and numbers
stored as text and used as a hyperlink address. (When
you want the field to jump to another location, or to
connect to the Internet or an intranet, store the
hyperlink address in a hyperlink field). The size is up to
8,192 (each part of a Hyperlink data type can contain up
to 2048 characters).
• Calculated: You can create an expression that uses data
from one or more fields. You can designate different
result data types from the expression.
Cont…
• Lookup Wizard: The Lookup Wizard entry in the Data
Type column in the Design view is not actually a data
type. When you choose this entry, a wizard starts to help
you define either a simple or complex lookup field.
A simple lookup field uses the contents of another table
or a value list to validate the contents of a single value
per row. A complex lookup field allows you to store
multiple values of the same data type in each row. The
size is dependent on the data type of the lookup field.
Lab 2.0: Creating a table and
inserting records.
Lab 3.0: Creating a form, a query
and a report.
TABLE RELATIONSHIP
A relationship works by matching data in key columns
usually columns with the same name in both the tables. In
most cases, the relationship matches the primary key from
one table, which provides a unique identifier for each row,
with an entry in the foreign key in the other table. There are
three types of relationships between tables. The type of
relationship that is created depends on how the related
columns are defined.
TYPES OF TABLE RELATIONSHIPS
• One to One: In a one-to-one relationship, a row in table
A can have no more than one matching row in table B,
and vice versa. A one-to-one relationship is created if
both the related columns are primary keys or have
unique constraints.
This type of relationship is not common because most
information related in this way would be all in one table.
You might use a one-to-one relationship to:
 Divide a table into many columns.
 Isolate part of a table for security reasons.
 Store data that is short-lived and could be easily
deleted by simply deleting the table.
 Store information that applies only to a subset of the
main table.
Cont…
• One to Many: A one-to-many relationship is the most
common type of relationship. In this type of relationship, a
row in table A can have many matching rows in table B, but
a row in table B can have only one matching row in table A.
For example, the Customers and Orders tables have a one-
to-many relationship: each customer can place many
orders, but each order comes from only one customer.
Cont...
• Many to Many: In a many-to-many relationship, a row in
table A can have many matching rows in table B, and vice
versa.
You create such a relationship by defining a third table,
called a junction table, whose primary key consists of the
foreign keys from both table A and table B.
For example, the Customers table and the Cookies table
have a many-to-many relationship that is defined by a one-
to-many relationship from each of these tables to the
Orders table.
PRIMARY KEY
A primary key consists of one or more fields that uniquely
identify each record that you store in a table. Often, there
is a unique identification number, such as an ID number, a
serial number, or a code, that serves as a primary key. For
example, you might have a Customers table where each
customer has a unique customer ID number.
FOREIGN KEY
A foreign key contains values that correspond to values in
the primary key of another table. For example, you might
have an Orders table in which each order has a customer
ID number that corresponds to a record in a Customers
table.
Lab 3.0: Creating a table
relationships.

More Related Content

What's hot

Microsoft Access
Microsoft AccessMicrosoft Access
Microsoft Accesstormeyj
 
Database indexing techniques
Database indexing techniquesDatabase indexing techniques
Database indexing techniquesahmadmughal0312
 
Lecture03 abap on line
Lecture03 abap on lineLecture03 abap on line
Lecture03 abap on lineMilind Patil
 
WebAppGeneXpress_How_To_Presentation
WebAppGeneXpress_How_To_PresentationWebAppGeneXpress_How_To_Presentation
WebAppGeneXpress_How_To_Presentationsupertime2000
 
13 wordprocessing ml subject - mail merge
13   wordprocessing ml subject - mail merge13   wordprocessing ml subject - mail merge
13 wordprocessing ml subject - mail mergeShawn Villaron
 
Creating relationships with tables
Creating relationships with tablesCreating relationships with tables
Creating relationships with tablesJhen Articona
 
Business Journalism Professors 2014: Excel for Journalists by Steve Doig
Business Journalism Professors 2014: Excel for Journalists by Steve DoigBusiness Journalism Professors 2014: Excel for Journalists by Steve Doig
Business Journalism Professors 2014: Excel for Journalists by Steve DoigReynolds Center for Business Journalism
 
Key,ID Field and Tables Relationship
Key,ID Field and Tables Relationship Key,ID Field and Tables Relationship
Key,ID Field and Tables Relationship ShouaQureshi
 
Database Relationships
Database RelationshipsDatabase Relationships
Database Relationshipswmassie
 
Lecture12 abap on line
Lecture12 abap on lineLecture12 abap on line
Lecture12 abap on lineMilind Patil
 
Standard Grade Administration - Software Applications
Standard Grade Administration - Software ApplicationsStandard Grade Administration - Software Applications
Standard Grade Administration - Software ApplicationsMusselburgh Grammar School
 
Databases versus Spreadsheets-do you know where your data is?
Databases versus Spreadsheets-do you know where your data is?Databases versus Spreadsheets-do you know where your data is?
Databases versus Spreadsheets-do you know where your data is?stefanchauveau
 

What's hot (20)

Microsoft Access
Microsoft AccessMicrosoft Access
Microsoft Access
 
Computer practical
Computer practicalComputer practical
Computer practical
 
Database indexing techniques
Database indexing techniquesDatabase indexing techniques
Database indexing techniques
 
B+ tree
B+ treeB+ tree
B+ tree
 
SQL_Part1
SQL_Part1SQL_Part1
SQL_Part1
 
Sql introduction
Sql introductionSql introduction
Sql introduction
 
Lecture03 abap on line
Lecture03 abap on lineLecture03 abap on line
Lecture03 abap on line
 
WebAppGeneXpress_How_To_Presentation
WebAppGeneXpress_How_To_PresentationWebAppGeneXpress_How_To_Presentation
WebAppGeneXpress_How_To_Presentation
 
Data types
Data types Data types
Data types
 
13 wordprocessing ml subject - mail merge
13   wordprocessing ml subject - mail merge13   wordprocessing ml subject - mail merge
13 wordprocessing ml subject - mail merge
 
Creating relationships with tables
Creating relationships with tablesCreating relationships with tables
Creating relationships with tables
 
Business Journalism Professors 2014: Excel for Journalists by Steve Doig
Business Journalism Professors 2014: Excel for Journalists by Steve DoigBusiness Journalism Professors 2014: Excel for Journalists by Steve Doig
Business Journalism Professors 2014: Excel for Journalists by Steve Doig
 
Key,ID Field and Tables Relationship
Key,ID Field and Tables Relationship Key,ID Field and Tables Relationship
Key,ID Field and Tables Relationship
 
Trees
TreesTrees
Trees
 
Abap dictionary 1
Abap dictionary 1Abap dictionary 1
Abap dictionary 1
 
Sql
SqlSql
Sql
 
Database Relationships
Database RelationshipsDatabase Relationships
Database Relationships
 
Lecture12 abap on line
Lecture12 abap on lineLecture12 abap on line
Lecture12 abap on line
 
Standard Grade Administration - Software Applications
Standard Grade Administration - Software ApplicationsStandard Grade Administration - Software Applications
Standard Grade Administration - Software Applications
 
Databases versus Spreadsheets-do you know where your data is?
Databases versus Spreadsheets-do you know where your data is?Databases versus Spreadsheets-do you know where your data is?
Databases versus Spreadsheets-do you know where your data is?
 

Similar to Database Management System

Similar to Database Management System (20)

Introduction to ms access database
Introduction to ms access databaseIntroduction to ms access database
Introduction to ms access database
 
01 Microsoft Access
01 Microsoft Access01 Microsoft Access
01 Microsoft Access
 
microsoft_access_working_with_forms_and_generating_reports__107.ppt
microsoft_access_working_with_forms_and_generating_reports__107.pptmicrosoft_access_working_with_forms_and_generating_reports__107.ppt
microsoft_access_working_with_forms_and_generating_reports__107.ppt
 
Ms access
Ms accessMs access
Ms access
 
Data Base Management System.pdf
Data Base Management System.pdfData Base Management System.pdf
Data Base Management System.pdf
 
Access 01
Access 01Access 01
Access 01
 
DATABASE-1.pptx
DATABASE-1.pptxDATABASE-1.pptx
DATABASE-1.pptx
 
Presentation DBMS (1)
Presentation DBMS (1)Presentation DBMS (1)
Presentation DBMS (1)
 
Create a table access - office
Create a table   access - officeCreate a table   access - office
Create a table access - office
 
DATABASES NOTES FOR STUDENTS TAKING MICROSOFT PACKAGES
DATABASES NOTES FOR STUDENTS TAKING MICROSOFT PACKAGESDATABASES NOTES FOR STUDENTS TAKING MICROSOFT PACKAGES
DATABASES NOTES FOR STUDENTS TAKING MICROSOFT PACKAGES
 
access1.ppt
access1.pptaccess1.ppt
access1.ppt
 
Physical elements of data
Physical elements of dataPhysical elements of data
Physical elements of data
 
Data processing
Data processingData processing
Data processing
 
Msaccess
MsaccessMsaccess
Msaccess
 
Access
AccessAccess
Access
 
Databases
DatabasesDatabases
Databases
 
Hive_An Brief Introduction to HIVE_BIGDATAANALYTICS
Hive_An Brief Introduction to HIVE_BIGDATAANALYTICSHive_An Brief Introduction to HIVE_BIGDATAANALYTICS
Hive_An Brief Introduction to HIVE_BIGDATAANALYTICS
 
Database
DatabaseDatabase
Database
 
MS-ACCESS.pptx
MS-ACCESS.pptxMS-ACCESS.pptx
MS-ACCESS.pptx
 
demo2.ppt
demo2.pptdemo2.ppt
demo2.ppt
 

Recently uploaded

Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyFrank van der Linden
 
Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Intelisync
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 

Recently uploaded (20)

Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The Ugly
 
Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 

Database Management System

  • 1. DATABASE MANAGEMENT SYSTEM (DBMS) Muhd Dembo muhdembo@gmail.com +2348063723325
  • 2. WHAT IS A DATABASE? A database is a collection of logically related data files which are integrated and organized so as to provide a single comprehensive file system. DBMS A Database Management System (DBMS) is system software for creating and managing databases. The DBMS provides users and programmers with a systematic way to create, retrieve, update and manage data.
  • 3. EXAMPLES OF DATABASE MANAGEMENT SOFTWARES • Oracle RDBMS • Microsoft SQL Server • IBM DB2 • Teradata • MySQL • PostgreSQL • MongoDB • SAP ASE (Sybase) • Microsoft Access • Informix • MariaDB • SQLite • FileMaker • MemSQL • ADABAS • dBase • Amazon SimpleDB • Firebird • EnterpriseDB • EXASOL
  • 4. ELEMENTS OF A DATABASE • DATA: Its define as raw facts. • FILE: A file is a collection of logically related records. • FIELD: A field is used to store an individual unit of item attributes. • RECORD: A record is a collection of logically related fields.
  • 5. MICROSOFT ACCESS Microsoft Access is a relational database product shipped with some of the most expensive version of Microsoft-Office. RELATIONAL DATABASE A relational database is a collection of data items organized as a set of formally-described tables from which data can be accessed or reassembled in many different ways without having to reorganize the database tables. The relational database was invented by E. F. Codd at IBM in 1970.
  • 6. ELEMENTS OF A RELATIONAL DATABASE • TABLE : The Tables are the containers for all the data in a database. • QUERIES: Is an object of database that is used to extract or select some records from the table based on specified condition or criteria. • REPORTS: For printing query results. • FORMS: used for entering information into the table.
  • 7. Lab 1.0: Launching MS Access and creating a database.
  • 8. DATA TYPES • Short Text: Text or combinations of text and numbers, including numbers that do not require calculating. The size is up to 255 characters. • Long Text: Lengthy text or combinations of text and numbers. The size is up to 63, 999 characters. • Number: Numeric data used in mathematical calculations. • Date/Time: Date and time values for the years 100 through 9999.
  • 9. Cont… • Currency: Currency values and numeric data used in mathematical calculations involving data with one to four decimal places. • AutoNumber: A unique sequential (incremented by 1) number or random number assigned by Microsoft Access whenever a new record is added to a table. • Yes/No: Yes and No values and fields that contain only one of two values (Yes/No, True/False, or On/Off). • Attachment: Files, such as digital photos. Multiple files can be attached per record. This data type is not available in earlier versions of Access. The size is up to 2GB.
  • 10. Cont… • OLE Object: This can store pictures, audio, video, or other BLOBs (Binary Large Objects). The size is up to 2GB. • Hyperlink: Text or combinations of text and numbers stored as text and used as a hyperlink address. (When you want the field to jump to another location, or to connect to the Internet or an intranet, store the hyperlink address in a hyperlink field). The size is up to 8,192 (each part of a Hyperlink data type can contain up to 2048 characters). • Calculated: You can create an expression that uses data from one or more fields. You can designate different result data types from the expression.
  • 11. Cont… • Lookup Wizard: The Lookup Wizard entry in the Data Type column in the Design view is not actually a data type. When you choose this entry, a wizard starts to help you define either a simple or complex lookup field. A simple lookup field uses the contents of another table or a value list to validate the contents of a single value per row. A complex lookup field allows you to store multiple values of the same data type in each row. The size is dependent on the data type of the lookup field.
  • 12. Lab 2.0: Creating a table and inserting records.
  • 13. Lab 3.0: Creating a form, a query and a report.
  • 14. TABLE RELATIONSHIP A relationship works by matching data in key columns usually columns with the same name in both the tables. In most cases, the relationship matches the primary key from one table, which provides a unique identifier for each row, with an entry in the foreign key in the other table. There are three types of relationships between tables. The type of relationship that is created depends on how the related columns are defined.
  • 15. TYPES OF TABLE RELATIONSHIPS • One to One: In a one-to-one relationship, a row in table A can have no more than one matching row in table B, and vice versa. A one-to-one relationship is created if both the related columns are primary keys or have unique constraints. This type of relationship is not common because most information related in this way would be all in one table. You might use a one-to-one relationship to:  Divide a table into many columns.  Isolate part of a table for security reasons.  Store data that is short-lived and could be easily deleted by simply deleting the table.  Store information that applies only to a subset of the main table.
  • 16. Cont… • One to Many: A one-to-many relationship is the most common type of relationship. In this type of relationship, a row in table A can have many matching rows in table B, but a row in table B can have only one matching row in table A. For example, the Customers and Orders tables have a one- to-many relationship: each customer can place many orders, but each order comes from only one customer.
  • 17. Cont... • Many to Many: In a many-to-many relationship, a row in table A can have many matching rows in table B, and vice versa. You create such a relationship by defining a third table, called a junction table, whose primary key consists of the foreign keys from both table A and table B. For example, the Customers table and the Cookies table have a many-to-many relationship that is defined by a one- to-many relationship from each of these tables to the Orders table.
  • 18. PRIMARY KEY A primary key consists of one or more fields that uniquely identify each record that you store in a table. Often, there is a unique identification number, such as an ID number, a serial number, or a code, that serves as a primary key. For example, you might have a Customers table where each customer has a unique customer ID number.
  • 19. FOREIGN KEY A foreign key contains values that correspond to values in the primary key of another table. For example, you might have an Orders table in which each order has a customer ID number that corresponds to a record in a Customers table.
  • 20. Lab 3.0: Creating a table relationships.