SlideShare a Scribd company logo
RELATIONAL
MODELS
Monday, November 7, 2016
LEARNING OUTCOMES:
At the end of the lesson, I should be able to:
a) Explain how data is represented
b) Demonstrate how data can be created and modified
c) Manipulate and modified data
d) Obtain a database design in relational model
RELATIONAL MODEL
A relational database management system
(RDBMS) is a database management system
(DBMS) that is based on relational model as
introduced by E.F. Codd.
TERMS IN RELATIONAL
MODEL
Tables: these are a collection of related data
entries and it consists of columns and rows.
Field: is a column in a table that is designed to
maintain specific information about every record
in the table.
Record: is a row of data or each individual entry
that exists in a table.
NULL value: is a field that is blank or with no
value.
CREATION AND
MODIFICATION OF
RELATIONS USING SQL
A database relation is a predefined row/column format for
storing information in a relational database.
Relations are equivalent to tables.
SQL stands for Structured Query Language
SQL lets you access and manipulate databases
SQL is an ANSI (American National Standards Institute)
standard
WHAT CAN SQL DO?
1. SQL can execute queries against a database
2. SQL can retrieve data from a database
3. SQL can insert records in a database
4. SQL can update records in a database
5. SQL can delete records from a database
6. SQL can create new databases
7. SQL can create new tables in a database
8. SQL can create stored procedures in a database
9. SQL can create views in a database
10. SQL can set permissions on tables, procedures, and
views
SQL COMMANDS
SELECT - extracts data from a database
UPDATE - updates data in a database
DELETE - deletes data from a database
INSERT INTO - inserts new data into a database
CREATE DATABASE - creates a new database
ALTER DATABASE - modifies a database
CREATE TABLE - creates a new table
ALTER TABLE - modifies a table
DROP TABLE - deletes a table
CREATE INDEX - creates an index (search key)
DROP INDEX - deletes an index
CREATING TABLES IN MS ACCESS
Tables can be created in MS access by loading and clicking on
tables however,
To add fields to a table:
1. Click the Add New Field column label.
2. Activate the Datasheet tab.
3. Click Rename in the Fields & Columns group.
4. Type the field name.
5. Press Enter. Access creates the field.
6. Type the next field name. Access creates the field.
Continue until you have created all of the fields in your
table.
7. Press Enter without entering a field name to end your
entries.
Or
1. Right-click the Add New Field column label. A menu
appears.
2. Click Rename Column.
3. Type the field name.
4. Press Enter. Access creates the field.
5. Type the next field name. Access creates the field.
Continue until you have created all of the fields in your
table.
6. Name and Save a Table
After you create a table, you must name and save it.
HOW TO SAVE TABLES
1. Click the Save button on the Quick Access toolbar.
The Save As dialog box appears.
2. Type the name you want to give your table.
3. Click OK. Access names your table.
CREATING FORMS IN MS
ACCESS
1. Step 1: Open an existing database.
2. Step 2: Click on Forms Tab.
3. Step 3: Click on the New button.
4. Step 4: Use the Form Wizard.
5. Step 5: Select data source and fields for the form.
6. Step 6: Select a form Layout.
7. Step 7: Select a form Style.
8. Step 8: Name your Form.
CREATING REPORTS IN MS
ACCESS
To use the Report button:
1. Open the Navigation pane.
2. Click the table or query on which you want to base your
report.
3. Activate the Create tab.
4. Click the Report button in the Reports group. Access
creates your report and displays your report in Layout view.
You can modify the report.
QUERYING A DATABASE
Steps:
1. Start Microsoft Access and open your database.
2. Click on the Queries tab of your database.
3. Click on the New button and then select Design View
to start creating a query in Design view.
4. Choose the tables or other queries you wish to query.
5. Choose the fields from the table/query you want. [Just
like normal queries, you will often have to specify a
criterion in your query to get the results you want.]
6. Run the query to make sure your query contains the
results are you are looking for.
7. Now, you need to change the type of query this is. In
the middle of the screen, click the Query type button
8. Change to Make-Table.
9. Specify the name of the new table and if it is going to
be created in the database you are currently working
from, or another database. [If you are creating the table
for a separate database, you will have to specify the
location of it.]
10. Run the query. Because you running an action query
that makes changes to your overall database structure,
Microsoft Access will ask if you want to cancel the
operation. Click Yes to close the dialog box, create the
new table and return to Query Design View.
11. Save your query, and you're done.
ASSIGNMENT
TERMINOLOGIES

More Related Content

What's hot

Ms Access ppt
Ms Access pptMs Access ppt
Ms Access ppt
anuj
 
MS Access Ch 2 PPT
MS Access Ch 2 PPTMS Access Ch 2 PPT
MS Access Ch 2 PPTprsmith72
 
creating data
creating datacreating data
creating data
sabinji
 
Access ppt
Access ppt Access ppt
Access ppt
VarunSanthosh2
 
Ms access 2010 lesson 3 (Interface)
Ms access 2010 lesson 3 (Interface)Ms access 2010 lesson 3 (Interface)
Ms access 2010 lesson 3 (Interface)
teng113
 
Microsoft Access 2007
Microsoft Access 2007Microsoft Access 2007
Microsoft Access 2007
Reshma Arun
 
Class viii ch-4 working with queries
Class  viii ch-4 working with queriesClass  viii ch-4 working with queries
Class viii ch-4 working with queries
jessandy
 
Lesson Four Setting Up Tables And Fields
Lesson Four   Setting Up Tables And FieldsLesson Four   Setting Up Tables And Fields
Lesson Four Setting Up Tables And Fieldsguevarra_2000
 
STARTING MICROSOFT EXCEL 2010
STARTING MICROSOFT EXCEL 2010STARTING MICROSOFT EXCEL 2010
STARTING MICROSOFT EXCEL 2010
Estrelle M.A.
 
Introduction to microsoft access
Introduction to microsoft accessIntroduction to microsoft access
Introduction to microsoft accessHardik Patel
 
MS Access 2007 in ITT
MS Access 2007 in ITTMS Access 2007 in ITT
MS Access 2007 in ITT
pillai college
 
Class viii ch-3 working with tables
Class  viii ch-3 working with tablesClass  viii ch-3 working with tables
Class viii ch-3 working with tables
jessandy
 
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
 
Phpmyadmin administer mysql
Phpmyadmin administer mysqlPhpmyadmin administer mysql
Phpmyadmin administer mysql
Mohd yasin Karim
 
MS Access Ch 1 PPT
MS Access Ch 1 PPTMS Access Ch 1 PPT
MS Access Ch 1 PPTprsmith72
 
Ms access basics ppt
Ms access basics ppt Ms access basics ppt
Ms access basics ppt
vethics
 
Access 2010 Unit A PPT
Access 2010 Unit A PPTAccess 2010 Unit A PPT
Access 2010 Unit A PPTokmomwalking
 
MS Access teaching powerpoint tasks
MS Access teaching powerpoint tasksMS Access teaching powerpoint tasks
MS Access teaching powerpoint tasks
skomadina
 

What's hot (20)

Ms Access ppt
Ms Access pptMs Access ppt
Ms Access ppt
 
MS Access Ch 2 PPT
MS Access Ch 2 PPTMS Access Ch 2 PPT
MS Access Ch 2 PPT
 
creating data
creating datacreating data
creating data
 
Access ppt
Access ppt Access ppt
Access ppt
 
Ms access 2010 lesson 3 (Interface)
Ms access 2010 lesson 3 (Interface)Ms access 2010 lesson 3 (Interface)
Ms access 2010 lesson 3 (Interface)
 
Microsoft Access 2007
Microsoft Access 2007Microsoft Access 2007
Microsoft Access 2007
 
Class viii ch-4 working with queries
Class  viii ch-4 working with queriesClass  viii ch-4 working with queries
Class viii ch-4 working with queries
 
Lesson Four Setting Up Tables And Fields
Lesson Four   Setting Up Tables And FieldsLesson Four   Setting Up Tables And Fields
Lesson Four Setting Up Tables And Fields
 
STARTING MICROSOFT EXCEL 2010
STARTING MICROSOFT EXCEL 2010STARTING MICROSOFT EXCEL 2010
STARTING MICROSOFT EXCEL 2010
 
001.general
001.general001.general
001.general
 
Introduction to microsoft access
Introduction to microsoft accessIntroduction to microsoft access
Introduction to microsoft access
 
MS Access 2007 in ITT
MS Access 2007 in ITTMS Access 2007 in ITT
MS Access 2007 in ITT
 
Class viii ch-3 working with tables
Class  viii ch-3 working with tablesClass  viii ch-3 working with tables
Class viii ch-3 working with tables
 
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
 
