SlideShare una empresa de Scribd logo
1 de 16
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

Más contenido relacionado

La actualidad más candente

Ms Access ppt
Ms Access pptMs Access ppt
Ms Access pptanuj
 
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 datasabinji
 
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 2007Reshma 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 queriesjessandy
 
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 2010Estrelle M.A.
 
Introduction to microsoft access
Introduction to microsoft accessIntroduction to microsoft access
Introduction to microsoft accessHardik Patel
 
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 tablesjessandy
 
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 mysqlMohd 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 tasksskomadina
 

La actualidad más candente (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
 

Destacado

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 componentprudhvivreddy
 
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 3Eddyzulham 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
 

Destacado (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 a 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.pptxEsubalew21
 
INTRODUCTION TO ACCESSOBJECTIVESDefine th.docx
INTRODUCTION TO ACCESSOBJECTIVESDefine th.docxINTRODUCTION TO ACCESSOBJECTIVESDefine th.docx
INTRODUCTION TO ACCESSOBJECTIVESDefine th.docxmariuse18nolet
 
Operate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptxOperate Spreadsheet applications ppt.pptx
Operate Spreadsheet applications ppt.pptxEsubalew21
 
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
 
access1.ppt
access1.pptaccess1.ppt
access1.pptmayada34
 
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
 
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 accessRai 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 accessRai 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 accessRai 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 accessRai 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 accessRai University
 
New slides access
New slides accessNew slides access
New slides accessjooomalaga
 
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 systemKAZEMBETVOnline
 
MS ACCESS Tutorials
MS ACCESS TutorialsMS ACCESS Tutorials
MS ACCESS TutorialsDuj Law
 

Similar a 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
 

Más de Samuel Igbanogu

Más de 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
 

Último

How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 

Último (20)

How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.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.