Section 1 - Instruction

Now that you understand database structure and data types, let's learn how to actually retrieve information from tables. This is where SQL (Structured Query Language) comes in.

SQL is the language we use to ask databases questions and get answers back.

Engagement Message

What is one question you could ask about a list of customers?

Section 2 - Instruction

The most fundamental SQL command is SELECT. Every time you want to get data from a database, you'll start with SELECT.

Think of SELECT as saying "Show me..." followed by what specific information you want to see.

Engagement Message

If you wanted to see customer names, how might that request start?

Section 3 - Instruction

Here's the basic structure:

The SELECT tells the database what columns you want to see. The FROM tells it which table to look in. The semicolon signals you're done.

Engagement Message

Does this make sense?

Section 4 - Instruction

Let's translate plain English to SQL. If someone asks "Show me all customer names from the customers table," here's the SQL version:

Notice the similarity between plain English and SQL.

Engagement Message

What part changed between English and SQL?

Section 5 - Instruction

Another example: "Show me all email addresses from the users table" becomes:

The pattern stays the same: SELECT [what column] FROM [which table];

Engagement Message

Try translating this: "Show me all prices from the products table." What would the SQL look like?

Section 6 - Instruction
Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal