

Structured Query Language
Presentation
•
Computers
•
9th - 10th Grade
•
Practice Problem
•
Easy
Ryan Mordey
Used 11+ times
FREE Resource
9 Slides • 9 Questions
1
Structured Query Language (SQL)
Mr Mordey
2
Big Picture
Described how sub routines are used in programming.
Past
Describe how SQL is used throughout programming and accessing databases.
Develop code that makes use of SQL procedures
Present
Future
Careers: HTML Developer, Database Manager.
3
Multiple Choice
What is a sub routine?
A subroutine is a small chunk of contained within a larger program.
4
Multiple Choice
What is the difference between a function and procedure?
5
SQL stands for structured query language. This is a specific programming language to search for data in a database.
Databases can have thousands of records so SQL allows us to search for data in a more efficient manner so it can be returned in a program.
SQL
6
A database is made up of fields and records.
A record contains different data about a single product/person and goes across in the table. Each record is uniquely identified by a primary key. A record is unique.
A field is a piece of information that is stored for each record, this goes down in the table. A field is not unique.
Database Structure
Records
7
Multiple Choice
What is the purpose of SQL?
The purpose of SQL is to manage search, and manipulate databases.
8
Labelling
Label the database features
Container
Secondary Key
Data
Record
Field
Primary Key
9
Searching For Data
Databases store huge amounts of information. SQL allows us to easily search for data from each table using the SELECT command, lets use this table as an example:
SELECT MovieName FROM movies would return all movies from the table
SELECT MovieName, Rating FROM movies would return all movies and their rating from the table
SELCECT * FROM movies would return all records from the table
10
Filtering Data
We can filter the data down using the WHERE command to only show certain information using conditions, we will still use this table:
SELECT * FROM movies WHERE rating >= 7 would return the following data:
11
Multiple Choice
What is the purpose of the * command when searching for records in SQL?
The * command returns all records in a SQL query.
12
Drag and Drop
13
Filtering Data with operators
We can also use Boolean operators to select multiple fields to filter data from.
SELECT Director FROM movies WHERE rating >=7 AND age = 12 would return the following data:
SELECT * FROM movies WHERE rating >= 5 AND age = "PG" would return the following data:
14
WildCards
We can use Wildcards so search for patterns in data using the WHERE and LIKE command:
SELECT director FROM movies WHERE MovieName LIKE "%World" would return the following data:
SELECT * FROM movies WHERE MovieName LIKE "%End" would return the following data:
15
Multiple Choice
How are Boolean operators used in SQL?
Boolean operators in SQL are used to filter multiple fields.
16
Multiple Choice
What is the purpose of the Like "% " wildcard in SQL
To only return records that include symbols.
To remove data from a record.
To convert all records into a percentage.
To return data with the pattern outlined in the condition.
17
Open Ended
Write SQL code to return all records contain the letters "end" in the movie name
18
Main Task
Computer Task:
Add to your exam reference language programming guide in Publisher.
You should include information about SQL including an example.
You should include the definition of SQL, why we use SQL and examples of code to create a database and search for data.
Complete all the questions on the work sheet.
Structured Query Language (SQL)
Mr Mordey
Show answer
Auto Play
Slide 1 / 18
SLIDE
Similar Resources on Wayground
11 questions
Teknologi Informasi dan Komunikasi
Presentation
•
10th Grade
16 questions
Data Representation - Sound
Presentation
•
9th - 11th Grade
14 questions
Data Representation
Presentation
•
9th - 10th Grade
14 questions
Tone/Mood/Theme/Connotation/Denotation EXAM
Presentation
•
9th - 10th Grade
12 questions
Anne Frank Character Change
Presentation
•
6th - 9th Grade
13 questions
Writing linear equations
Presentation
•
9th - 10th Grade
15 questions
Making Inferences
Presentation
•
9th - 10th Grade
15 questions
Compound-Complex Sentences
Presentation
•
9th - 10th Grade
Popular Resources on Wayground
16 questions
Grade 3 Simulation Assessment 2
Quiz
•
3rd Grade
19 questions
HCS Grade 5 Simulation Assessment_1 2526sy
Quiz
•
5th Grade
10 questions
Cinco de Mayo Trivia Questions
Interactive video
•
3rd - 5th Grade
17 questions
HCS Grade 4 Simulation Assessment_2 2526sy
Quiz
•
4th Grade
24 questions
HCS Grade 5 Simulation Assessment_2 2526sy
Quiz
•
5th Grade
13 questions
Cinco de mayo
Interactive video
•
6th - 8th Grade
20 questions
Math Review
Quiz
•
3rd Grade
30 questions
GVMS House Trivia 2026
Quiz
•
6th - 8th Grade