AdaptEd
Pod · look-only preview

Exploring SQL and Relational Databases

Grade 5 Computer Science TEKS SQL.1A, SQL.2A 6 slides · 13 questions
Shared by Ochoa
Sign in to make a copy
Teachers: your copy includes the answer key.
Use with my class
No account needed. You get a link for students and a private page with their scores.
The answer key isn't shown here. Nothing you do on this page is saved or graded.
Opening

🤔 What Do You Think?

Colorful spreadsheet-like grid filled with rows and columns of numbers and words on a computer screen
Slide 1

What Is SQL and a Relational Database?

SQL
— A language to get data from databases.
relational database
— A collection of tables with related data.
row
— One record or entry in a table.
Check for understanding

Check Your Understanding

Pick 1 Correct Answer

Which of these best describes SQL?

Choose the one correct answer.

Slide 2

Using SELECT to Get Data from a Table

SELECT statement
— SQL command to choose columns from a table.
SELECT *
— Shortcut to get all columns from a table.
table
— A set of data organized in rows and columns.
Check for understanding

Check Your Understanding

Code PYTHON

Write a SQL query to get the Name and Age columns from a table named Students.

Write a SQL SELECT statement to retrieve only the Name and Age columns from the Students table.
0/100 characters Waiting for input
Slide 3

Understanding Tables, Columns, and Rows

column
— A vertical set of data describing one attribute.
row
— A horizontal record containing data for one item.
Check for understanding

Check Your Understanding

Select 2 Correct Answers

Which of the following describe columns and rows in a database table? Select all that apply.

Click all the correct answers — there are 2 right options.

0 selected
Slide 4

Writing a SELECT Query for Specific Columns

query
— A request for information from a database.
Check for understanding

Check Your Understanding

Code PYTHON

Write a SQL query to get all columns from a table named Students.

Write a SQL SELECT statement to retrieve all columns from the Students table using the asterisk shorthand.
0/100 characters Waiting for input
Slide 5

Using SELECT * to Retrieve All Columns

SELECT *
— Shortcut to get all columns from a table.
Check for understanding

Check Your Understanding

Pick 1 Correct Answer

Which statement about the output of a SELECT query is true?

Choose the one correct answer.

Check for understanding

Solo Run: SQL Queries and Tables

Pick 1 Correct Answer

What does the output of a SQL SELECT query look like?

Choose the one correct answer.

Code PYTHON

Write a SQL query to select the columns 'Title' and 'Author' from a table named 'Books'.

Write a SQL SELECT statement that retrieves only the Title and Author columns from the Books table.
0/100 characters Waiting for input
Code PYTHON

Write a SQL query to get all columns from the 'Employees' table using a shortcut.

Write a SQL SELECT statement to retrieve all columns from the Employees table using the asterisk (*) shorthand.
0/100 characters Waiting for input
Select 2 Correct Answers

Which of these are true about relational database tables? Select all that apply.

Click all the correct answers — there are 2 right options.

0 selected
Exit check

Show What You Know: Exploring SQL and Relational Databases

Pick 1 Correct Answer

Which statement best describes the purpose of SQL?

Choose the one correct answer.

Matching

Match each term with its correct description.

Drag a term onto its definition, or click one item from each column to match them.

Terms
Table
Column
Row
SQL
Definitions
A vertical set of data with a fixed name, like 'Age'
A collection of rows and columns holding related data
A language to retrieve data from a database
A horizontal record holding data for one item
0 of 4 matched
Sorting

Put these steps for writing a SQL query in the correct order.

Drag and drop the items to put them in the correct order.

First / Top Last / Bottom
  • Add FROM and the table name
  • Run the query to get the result table
  • Write SELECT followed by the column names separated by commas
  • Look at the output which shows rows and columns
Drag Into Passage

Read the passage below and drag the correct terms into the blanks.

Drag the correct words from the word bank into the blanks. You can also click a word, then click a blank.

Word Bank
UPDATE INSERT DELETE SELECT * SELECT *
When you want to get all the columns from a table, you use drag here in your SELECT statement. For example, drag here FROM Students; will return every column for all rows in the Students table.
0 of 2 blanks filled