Presentation is loading. Please wait.

Presentation is loading. Please wait.

Database revision.

Similar presentations


Presentation on theme: "Database revision."— Presentation transcript:

1 Database revision

2 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 Data Fields Record Table Data Table Record Fields

3 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.

4 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

5 What are the different types of relationship?
Many-to-Many Teacher Subjects One-to-one Person Passport One-to-Many Owner Car

6 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.

7 Which Data Type should be used?
Field Data Type Date of Birth Date/time Smoker? Yes/no Name Text Telephone Number Postcode text Customer ID Auto number

8 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 Internet Network Network Internet

9 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

10 Structured Query Language (SQL) is made up of 2 parts
Structured Query Language (SQL) is made up of 2 parts. Match up the definitions with a line Data Definition Language (DDL) Defines the structure of the database Can make changes such as add, delete and change – also creates queries Data Manipulation Language (DML)

11 Answer the following questions
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-many Many-to-many


Download ppt "Database revision."

Similar presentations


Ads by Google