
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
20 questions
Design Principles: Visual and Text elements
Presentation
•
10th Grade
18 questions
Law of Conservation of Linear Momentum and Impulse
Presentation
•
10th Grade
19 questions
Open Cloze
Presentation
•
10th Grade
20 questions
Get Smart Plus 3 Topic 8 was/were
Presentation
•
1st - 4th Grade
19 questions
Yr 11 OCR Cambridge Nationals IT
Presentation
•
9th - 10th Grade
18 questions
Mole to Mole Ratio
Presentation
•
10th Grade
18 questions
Discovery of the cell and the Cell Theory
Presentation
•
10th Grade
19 questions
Division of Labour and Economic Sectors
Presentation
•
10th Grade
Popular Resources on Wayground
6 questions
PRIDE Always and Everywhere
Presentation
•
12th Grade
20 questions
Lab Safety Quiz
Quiz
•
6th Grade
26 questions
KOR Review Kahoot Questions
Quiz
•
8th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
12 questions
Unit Zero lesson 2 cafeteria
Presentation
•
9th - 12th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
10 questions
Riddles Riddles fun Riddles
Quiz
•
6th - 12th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade