SlideShare a Scribd company logo
1 of 65
Download to read offline
MODULE 1
MICROSOFT ACCESS
DATABASE TABLES
ALEXANDER BABICH
ALEXANDER.TAURUS@GMAIL.COM
MODULE OVERVIEW
• Table structure
• Creating tables. Field types
• Changing table structure
• Data input. MEMO - fields. OLE field. Hyperlinks
• Using counters. Field titles
• Numeric fields. Input Masks andValue Condition
LESSON 1: CREATING A DATABASE
• DB structure
• Creating tables. Field types
• Change table structure
DATABASE
• formally, a "database" refers to a set of related data and the
way it is organized
• organized collection of data, generally stored and accessed
electronically from a computer system
• access to this data is provided by a "database management
system" (DBMS) – computer software that allows users to
interact with one or more databases and provides access to all of
the data contained in the database. Access is a personal
DBMS
• relational database represents all data
as rows and columns in a series of tables, and the vast
majority use SQL for writing and querying data
DB CLASSIFICATION BY
DATA MODEL
• Hierarchical
• Network
• Relational
• Object
• Object oriented
• Object relationalSQL vs NoSQL
DB CLASSIFICATION BY USER
• Single-user
• Access
• Multiuser
(Enterprise-level)
• SQL Server
• Oracle
• MySQL
• …
DATA RELATIONS INSIDE DB
• relational DB – tables, rows and fields
• each table contains unique data
• the process of breaking your data into smaller
tables is called normalization
• relations via key fields (primary and foreign)
• unique entry identifier
• the field "on the other side" of relation
DATA RELATIONS INSIDE DB
CAREFUL PLANNING NEEDED!
A critical field for all tables
CAREFUL PLANNING NEEDED!
The key to relationships: sharing your keys
TEST QUESTION
What is the function of a primary key? (Pick one answer)
1. To uniquely identify each record in a table
2. To encrypt and decrypt your database
3. To help ensure you enter data in the correct table
TEST QUESTION
Primary keys do all that, and all your tables must have a
primary key field
What is the function of a primary key?
Answer:
1. To uniquely identify each record in a table
TEST QUESTION
You establish a relationship between Table A and Table B by: (Pick
one answer)
1. Merging Table A with Table B
2. Linking Table A with Table B
3. Adding the primary key from Table A to Table B
(or vice-versa)
TEST QUESTION
When you add a primary key field to another table and
create a relationship, that new field becomes a foreign key
You establish a relationship between Table A and Table B by:
Answer:
3. Adding the primary key from Table A to Table B
(or vice-versa)
DB STRUCTURE
• Access database consists of
objects
• Main objects:
tables, queries, forms and
reports
• Macros
• Modules
EXERCISE
1. Imagine a database
2. Write down what exactly
the database was used for
3. Record your intended uses
of the database
SAMPLE SOLUTION
Who, what, when, where, why, and how
SAMPLE SOLUTION
Group your data by subject → Sets of unique information
TABLES
• Standard DB Building Blocks
• essential component of any database
• a containers to store your data
• similar to data lists in Excel
(CTRL+T, CTRL+L inside
region)
• Access database contains at
least one table
TABLES
TABLES
• a table for each object
of the domain
• rows and fields
• information about a particular
person, event, product, or other
item
• separate component
(one piece of data) of the row
TABLES
HOW TO CREATE A TABLE
• New blank table
• DesignView
• Quick start*
Microsoft no longer recommends creating and using Access
web apps in SharePoint. As an alternative, consider
using Microsoft PowerApps to build no-code business
solutions for the web and mobile devices
HOW TO CREATE A TABLE
HOW TO CREATE A TABLE
HOW TO CREATE A TABLE
HOW TO CREATE A TABLE
DATA FIELDS
1. Field name
2. Field type
3. (Primary) key
4. Field properties
FIELDTYPES
• (Short )Text
• up to 255 characters
• Number
• 1,2,4,8 bytes
• Large Number (16)
• (MEMO) LongText
• can contain up to 65535
characters
• Date/Time
• Currency type
• 1-4 decimal places
• up to 15 in the whole part
• 8 bytes
• AutoNumber
• Auto increment
• 4 bytes
• (Boolean) Yes/No
• OLE object
• Hyperlink
• up to 2048 characters
EACH RECORD IS UNIQUE
• there cannot be two identical
rows
• the primary key is the unique
identifier of each row
• how to ensure uniqueness:
• INN
• product code
• employee's number
• auto increment (autonumber)
KEYS
the primary key of one of
the related tables becomes
the foreign key of the
other
HOW TO CHANGE DB
STRUCTURE
• Design view for tables
• creating a data schema
• DatabaseTools → Relationships
EXERCISE
Create a database table to
store information about
employees of a small web
development startup.
What fields are logical to provide in the table?
Which of the following describes a relational database?
(Pick one answer)
1. It provides a relationship between integers
2. It consists of separate tables of related data
3. It retrieves data related to its queries
TEST QUESTION
2. It consists of separate tables of related data
The separate tables are associated with each other through
relationships
TEST QUESTION
Which of the following describes a relational database?
Answer:
TEST QUESTION
Which of the following is not a database object?
(Pick one answer)
1. Table
2. Report
3. Query
4. Worksheet
4. Worksheet
Although you can import worksheets from Microsoft Excel
into your database, worksheets are not database objects
TEST QUESTION
Which of the following is not a database object?
Answer:
What are the main building blocks of a database?
(Pick one answer)
1. Lists
2. Queries
3. Tables
TEST QUESTION
3. Tables.
Every Access database contains one or more tables that
store your data
TEST QUESTION
What are the main building blocks of a database?
(Pick one answer)
Answer:
TEST QUESTION
How many tables should a well-designed database contain?
(Pick one answer)
1. As many as necessary to capture all your data without
redundancy
2. One
3. Two
TEST QUESTION
That can be one table, or it can be dozens
How many tables should a well-designed database contain?
Answer:
1. As many as necessary to capture all your data without
redundancy
Data should be organized into tables based on:
(Pick one answer)
1. Field properties
2. Subjects associated with the data
3. Character lengths
TEST QUESTION
2. Subjects associated with the data
A well structured database has a table for each subject to
which data belongs, such as Employees, Students, or
Products
TEST QUESTION
Data should be organized into tables based on:
Answer:
A row in a table is also known as:
(Pick one answer)
1. A field
2. A record
3. A data type
TEST QUESTION
2. A record.
A row is one record in a table; it contains a collection of data
about something, such as a product or employee. A record
includes data from several fields that might have names like
Unit Price or Employee ID
TEST QUESTION
A row in a table is also known as:
Answer:
A primary key is:
(Pick one answer)
1. A unique identifier that can be used to relate tables
2. The key that precedes the secondary key
3. The password that validates a database
TEST QUESTION
1. A unique identifier that can be used to relate tables.
A primary key distinguishes one record from another and
links data in one table to data in other tables
TEST QUESTION
A primary key is:
Answer:
LESSON 2:WORKING WITH FIELDS
• Data input. MEMO fields. OLE field. Hyperlinks
• Using counter. Field titles
• Numeric fields. Input Masks andValue Condition
MEMO, OLE FIELDS ETC.
• (MEMO) Long Text field
• Can contain up to 65535 characters
• Unicode is used
• OLE field - link to OLE object
• Microsoft Excel sheet
• Microsoft Word document
• Sound, Picture, Video
• ...
• Hyperlinks - file path, web page
• display text
• address (file or page path)
• additional address (position inside file or page)
• tooltip text
• each part of the hyperlink can contain up to 2048 characters
AUTONUMBER
• 4-byte unique number
• Determined automatically for each new record
• either randomly or by increasing the previous value by 1
• Values cannot be updated
• The maximum number of entries in a table with a
counter field must not exceed two billion
LOOKUPWIZARD
• Field property, not real data type
• starts the wizard to create a lookup column
• list of values to choose from when entering data
FIELD CAPTION
• The property that sets the field header (caption)
• displayed in table mode
• It may be the same as the field name, or it may
differ from it
• If not specified,Access uses the field name for
this.
• may contain up to 2048 characters
NUMERIC FIELDS
• Field size - 1, 2, 4, 8 or 16 bytes
• The default is Long Integer
• 4 bytes
• from -2,147,483,648 to +2,147,483,647
• Byte - 1 byte
• Integer - 2 bytes
• Single (float) - 4 bytes
• Double (float) - 8 bytes
• Decimal - 12 bytes
• Replication ID - 16 bytes
• used to identify an entry in the table
INPUT MASK
• intended to facilitate control
over the entry of information in
the field of a table, query or
control of a form or report
• Character string
• regular characters
• brackets, points or hyphens
• Special symbols
• indicate in what positions, in
what quantity and what type of
data can be entered
INPUT MASK
INPUT MASK
EXAMPLES
EXAMPLES
VALIDATION RULE
• Applicable for all fields except AutoNumber and OLE
• If a condition is specified, when the field is saved, it will be
checked
• If the condition is not met, a message is displayed from the
error message (ValidationText)
• If the message text is not specified, a standard message will be
displayed.
• May contain up to 2048 characters
• Error Message (ValidationText) - up to 255 characters
EXAMPLES
EXAMPLES
EXERCISE
• Create a database of your home
library
• Consider the tables and their fields
• book author
• book title
• publisher
• number of pages
• Create tables and links
between them
BOTTOM LINE
• Table structure
• Creating tables. Field types
• Change table structure
• Data input. MEMO, OLE, Hyperlinks
• Auto Number. Field captions
• Numeric fields. Input Masks andValidation Rules
ACCESSVIDEOTRAINING
http://access.company/training
QUESTIONS?