Phpmyadmin administer mysql
Phpmyadmin administer mysqlPhpmyadmin administer mysql
Phpmyadmin administer mysql
 
MS Access 2010 tutorial 3
MS Access 2010 tutorial 3MS Access 2010 tutorial 3
MS Access 2010 tutorial 3
 
MS Access Ch 1 PPT
MS Access Ch 1 PPTMS Access Ch 1 PPT
MS Access Ch 1 PPT
 
Ms access basics ppt
Ms access basics ppt Ms access basics ppt
Ms access basics ppt
 
Access 2010 Unit A PPT
Access 2010 Unit A PPTAccess 2010 Unit A PPT
Access 2010 Unit A PPT
 
MS Access teaching powerpoint tasks
MS Access teaching powerpoint tasksMS Access teaching powerpoint tasks
MS Access teaching powerpoint tasks
 

Viewers also liked

locotalk-whitepaper-2016
locotalk-whitepaper-2016locotalk-whitepaper-2016
locotalk-whitepaper-2016Anthony Wijnen
 
Basic example using database component
Basic example using database componentBasic example using database component
Basic example using database component
prudhvivreddy
 
Concept of Relational Database and Integrity Constraints [DIFFERENCE BETWEEN ...
Concept of Relational Database and Integrity Constraints [DIFFERENCE BETWEEN ...Concept of Relational Database and Integrity Constraints [DIFFERENCE BETWEEN ...
Concept of Relational Database and Integrity Constraints [DIFFERENCE BETWEEN ...
Rohan Byanjankar
 
Chapter 2 Relational Data Model-part 3
Chapter 2 Relational Data Model-part 3Chapter 2 Relational Data Model-part 3
Chapter 2 Relational Data Model-part 3
Eddyzulham Mahluzydde
 
Database Systems - Introduction (Chapter 1)
Database Systems - Introduction (Chapter 1)Database Systems - Introduction (Chapter 1)
Database Systems - Introduction (Chapter 1)
Vidyasagar Mundroy
 
Types of databases
Types of databasesTypes of databases
Types of databasesPAQUIAAIZEL
 
Database management system presentation
Database management system presentationDatabase management system presentation
Database management system presentationsameerraaj
 

Viewers also liked (9)

sfdfds
sfdfdssfdfds
sfdfds
 
locotalk-whitepaper-2016
locotalk-whitepaper-2016locotalk-whitepaper-2016
locotalk-whitepaper-2016
 
Basic example using database component
Basic example using database componentBasic example using database component
Basic example using database component
 
Algebra relacional
Algebra relacionalAlgebra relacional
Algebra relacional
 
Concept of Relational Database and Integrity Constraints [DIFFERENCE BETWEEN ...
Concept of Relational Database and Integrity Constraints [DIFFERENCE BETWEEN ...Concept of Relational Database and Integrity Constraints [DIFFERENCE BETWEEN ...
Concept of Relational Database and Integrity Constraints [DIFFERENCE BETWEEN ...
 
Chapter 2 Relational Data Model-part 3
Chapter 2 Relational Data Model-part 3Chapter 2 Relational Data Model-part 3
Chapter 2 Relational Data Model-part 3
 
Database Systems - Introduction (Chapter 1)
Database Systems - Introduction (Chapter 1)Database Systems - Introduction (Chapter 1)
Database Systems - Introduction (Chapter 1)
 
Types of databases
Types of databasesTypes of databases
Types of databases
 
Database management system presentation
Database management system presentationDatabase management system presentation
Database management system presentation
 

Similar to Relational models

Module 08 Access & Use Database Application.pptx
Module 08 Access & Use Database Application.pptxModule 08 Access & Use Database Application.pptx
Module 08 Access & Use Database Application.pptx
Esubalew21
 
INTRODUCTION TO ACCESSOBJECTIVESDefine th.docx
INTRODUCTION TO ACCESSOBJECTIVESDefine th.docxINTRODUCTION TO ACCESSOBJECTIVESDefine th.docx
INTRODUCTION TO ACCESSOBJECTIVESDefine th.docx
mariuse18nolet
 
Operate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptxOperate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptx
Esubalew21
 
It203 class slides-unit5
It203 class slides-unit5It203 class slides-unit5
It203 class slides-unit5Matthew Moldvan
 
Microsoft access 2007 tutorial
Microsoft access 2007 tutorialMicrosoft access 2007 tutorial
Microsoft access 2007 tutorialGhazali_MFP
 
Priyank Goel PPT.pptx
Priyank Goel PPT.pptxPriyank Goel PPT.pptx
Priyank Goel PPT.pptx
Namangupta562588
 
access1.ppt
access1.pptaccess1.ppt
access1.ppt
mayada34
 
Database.pptx
Database.pptxDatabase.pptx
Database.pptx
FernandaPerez688868
 
D I T211 Chapter 4 ( Lab 2)
D I T211    Chapter 4 ( Lab 2)D I T211    Chapter 4 ( Lab 2)
D I T211 Chapter 4 ( Lab 2)askme
 
MS ACCESS PPT.pptx
MS ACCESS PPT.pptxMS ACCESS PPT.pptx
MS ACCESS PPT.pptx
sourav mathur
 
B.sc i agri u 4 introduction to ms access
B.sc i agri u 4 introduction to ms accessB.sc i agri u 4 introduction to ms access
B.sc i agri u 4 introduction to ms access
Rai University
 
B.sc i micro bio u 4 introduction to ms access
B.sc i micro bio u 4 introduction to ms accessB.sc i micro bio u 4 introduction to ms access
B.sc i micro bio u 4 introduction to ms access
Rai University
 
B.sc i bio tech u 4 introduction to ms access
B.sc i bio tech u 4 introduction to ms accessB.sc i bio tech u 4 introduction to ms access
B.sc i bio tech u 4 introduction to ms access
Rai University
 
B.sc i bio chem u 4 introduction to ms access
B.sc i bio chem u 4 introduction to ms accessB.sc i bio chem u 4 introduction to ms access
B.sc i bio chem u 4 introduction to ms access
Rai University
 
B.sc i cs u 4 introduction to ms access
B.sc i cs u 4 introduction to ms accessB.sc i cs u 4 introduction to ms access
B.sc i cs u 4 introduction to ms access
Rai University
 
MS ACCESS PPT.pptx
MS ACCESS PPT.pptxMS ACCESS PPT.pptx
MS ACCESS PPT.pptx
khairilanam12
 
New slides access
New slides accessNew slides access
New slides access
jooomalaga
 
Chapter 10.1.3
Chapter 10.1.3Chapter 10.1.3
Chapter 10.1.3patcha535
 
Database as information system
Database as information systemDatabase as information system
Database as information system
KAZEMBETVOnline
 
MS ACCESS Tutorials
MS ACCESS TutorialsMS ACCESS Tutorials
MS ACCESS Tutorials
Duj Law
 

Similar to Relational models (20)

Module 08 Access & Use Database Application.pptx
Module 08 Access & Use Database Application.pptxModule 08 Access & Use Database Application.pptx
Module 08 Access & Use Database Application.pptx
 
INTRODUCTION TO ACCESSOBJECTIVESDefine th.docx
INTRODUCTION TO ACCESSOBJECTIVESDefine th.docxINTRODUCTION TO ACCESSOBJECTIVESDefine th.docx
INTRODUCTION TO ACCESSOBJECTIVESDefine th.docx
 
Operate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptxOperate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptx
 
It203 class slides-unit5
It203 class slides-unit5It203 class slides-unit5
It203 class slides-unit5
 
Microsoft access 2007 tutorial
Microsoft access 2007 tutorialMicrosoft access 2007 tutorial
Microsoft access 2007 tutorial
 
Priyank Goel PPT.pptx
Priyank Goel PPT.pptxPriyank Goel PPT.pptx
Priyank Goel PPT.pptx
 
access1.ppt
access1.pptaccess1.ppt
access1.ppt
 
Database.pptx
Database.pptxDatabase.pptx
Database.pptx
 
D I T211 Chapter 4 ( Lab 2)
D I T211    Chapter 4 ( Lab 2)D I T211    Chapter 4 ( Lab 2)
D I T211 Chapter 4 ( Lab 2)
 
MS ACCESS PPT.pptx
MS ACCESS PPT.pptxMS ACCESS PPT.pptx
MS ACCESS PPT.pptx
 
B.sc i agri u 4 introduction to ms access
B.sc i agri u 4 introduction to ms accessB.sc i agri u 4 introduction to ms access
B.sc i agri u 4 introduction to ms access
 
B.sc i micro bio u 4 introduction to ms access
B.sc i micro bio u 4 introduction to ms accessB.sc i micro bio u 4 introduction to ms access
B.sc i micro bio u 4 introduction to ms access
 
B.sc i bio tech u 4 introduction to ms access
B.sc i bio tech u 4 introduction to ms accessB.sc i bio tech u 4 introduction to ms access
B.sc i bio tech u 4 introduction to ms access
 
B.sc i bio chem u 4 introduction to ms access
B.sc i bio chem u 4 introduction to ms accessB.sc i bio chem u 4 introduction to ms access
B.sc i bio chem u 4 introduction to ms access
 
B.sc i cs u 4 introduction to ms access
B.sc i cs u 4 introduction to ms accessB.sc i cs u 4 introduction to ms access
B.sc i cs u 4 introduction to ms access
 
MS ACCESS PPT.pptx
MS ACCESS PPT.pptxMS ACCESS PPT.pptx
MS ACCESS PPT.pptx
 
New slides access
New slides accessNew slides access
New slides access
 
Chapter 10.1.3
Chapter 10.1.3Chapter 10.1.3
Chapter 10.1.3
 
Database as information system
Database as information systemDatabase as information system
Database as information system
 
MS ACCESS Tutorials
MS ACCESS TutorialsMS ACCESS Tutorials
MS ACCESS Tutorials
 

More from Samuel Igbanogu

Systems development cycle
Systems development cycleSystems development cycle
Systems development cycle
Samuel Igbanogu
 
Data conversion
Data conversionData conversion
Data conversion
Samuel Igbanogu
 
Algorithms and flowcharts
Algorithms and flowchartsAlgorithms and flowcharts
Algorithms and flowcharts
Samuel Igbanogu
 
Classification of computers with respect to size
Classification of computers with respect to sizeClassification of computers with respect to size
Classification of computers with respect to size
Samuel Igbanogu
 
Classification of computers by type
Classification of computers by typeClassification of computers by type
Classification of computers by type
Samuel Igbanogu
 
Classification of computers by generation
Classification of computers by generationClassification of computers by generation
Classification of computers by generation
Samuel Igbanogu
 
File organisation
File organisationFile organisation
File organisation
Samuel Igbanogu
 
Computer system soft ware
Computer system soft wareComputer system soft ware
Computer system soft ware
Samuel Igbanogu
 
Handling computer files
Handling computer filesHandling computer files
Handling computer files
Samuel Igbanogu
 
Entity relationship model
Entity relationship modelEntity relationship model
Entity relationship model
Samuel Igbanogu
 
Output devices
Output devicesOutput devices
Output devices
Samuel Igbanogu
 
Concept of computer files
Concept of computer filesConcept of computer files
Concept of computer files
Samuel Igbanogu
 
Computing devices i
Computing devices iComputing devices i
Computing devices i
Samuel Igbanogu
 
Logic gates i & ii
Logic gates i & iiLogic gates i & ii
Logic gates i & ii
Samuel Igbanogu
 
Input devices
Input devicesInput devices
Input devices
Samuel Igbanogu
 
Data models
Data modelsData models
Data models
Samuel Igbanogu
 
Normal forms
Normal formsNormal forms
Normal forms
Samuel Igbanogu
 

More from Samuel Igbanogu (17)

Systems development cycle
Systems development cycleSystems development cycle
Systems development cycle
 
Data conversion
Data conversionData conversion
Data conversion
 
Algorithms and flowcharts
Algorithms and flowchartsAlgorithms and flowcharts
Algorithms and flowcharts
 
Classification of computers with respect to size
Classification of computers with respect to sizeClassification of computers with respect to size
Classification of computers with respect to size
 
Classification of computers by type
Classification of computers by typeClassification of computers by type
Classification of computers by type
 
Classification of computers by generation
Classification of computers by generationClassification of computers by generation
Classification of computers by generation
 
File organisation
File organisationFile organisation
File organisation
 
Computer system soft ware
Computer system soft wareComputer system soft ware
Computer system soft ware
 
Handling computer files
Handling computer filesHandling computer files
Handling computer files
 
Entity relationship model
Entity relationship modelEntity relationship model
Entity relationship model
 
Output devices
Output devicesOutput devices
Output devices
 
Concept of computer files
Concept of computer filesConcept of computer files
Concept of computer files
 
Computing devices i
Computing devices iComputing devices i
Computing devices i
 
Logic gates i & ii
Logic gates i & iiLogic gates i & ii
Logic gates i & ii
 
Input devices
Input devicesInput devices
Input devices
 
Data models
Data modelsData models
Data models
 
Normal forms
Normal formsNormal forms
Normal forms
 

Recently uploaded

How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 

Recently uploaded (20)

How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 

Relational models

  • 2. LEARNING OUTCOMES: At the end of the lesson, I should be able to: a) Explain how data is represented b) Demonstrate how data can be created and modified c) Manipulate and modified data d) Obtain a database design in relational model
  • 3. RELATIONAL MODEL A relational database management system (RDBMS) is a database management system (DBMS) that is based on relational model as introduced by E.F. Codd.
  • 4. TERMS IN RELATIONAL MODEL Tables: these are a collection of related data entries and it consists of columns and rows. Field: is a column in a table that is designed to maintain specific information about every record in the table. Record: is a row of data or each individual entry that exists in a table. NULL value: is a field that is blank or with no value.
  • 5. CREATION AND MODIFICATION OF RELATIONS USING SQL A database relation is a predefined row/column format for storing information in a relational database. Relations are equivalent to tables. SQL stands for Structured Query Language SQL lets you access and manipulate databases SQL is an ANSI (American National Standards Institute) standard
  • 6. WHAT CAN SQL DO? 1. SQL can execute queries against a database 2. SQL can retrieve data from a database 3. SQL can insert records in a database 4. SQL can update records in a database 5. SQL can delete records from a database 6. SQL can create new databases 7. SQL can create new tables in a database 8. SQL can create stored procedures in a database 9. SQL can create views in a database 10. SQL can set permissions on tables, procedures, and views
  • 7. SQL COMMANDS SELECT - extracts data from a database UPDATE - updates data in a database DELETE - deletes data from a database INSERT INTO - inserts new data into a database CREATE DATABASE - creates a new database ALTER DATABASE - modifies a database CREATE TABLE - creates a new table ALTER TABLE - modifies a table DROP TABLE - deletes a table CREATE INDEX - creates an index (search key) DROP INDEX - deletes an index
  • 8. CREATING TABLES IN MS ACCESS Tables can be created in MS access by loading and clicking on tables however, To add fields to a table: 1. Click the Add New Field column label. 2. Activate the Datasheet tab. 3. Click Rename in the Fields & Columns group. 4. Type the field name. 5. Press Enter. Access creates the field. 6. Type the next field name. Access creates the field. Continue until you have created all of the fields in your table. 7. Press Enter without entering a field name to end your entries.
  • 9. Or 1. Right-click the Add New Field column label. A menu appears. 2. Click Rename Column. 3. Type the field name. 4. Press Enter. Access creates the field. 5. Type the next field name. Access creates the field. Continue until you have created all of the fields in your table. 6. Name and Save a Table After you create a table, you must name and save it.
  • 10. HOW TO SAVE TABLES 1. Click the Save button on the Quick Access toolbar. The Save As dialog box appears. 2. Type the name you want to give your table. 3. Click OK. Access names your table.
  • 11. CREATING FORMS IN MS ACCESS 1. Step 1: Open an existing database. 2. Step 2: Click on Forms Tab. 3. Step 3: Click on the New button. 4. Step 4: Use the Form Wizard. 5. Step 5: Select data source and fields for the form. 6. Step 6: Select a form Layout. 7. Step 7: Select a form Style. 8. Step 8: Name your Form.
  • 12. CREATING REPORTS IN MS ACCESS To use the Report button: 1. Open the Navigation pane. 2. Click the table or query on which you want to base your report. 3. Activate the Create tab. 4. Click the Report button in the Reports group. Access creates your report and displays your report in Layout view. You can modify the report.
  • 13. QUERYING A DATABASE Steps: 1. Start Microsoft Access and open your database. 2. Click on the Queries tab of your database. 3. Click on the New button and then select Design View to start creating a query in Design view. 4. Choose the tables or other queries you wish to query. 5. Choose the fields from the table/query you want. [Just like normal queries, you will often have to specify a criterion in your query to get the results you want.] 6. Run the query to make sure your query contains the results are you are looking for.
  • 14. 7. Now, you need to change the type of query this is. In the middle of the screen, click the Query type button 8. Change to Make-Table. 9. Specify the name of the new table and if it is going to be created in the database you are currently working from, or another database. [If you are creating the table for a separate database, you will have to specify the location of it.] 10. Run the query. Because you running an action query that makes changes to your overall database structure, Microsoft Access will ask if you want to cancel the operation. Click Yes to close the dialog box, create the new table and return to Query Design View. 11. Save your query, and you're done.