Back to Database
N
Oak National Academy
Lessons written by expert teachers in England, each with slides, a video and quizzes.
Their topic:
Databases and SQL
For your topic:
Database · Computer Studies
Use these lessons alongside our lesson note, which covers your syllabus in full.
What this covers in your syllabus
3 lessons from Oak National Academy
1
Data management with SQL statements
2
Database design
3
Database fundamentals
Lesson 1 of 3 · GCSE level, ages 14 to 16
Goes further than your syllabus
Data management with SQL statements
By the end:
I can use SQL statements to manage data in a database, including inserting, updating, and deleting records.
Key learning points
SQL is used to manage data within relational databases.
SQL allows users to interact with and interrogate data through standardised commands.
The SQL CREATE command can be used to create a new table.
SQL statements must follow specific syntax rules to execute correctly.
Keywords
CREATE
allows you to create a new table in a database
A common mistake
Mistake: SQL statements can only be used with exisiting tables.
In fact: SQL statements can be used to perform other actions on a databse such as creating new tables.
Check what you learned
From Oak National Academy's exit quiz. Choose every answer that is right.
Which of these is True about SQL?
It is only used for searching data.
It cannot delete records.
It is not used with databases.
It can manage, create, and change data.
What does the SQL CREATE command do?
updates data in a table
creates a new table in the database
deletes a table
searches for records
What must you always follow when writing SQL statements?
syntax rules
colour coding
file size limits
font choices
Which SQL command correctly creates a table called tblStudents?
CREATE TABLE tblStudents;
CREATE tblStudents TABLE;
TABLE CREATE tblStudents;
CREATE TABLE: tblStudents;
Check answers
A computing lesson by Oak National Academy licensed under the Open Government Licence (OGL) v3.0.
Read the licence
Lesson 2 of 3 · GCSE level, ages 14 to 16
Database design
By the end:
I can design a relational database structure for a given scenario.
Key learning points
A DBMS is a software application that allows a database administrator to maintain one or more relational databases.
A data model helps visualise how data is structured for a given scenario, including the relationships between elements.
One of the easiest ways to show how data is organised is by using an entity-relationship diagram (ERD).
Keywords
DBMS
DataBase Management System: a software package that allows a database administrator to maintain one or more databases
ERD
Entity Relationship Diagram: a diagram that shows the relationship between two or more entities
entity
an entity is a single object, place, person or thing
A common mistake
Mistake: A DBMS is only used for storing data.
In fact: While storage is a major function, a DBMS also provides data security, integrity and querying capabilities.
Check what you learned
From Oak National Academy's exit quiz. Choose every answer that is right.
Which of the following is a main function of a DBMS besides storage?
Drawing pictures
Printing documents
Providing data security and integrity
Playing music
What is an entity in a database?
A type of software
Something about which data is stored
A computer virus
A data backup
Check answers
A computing lesson by Oak National Academy licensed under the Open Government Licence (OGL) v3.0.
Read the licence
Lesson 3 of 3 · GCSE level, ages 14 to 16
Database fundamentals
By the end:
I can describe the difference between a flat file and relational database.
Key learning points
Data is fundamental to any computer system.
With data comes the need for a system that is able to store, sort, and search through it.
A database is an organised collection of data.
Databases can be as simple as a single file, and as complex as a set of related tables, each with fields and keys.
Keywords
record
a data structure that stores related fields of data for a single object or being
field
the part of a record which are the category headings for data in a table sometimes called an attribute
primary key
an attribute that uniquely identifies a record in a database table
foreign key
an attribute in one table that is the primary key in another table and is used to link the tables together
A common mistake
Mistake: A primary key and a foreign key are the same thing.
In fact: A primary key is an attribute that uniquely identifies a record in a database table, whereas a foreign key is an attribute in one table that is the primary key in another table and is used to link the tables together.
Check what you learned
From Oak National Academy's exit quiz. Choose every answer that is right.
What is a record in a database?
a single value in a table
all the data in a table
a set of related fields for one item
the name of a table
What is the main advantage of using a relational database over a flat file database?
It is harder to understand.
It stores all data in one place.
It reduces duplication and links data efficiently.
It cannot be searched.
Check answers
A computing lesson by Oak National Academy licensed under the Open Government Licence (OGL) v3.0.
Read the licence
The wording comes from each publisher. The layout and the links to your syllabus are ours.