More Related Content

What's hot

Ms access tutorial
Ms access tutorialMs access tutorial
Ms access tutorialminga48
 
Welcome-slides-durham-tech
Welcome-slides-durham-techWelcome-slides-durham-tech
Welcome-slides-durham-techdjl0525
 
Tutorial for using SQL in Microsoft Access
Tutorial for using SQL in Microsoft AccessTutorial for using SQL in Microsoft Access
Tutorial for using SQL in Microsoft Accessmcclellm
 
Microsoft Access 2007: Get To Know Access
Microsoft Access 2007: Get To Know AccessMicrosoft Access 2007: Get To Know Access
Microsoft Access 2007: Get To Know Accessomoviejohn
 
Access2007 part1
Access2007 part1Access2007 part1
Access2007 part1jigeno
 
Microsoft Access Notes 2007 Ecdl
Microsoft Access Notes 2007 EcdlMicrosoft Access Notes 2007 Ecdl
Microsoft Access Notes 2007 EcdlRichard Butler
 
Waiting too long for Excel's VLOOKUP? Use SQLite for simple data analysis!
Waiting too long for Excel's VLOOKUP? Use SQLite for simple data analysis!Waiting too long for Excel's VLOOKUP? Use SQLite for simple data analysis!
Waiting too long for Excel's VLOOKUP? Use SQLite for simple data analysis!Amanda Lam
 
MS Access teaching powerpoint tasks
MS Access teaching powerpoint tasksMS Access teaching powerpoint tasks
MS Access teaching powerpoint tasksskomadina
 
MS Office Access Tutorial
MS Office Access TutorialMS Office Access Tutorial
MS Office Access TutorialvirtualMaryam
 
Database Indexes
Database IndexesDatabase Indexes
Database IndexesSperasoft
 
Microsoft Access 2007
Microsoft Access 2007Microsoft Access 2007
Microsoft Access 2007Reshma Arun
 

What's hot (19)

Ms access tutorial
Ms access tutorialMs access tutorial
Ms access tutorial
 
Welcome-slides-durham-tech
Welcome-slides-durham-techWelcome-slides-durham-tech
Welcome-slides-durham-tech
 
Tutorial for using SQL in Microsoft Access
Tutorial for using SQL in Microsoft AccessTutorial for using SQL in Microsoft Access
Tutorial for using SQL in Microsoft Access
 
Microsoft Access 2007: Get To Know Access
Microsoft Access 2007: Get To Know AccessMicrosoft Access 2007: Get To Know Access
Microsoft Access 2007: Get To Know Access
 
Access2007 part1
Access2007 part1Access2007 part1
Access2007 part1
 
Microsoft Access Notes 2007 Ecdl
Microsoft Access Notes 2007 EcdlMicrosoft Access Notes 2007 Ecdl
Microsoft Access Notes 2007 Ecdl
 
