
AQA SQL L2
Presentation
•
Computers
•
10th Grade
•
Practice Problem
•
Easy
Roy Duguid
Used 3+ times
FREE Resource
18 Slides • 5 Questions
1
SQL L2
2
3
Recap Key Terms SQL
Replace this with your body text. Duplicate this text as many times as you would like. All provided templates can be reused multiple times. Wish you a good day.
Happy teaching!
4
Database Overview
A collection of information stored together in a structured and organised way
Databases are arranged using tables, records and fields
Each record has a fields that uniquely identifies (separates) that record from others. This is the primary key
5
Flat-file
Repeated data (duplication)
Greater chance for inaccuracy
Increases data entry time
Reduced data integrity (trust in data and query results)
Easy to create
6
Relational Database
Data stored and inputted once
Can setup access rights for individual tables
New tables or fields can be added without affecting other tables
Difficult to setup with specialised software required
7
Primary vs Foreign Key
Primary key is a field within a table that uniquely identifies each row
Foreign key is a field that references the primary key of another table
8
Multiple Choice
What is the table name?
9
Multiple Choice
What is the primary key?
country
first_name
Customers
10
Multiple Choice
What is the foreign key of the table Orders?
11
Draw
Highlight 1 field
12
Draw
Highlight 1 record
13
The SQL INSERT INTO Statement
The INSERT INTO statement is used to insert new records in a table.
INSERT INTO Syntax It is possible to write the INSERT INTO statement in two ways.
The first way specifies both the column names and the values to be inserted
14
INSERT INTO Syntax
If you are adding values for all the columns of the table, you do not need to specify the column names in the SQL query. However, make sure the order of the values is in the same order as the columns in the table. The INSERT INTO syntax would be as follows:
15
16
17
Teams > Activity 1
18
The SQL DELETE Statement
The DELETE statement is used to delete existing records in a table.
19
DELETE Syntax
DELETE FROM table_name WHERE condition;
20
DELETE Syntax
DELETE FROM table_name WHERE condition;
21
Warning with DELETE
22
Warning with DELETE
23
Teams > Activity 2
SQL L2
Show answer
Auto Play
Slide 1 / 23
SLIDE
Similar Resources on Wayground
19 questions
TYPES OF CHEMICAL REACTIONS.
Presentation
•
10th Grade
17 questions
Aqueous Solution
Presentation
•
10th Grade
19 questions
Yr 11 - AQA GCSE Computer Science-Computer networks revision
Presentation
•
9th - 10th Grade
18 questions
Points, Lines, and Segments
Presentation
•
10th Grade
18 questions
Words in Context CCSS L 10.4
Presentation
•
10th Grade
18 questions
Angles in Polygons/ Parallelograms Review!
Presentation
•
10th Grade
18 questions
Lesson 9: 3 Ways to Solve Linear Systems
Presentation
•
10th Grade
18 questions
STAAR Prep - Editing
Presentation
•
10th Grade
Popular Resources on Wayground
15 questions
Grade 3 Simulation Assessment 1
Quiz
•
3rd Grade
22 questions
HCS Grade 4 Simulation Assessment_1 2526sy
Quiz
•
4th Grade
16 questions
Grade 3 Simulation Assessment 2
Quiz
•
3rd Grade
19 questions
HCS Grade 5 Simulation Assessment_1 2526sy
Quiz
•
5th Grade
17 questions
HCS Grade 4 Simulation Assessment_2 2526sy
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
24 questions
HCS Grade 5 Simulation Assessment_2 2526sy
Quiz
•
5th Grade
20 questions
Math Review
Quiz
•
3rd Grade