Practice Select Statement: Basic Queries (4.3.2) - Structured Query Language (SQL) - Part 1
Students

Academic Programs

AI-powered learning for grades 8-12, aligned with major curricula

Professional

Professional Courses

Industry-relevant training in Business, Technology, and Design

Games

Interactive Games

Fun games to boost memory, math, typing, and English skills

SELECT Statement: Basic Queries

Practice - SELECT Statement: Basic Queries

Learning

Practice Questions

Test your understanding with targeted questions

Question 1 Easy

Write a simple SELECT statement to display all records from the Employees table.

💡 Hint: Use the '*' wildcard to select all columns.

Question 2 Easy

How would you retrieve only the LastName from the Students table?

💡 Hint: Specify the column name you wish to retrieve.

4 more questions available

Interactive Quizzes

Quick quizzes to reinforce your learning

Question 1

What does the SELECT statement do?

A. Updates data in the table
B. Retrieves data from a table
C. Deletes data from a table

💡 Hint: Think about what action SELECT is performing.

Question 2

The DISTINCT keyword is used to:

A. Modify records in the database
B. Retrieve unique values
C. Apply conditions to a query

💡 Hint: What does DISTINCT indicate about the data we want?

2 more questions available

Challenge Problems

Push your limits with advanced challenges

Challenge 1 Hard

Write a complex query to join the Students table and Departments table to display all students with their respective department names, but only for active departments.

💡 Hint: Think about how to join tables and filter for active departments.

Challenge 2 Hard

Create a query that retrieves unique first names of students from the Students table who were born between 1995 and 2000, sorted alphabetically.

💡 Hint: Use DISTINCT with a specific range in the WHERE clause to filter your results.

Get performance evaluation

Reference links

Supplementary resources to enhance your learning experience.