Waiting too long for Excel's VLOOKUP? Use SQLite for simple data analysis!
Waiting too long for Excel's VLOOKUP? Use SQLite for simple data analysis!Waiting too long for Excel's VLOOKUP? Use SQLite for simple data analysis!
Waiting too long for Excel's VLOOKUP? Use SQLite for simple data analysis!
 
Uses of MS Access in Business
Uses of MS Access in BusinessUses of MS Access in Business
Uses of MS Access in Business
 
Nota ms access 2007
Nota ms access 2007Nota ms access 2007
Nota ms access 2007
 
Access 2007 lesson1
Access 2007 lesson1Access 2007 lesson1
Access 2007 lesson1
 
MS Access teaching powerpoint tasks
MS Access teaching powerpoint tasksMS Access teaching powerpoint tasks
MS Access teaching powerpoint tasks
 
BAB 5 Lembaran kerja (1)
BAB 5   Lembaran kerja (1)BAB 5   Lembaran kerja (1)
BAB 5 Lembaran kerja (1)
 
Web designing
Web designingWeb designing
Web designing
 
MS Office Access Tutorial
MS Office Access TutorialMS Office Access Tutorial
MS Office Access Tutorial
 
Learn about excel
Learn about excelLearn about excel
Learn about excel
 
Database Indexes
Database IndexesDatabase Indexes
Database Indexes
 
MS Access Training
MS Access TrainingMS Access Training
MS Access Training
 
Excel Crash Course
Excel Crash CourseExcel Crash Course
Excel Crash Course
 
Microsoft Access 2007
Microsoft Access 2007Microsoft Access 2007
Microsoft Access 2007
 

Similar to Access 01

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.pptKunle Faseyi
 
Database Management System
Database Management SystemDatabase Management System
Database Management SystemMuhd Dembo
 
•Design (create) 3 questions for a quiz show game and design regular.pdf
•Design (create) 3 questions for a quiz show game and design regular.pdf•Design (create) 3 questions for a quiz show game and design regular.pdf
•Design (create) 3 questions for a quiz show game and design regular.pdfjyothimuppasani1
 
Access essential training framework
Access essential training   frameworkAccess essential training   framework
Access essential training frameworkVijay Perepa
 
Data Base Management System.pdf
Data Base Management System.pdfData Base Management System.pdf
Data Base Management System.pdfTENZING LHADON
 
Session 1 - Databases-JUNE 2023.pdf
Session 1 - Databases-JUNE 2023.pdfSession 1 - Databases-JUNE 2023.pdf
Session 1 - Databases-JUNE 2023.pdfSwapnilSaurav7
 
php databse handling
php databse handlingphp databse handling
php databse handlingkunj desai
 
Tk2323 lecture 7 sql
Tk2323 lecture 7   sql Tk2323 lecture 7   sql
Tk2323 lecture 7 sql MengChun Lam
 
Feb 2nd Makeup Class
Feb 2nd Makeup ClassFeb 2nd Makeup Class
Feb 2nd Makeup ClassGeorge Saban
 
Web Application Development using PHP Chapter 6
Web Application Development using PHP Chapter 6Web Application Development using PHP Chapter 6
Web Application Development using PHP Chapter 6Mohd Harris Ahmad Jaal
 
SQLDay2013_Denny Cherry - Table indexing for the .NET Developer
SQLDay2013_Denny Cherry - Table indexing for the .NET DeveloperSQLDay2013_Denny Cherry - Table indexing for the .NET Developer
SQLDay2013_Denny Cherry - Table indexing for the .NET DeveloperPolish SQL Server User Group
 

Similar to Access 01 (20)

01 Microsoft Access
01 Microsoft Access01 Microsoft Access
01 Microsoft Access
 
MS ACCESS
MS ACCESSMS ACCESS
MS 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
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
Access 05
Access 05Access 05
Access 05
 
•Design (create) 3 questions for a quiz show game and design regular.pdf
•Design (create) 3 questions for a quiz show game and design regular.pdf•Design (create) 3 questions for a quiz show game and design regular.pdf
•Design (create) 3 questions for a quiz show game and design regular.pdf
 
Access essential training framework
Access essential training   frameworkAccess essential training   framework
Access essential training framework
 
Data Base Management System.pdf
Data Base Management System.pdfData Base Management System.pdf
Data Base Management System.pdf
 
SQL_Part1
SQL_Part1SQL_Part1
SQL_Part1
 
Ms access
Ms accessMs access
Ms access
 
Access 03
Access 03Access 03
Access 03
 
Session 1 - Databases-JUNE 2023.pdf
Session 1 - Databases-JUNE 2023.pdfSession 1 - Databases-JUNE 2023.pdf
Session 1 - Databases-JUNE 2023.pdf
 
Sql introduction
Sql introductionSql introduction
Sql introduction
 
php databse handling
php databse handlingphp databse handling
php databse handling
 
Tk2323 lecture 7 sql
Tk2323 lecture 7   sql Tk2323 lecture 7   sql
Tk2323 lecture 7 sql
 
Feb 2nd Makeup Class
Feb 2nd Makeup ClassFeb 2nd Makeup Class
Feb 2nd Makeup Class
 
MS ACCESS.pptx
MS ACCESS.pptxMS ACCESS.pptx
MS ACCESS.pptx
 
Introduction to ms access database
Introduction to ms access databaseIntroduction to ms access database
Introduction to ms access database
 
Web Application Development using PHP Chapter 6
Web Application Development using PHP Chapter 6Web Application Development using PHP Chapter 6
Web Application Development using PHP Chapter 6
 
SQLDay2013_Denny Cherry - Table indexing for the .NET Developer
SQLDay2013_Denny Cherry - Table indexing for the .NET DeveloperSQLDay2013_Denny Cherry - Table indexing for the .NET Developer
SQLDay2013_Denny Cherry - Table indexing for the .NET Developer
 

More from Alexander Babich

Актуальні курси з мого арсеналу (Бабич О.В.)
Актуальні курси з мого арсеналу (Бабич О.В.)Актуальні курси з мого арсеналу (Бабич О.В.)
Актуальні курси з мого арсеналу (Бабич О.В.)Alexander Babich
 
M365: Word, Excel, PowerPoint...
M365: Word, Excel, PowerPoint...M365: Word, Excel, PowerPoint...
M365: Word, Excel, PowerPoint...Alexander Babich
 
M365: Інші сервіси та застосунки
M365: Інші сервіси та застосункиM365: Інші сервіси та застосунки
M365: Інші сервіси та застосункиAlexander Babich
 
M365: Завершення
M365: ЗавершенняM365: Завершення
M365: ЗавершенняAlexander Babich
 
M365: рекомендації
M365: рекомендаціїM365: рекомендації
M365: рекомендаціїAlexander Babich
 
M365: Огляд платформи Microsoft365
M365: Огляд платформи Microsoft365M365: Огляд платформи Microsoft365
M365: Огляд платформи Microsoft365Alexander Babich
 
M365: Роздаткові матеріали
M365: Роздаткові матеріалиM365: Роздаткові матеріали
M365: Роздаткові матеріалиAlexander Babich
 
Meet&Code - VR, метавсесвіт та криптовалюти (1).pptx
Meet&Code - VR, метавсесвіт та криптовалюти (1).pptxMeet&Code - VR, метавсесвіт та криптовалюти (1).pptx
Meet&Code - VR, метавсесвіт та криптовалюти (1).pptxAlexander Babich
 
Ви обрали професію програміста
Ви обрали професію програмістаВи обрали професію програміста
Ви обрали професію програмістаAlexander Babich
 
Змішане навчання в ППФК
Змішане навчання в ППФКЗмішане навчання в ППФК
Змішане навчання в ППФКAlexander Babich
 
Формування професійних інтересів студентів
Формування професійних інтересів студентівФормування професійних інтересів студентів
Формування професійних інтересів студентівAlexander Babich
 
День відкритих дверей' 2021
День відкритих дверей' 2021День відкритих дверей' 2021
День відкритих дверей' 2021Alexander Babich
 
06. Обучение и сертификация по Azure
06. Обучение и сертификация по Azure06. Обучение и сертификация по Azure
06. Обучение и сертификация по AzureAlexander Babich
 
05.Внедрение Azure
05.Внедрение Azure05.Внедрение Azure
05.Внедрение AzureAlexander Babich
 
04.Службы Azure - подробнее
04.Службы Azure - подробнее04.Службы Azure - подробнее
04.Службы Azure - подробнееAlexander Babich
 
03.Сколько стоит облако
03.Сколько стоит облако03.Сколько стоит облако
03.Сколько стоит облакоAlexander Babich
 

More from Alexander Babich (20)

Актуальні курси з мого арсеналу (Бабич О.В.)
Актуальні курси з мого арсеналу (Бабич О.В.)Актуальні курси з мого арсеналу (Бабич О.В.)
Актуальні курси з мого арсеналу (Бабич О.В.)
 
M365: Word, Excel, PowerPoint...
M365: Word, Excel, PowerPoint...M365: Word, Excel, PowerPoint...
M365: Word, Excel, PowerPoint...
 
M365: Інші сервіси та застосунки
M365: Інші сервіси та застосункиM365: Інші сервіси та застосунки
M365: Інші сервіси та застосунки
 
M365: OneDrive
M365: OneDriveM365: OneDrive
M365: OneDrive
 
M365: Завершення
M365: ЗавершенняM365: Завершення
M365: Завершення
 
M365: SharePoint
M365: SharePointM365: SharePoint
M365: SharePoint
 
M365: рекомендації
M365: рекомендаціїM365: рекомендації
M365: рекомендації
 
M365: Огляд платформи Microsoft365
M365: Огляд платформи Microsoft365M365: Огляд платформи Microsoft365
M365: Огляд платформи Microsoft365
 
M365: Вступ
M365: ВступM365: Вступ
M365: Вступ
 
M365: Роздаткові матеріали
M365: Роздаткові матеріалиM365: Роздаткові матеріали
M365: Роздаткові матеріали
 
Meet&Code - VR, метавсесвіт та криптовалюти (1).pptx
Meet&Code - VR, метавсесвіт та криптовалюти (1).pptxMeet&Code - VR, метавсесвіт та криптовалюти (1).pptx
Meet&Code - VR, метавсесвіт та криптовалюти (1).pptx
 
Ви обрали професію програміста
Ви обрали професію програмістаВи обрали професію програміста
Ви обрали професію програміста
 
Змішане навчання в ППФК
Змішане навчання в ППФКЗмішане навчання в ППФК
Змішане навчання в ППФК
 
Формування професійних інтересів студентів
Формування професійних інтересів студентівФормування професійних інтересів студентів
Формування професійних інтересів студентів
 
День відкритих дверей' 2021
День відкритих дверей' 2021День відкритих дверей' 2021
День відкритих дверей' 2021
 
Спробуйте Python
Спробуйте PythonСпробуйте Python
Спробуйте Python
 
06. Обучение и сертификация по Azure
06. Обучение и сертификация по Azure06. Обучение и сертификация по Azure
06. Обучение и сертификация по Azure
 
05.Внедрение Azure
05.Внедрение Azure05.Внедрение Azure
05.Внедрение Azure
 
04.Службы Azure - подробнее
04.Службы Azure - подробнее04.Службы Azure - подробнее
04.Службы Azure - подробнее
 
03.Сколько стоит облако
03.Сколько стоит облако03.Сколько стоит облако
03.Сколько стоит облако
 

Recently uploaded

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 

Recently uploaded (20)

Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 

