database revision. database definitions. drag the word into the box a database is a collection of a...
TRANSCRIPT
![Page 1: Database revision. Database definitions. Drag the word into the box A database is a collection of A set of data is stored in a A row in a table that stores](https://reader036.vdocuments.net/reader036/viewer/2022082711/56649f255503460f94c3c2ff/html5/thumbnails/1.jpg)
Database revision
![Page 2: Database revision. Database definitions. Drag the word into the box A database is a collection of A set of data is stored in a A row in a table that stores](https://reader036.vdocuments.net/reader036/viewer/2022082711/56649f255503460f94c3c2ff/html5/thumbnails/2.jpg)
Database definitions.Drag the word into the box
• A database is a collection of• A set of data is stored in a• A row in a table that stores
information about a single item is a
• The columns in a table store categories called
DataFieldsRecordTable
Data
Table
Record
Fields
![Page 3: Database revision. Database definitions. Drag the word into the box A database is a collection of A set of data is stored in a A row in a table that stores](https://reader036.vdocuments.net/reader036/viewer/2022082711/56649f255503460f94c3c2ff/html5/thumbnails/3.jpg)
Research time:
• What is the difference between a flat file and relational database? A flat file database is one table of information and a relational database is a number of tables of information linked together.
• What is data redundancy?Data redundancy is when data is no longer needed.
![Page 4: Database revision. Database definitions. Drag the word into the box A database is a collection of A set of data is stored in a A row in a table that stores](https://reader036.vdocuments.net/reader036/viewer/2022082711/56649f255503460f94c3c2ff/html5/thumbnails/4.jpg)
Highlight the primary keys in Green. Highlight the foreign key in red
Owner
Owner ID
Name
Address
Date of Birth
Car Details
Car Registration
Make
Model
Owner ID
![Page 5: Database revision. Database definitions. Drag the word into the box A database is a collection of A set of data is stored in a A row in a table that stores](https://reader036.vdocuments.net/reader036/viewer/2022082711/56649f255503460f94c3c2ff/html5/thumbnails/5.jpg)
What are the different types of relationship?
SubjectsTeacher
PassportPerson
CarOwner
One-to-one
One-to-Many
Many-to-Many
![Page 6: Database revision. Database definitions. Drag the word into the box A database is a collection of A set of data is stored in a A row in a table that stores](https://reader036.vdocuments.net/reader036/viewer/2022082711/56649f255503460f94c3c2ff/html5/thumbnails/6.jpg)
Primary and Foreign Keys
• Which key is a field in a table which is unique and enables you to identify every record in that table?
• Answer: Primary key because it uniquely identifies data.
• Which key is used to link the table together and create a relationship?
• Answer: Foreign key because it creates a link between the two tables.
![Page 7: Database revision. Database definitions. Drag the word into the box A database is a collection of A set of data is stored in a A row in a table that stores](https://reader036.vdocuments.net/reader036/viewer/2022082711/56649f255503460f94c3c2ff/html5/thumbnails/7.jpg)
Which Data Type should be used?Field Data Type
Date of Birth Date/time
Smoker? Yes/no
Name Text
Telephone Number Text
Postcode text
Customer ID Auto number
![Page 8: Database revision. Database definitions. Drag the word into the box A database is a collection of A set of data is stored in a A row in a table that stores](https://reader036.vdocuments.net/reader036/viewer/2022082711/56649f255503460f94c3c2ff/html5/thumbnails/8.jpg)
Local Database gap fill
• A local data is stored and accessed on its own
• This means the data is more protected as data is not moving across the
InternetNetwork
Network
Internet
![Page 9: Database revision. Database definitions. Drag the word into the box A database is a collection of A set of data is stored in a A row in a table that stores](https://reader036.vdocuments.net/reader036/viewer/2022082711/56649f255503460f94c3c2ff/html5/thumbnails/9.jpg)
Database Management System (DBMS)& SQL. Which is the correct definition?
• This is software that allows you to create and use your own databases. It creates tables and fields, and can sort and search for data, It can also allow for different levels of access by different users.
• Answer: DBMS• This is the language that can be used to create
databases. It is made up of 2 parts• Answer: SQL
![Page 10: Database revision. Database definitions. Drag the word into the box A database is a collection of A set of data is stored in a A row in a table that stores](https://reader036.vdocuments.net/reader036/viewer/2022082711/56649f255503460f94c3c2ff/html5/thumbnails/10.jpg)
Structured Query Language (SQL) is made up of 2 parts. Match up the definitions with a
line
• Defines the structure of the database
• Can make changes such as add, delete and change – also creates queries
Data Definition Language (DDL)
Data Manipulation Language (DML)
![Page 11: Database revision. Database definitions. Drag the word into the box A database is a collection of A set of data is stored in a A row in a table that stores](https://reader036.vdocuments.net/reader036/viewer/2022082711/56649f255503460f94c3c2ff/html5/thumbnails/11.jpg)
Answer the following questions. Use the PowerPoints on Sandy ICT, this quiz and
the hand-out to help you. • 1.Explain the difference between a database and a database management system (DBMS) a database is a table that stores data and a DBMS manages data. • 2.Explain what the role of Data Definition Language (DDL)Defines the structure of the database • 3.Explain the role of Data Manipulation Language (DML)Can make changes such as add, delete and change – also creates queries• 4.Give an example of how an online database might be used.Amazon, train times etc• 5.What is the difference between a flat file and a relational database? Flat file database is a flat file database
is one table of information and a relational database is a number of tables of information linked together. • 6.Give 3 examples of data types that can be used in a database field. Yes/no, text, number• 7.What are the different types of relationships that you can have in a relational database? Give examples.One-to –one One-to-manyMany-to-many