Access 01

  • 1. MODULE 1 MICROSOFT ACCESS DATABASE TABLES ALEXANDER BABICH ALEXANDER.TAURUS@GMAIL.COM
  • 2. MODULE OVERVIEW • Table structure • Creating tables. Field types • Changing table structure • Data input. MEMO - fields. OLE field. Hyperlinks • Using counters. Field titles • Numeric fields. Input Masks andValue Condition
  • 3. LESSON 1: CREATING A DATABASE • DB structure • Creating tables. Field types • Change table structure
  • 4. DATABASE • formally, a "database" refers to a set of related data and the way it is organized • organized collection of data, generally stored and accessed electronically from a computer system • access to this data is provided by a "database management system" (DBMS) – computer software that allows users to interact with one or more databases and provides access to all of the data contained in the database. Access is a personal DBMS • relational database represents all data as rows and columns in a series of tables, and the vast majority use SQL for writing and querying data
  • 5. DB CLASSIFICATION BY DATA MODEL • Hierarchical • Network • Relational • Object • Object oriented • Object relationalSQL vs NoSQL
  • 6. DB CLASSIFICATION BY USER • Single-user • Access • Multiuser (Enterprise-level) • SQL Server • Oracle • MySQL • …
  • 7. DATA RELATIONS INSIDE DB • relational DB – tables, rows and fields • each table contains unique data • the process of breaking your data into smaller tables is called normalization • relations via key fields (primary and foreign) • unique entry identifier • the field "on the other side" of relation
  • 9. CAREFUL PLANNING NEEDED! A critical field for all tables
  • 10. CAREFUL PLANNING NEEDED! The key to relationships: sharing your keys
  • 11. TEST QUESTION What is the function of a primary key? (Pick one answer) 1. To uniquely identify each record in a table 2. To encrypt and decrypt your database 3. To help ensure you enter data in the correct table
  • 12. TEST QUESTION Primary keys do all that, and all your tables must have a primary key field What is the function of a primary key? Answer: 1. To uniquely identify each record in a table
  • 13. TEST QUESTION You establish a relationship between Table A and Table B by: (Pick one answer) 1. Merging Table A with Table B 2. Linking Table A with Table B 3. Adding the primary key from Table A to Table B (or vice-versa)
  • 14. TEST QUESTION When you add a primary key field to another table and create a relationship, that new field becomes a foreign key You establish a relationship between Table A and Table B by: Answer: 3. Adding the primary key from Table A to Table B (or vice-versa)
  • 15. DB STRUCTURE • Access database consists of objects • Main objects: tables, queries, forms and reports • Macros • Modules
  • 16. EXERCISE 1. Imagine a database 2. Write down what exactly the database was used for 3. Record your intended uses of the database
  • 17. SAMPLE SOLUTION Who, what, when, where, why, and how
  • 18. SAMPLE SOLUTION Group your data by subject → Sets of unique information
  • 19. TABLES • Standard DB Building Blocks • essential component of any database • a containers to store your data • similar to data lists in Excel (CTRL+T, CTRL+L inside region) • Access database contains at least one table
  • 21. TABLES • a table for each object of the domain • rows and fields • information about a particular person, event, product, or other item • separate component (one piece of data) of the row
  • 23. HOW TO CREATE A TABLE • New blank table • DesignView • Quick start* Microsoft no longer recommends creating and using Access web apps in SharePoint. As an alternative, consider using Microsoft PowerApps to build no-code business solutions for the web and mobile devices
  • 24. HOW TO CREATE A TABLE
  • 25. HOW TO CREATE A TABLE
  • 26. HOW TO CREATE A TABLE
  • 27. HOW TO CREATE A TABLE
  • 28. DATA FIELDS 1. Field name 2. Field type 3. (Primary) key 4. Field properties
  • 29. FIELDTYPES • (Short )Text • up to 255 characters • Number • 1,2,4,8 bytes • Large Number (16) • (MEMO) LongText • can contain up to 65535 characters • Date/Time • Currency type • 1-4 decimal places • up to 15 in the whole part • 8 bytes • AutoNumber • Auto increment • 4 bytes • (Boolean) Yes/No • OLE object • Hyperlink • up to 2048 characters
  • 30. EACH RECORD IS UNIQUE • there cannot be two identical rows • the primary key is the unique identifier of each row • how to ensure uniqueness: • INN • product code • employee's number • auto increment (autonumber)
  • 31. KEYS the primary key of one of the related tables becomes the foreign key of the other
  • 32. HOW TO CHANGE DB STRUCTURE • Design view for tables • creating a data schema • DatabaseTools → Relationships
  • 33. EXERCISE Create a database table to store information about employees of a small web development startup. What fields are logical to provide in the table?
  • 34. Which of the following describes a relational database? (Pick one answer) 1. It provides a relationship between integers 2. It consists of separate tables of related data 3. It retrieves data related to its queries TEST QUESTION
  • 35. 2. It consists of separate tables of related data The separate tables are associated with each other through relationships TEST QUESTION Which of the following describes a relational database? Answer:
  • 36. TEST QUESTION Which of the following is not a database object? (Pick one answer) 1. Table 2. Report 3. Query 4. Worksheet
  • 37. 4. Worksheet Although you can import worksheets from Microsoft Excel into your database, worksheets are not database objects TEST QUESTION Which of the following is not a database object? Answer:
  • 38. What are the main building blocks of a database? (Pick one answer) 1. Lists 2. Queries 3. Tables TEST QUESTION
  • 39. 3. Tables. Every Access database contains one or more tables that store your data TEST QUESTION What are the main building blocks of a database? (Pick one answer) Answer:
  • 40. TEST QUESTION How many tables should a well-designed database contain? (Pick one answer) 1. As many as necessary to capture all your data without redundancy 2. One 3. Two
  • 41. TEST QUESTION That can be one table, or it can be dozens How many tables should a well-designed database contain? Answer: 1. As many as necessary to capture all your data without redundancy
  • 42. Data should be organized into tables based on: (Pick one answer) 1. Field properties 2. Subjects associated with the data 3. Character lengths TEST QUESTION
  • 43. 2. Subjects associated with the data A well structured database has a table for each subject to which data belongs, such as Employees, Students, or Products TEST QUESTION Data should be organized into tables based on: Answer:
  • 44. A row in a table is also known as: (Pick one answer) 1. A field 2. A record 3. A data type TEST QUESTION
  • 45. 2. A record. A row is one record in a table; it contains a collection of data about something, such as a product or employee. A record includes data from several fields that might have names like Unit Price or Employee ID TEST QUESTION A row in a table is also known as: Answer:
  • 46. A primary key is: (Pick one answer) 1. A unique identifier that can be used to relate tables 2. The key that precedes the secondary key 3. The password that validates a database TEST QUESTION
  • 47. 1. A unique identifier that can be used to relate tables. A primary key distinguishes one record from another and links data in one table to data in other tables TEST QUESTION A primary key is: Answer:
  • 48. LESSON 2:WORKING WITH FIELDS • Data input. MEMO fields. OLE field. Hyperlinks • Using counter. Field titles • Numeric fields. Input Masks andValue Condition
  • 49. MEMO, OLE FIELDS ETC. • (MEMO) Long Text field • Can contain up to 65535 characters • Unicode is used • OLE field - link to OLE object • Microsoft Excel sheet • Microsoft Word document • Sound, Picture, Video • ... • Hyperlinks - file path, web page • display text • address (file or page path) • additional address (position inside file or page) • tooltip text • each part of the hyperlink can contain up to 2048 characters
  • 50. AUTONUMBER • 4-byte unique number • Determined automatically for each new record • either randomly or by increasing the previous value by 1 • Values cannot be updated • The maximum number of entries in a table with a counter field must not exceed two billion
  • 51. LOOKUPWIZARD • Field property, not real data type • starts the wizard to create a lookup column • list of values to choose from when entering data
  • 52. FIELD CAPTION • The property that sets the field header (caption) • displayed in table mode • It may be the same as the field name, or it may differ from it • If not specified,Access uses the field name for this. • may contain up to 2048 characters
  • 53. NUMERIC FIELDS • Field size - 1, 2, 4, 8 or 16 bytes • The default is Long Integer • 4 bytes • from -2,147,483,648 to +2,147,483,647 • Byte - 1 byte • Integer - 2 bytes • Single (float) - 4 bytes • Double (float) - 8 bytes • Decimal - 12 bytes • Replication ID - 16 bytes • used to identify an entry in the table
  • 54. INPUT MASK • intended to facilitate control over the entry of information in the field of a table, query or control of a form or report • Character string • regular characters • brackets, points or hyphens • Special symbols • indicate in what positions, in what quantity and what type of data can be entered
  • 59. VALIDATION RULE • Applicable for all fields except AutoNumber and OLE • If a condition is specified, when the field is saved, it will be checked • If the condition is not met, a message is displayed from the error message (ValidationText) • If the message text is not specified, a standard message will be displayed. • May contain up to 2048 characters • Error Message (ValidationText) - up to 255 characters
  • 62. EXERCISE • Create a database of your home library • Consider the tables and their fields • book author • book title • publisher • number of pages • Create tables and links between them
  • 63. BOTTOM LINE • Table structure • Creating tables. Field types • Change table structure • Data input. MEMO, OLE, Hyperlinks • Auto Number. Field captions • Numeric fields. Input Masks andValidation Rules