SQL in industry

Introduction to SQL with AI

Jasmin Ludolf

Senior Data Science Content Developer

SQL in industry

Healthcare

Introduction to SQL with AI

SQL in industry

Finance

Introduction to SQL with AI

SQL in industry

Retail

Introduction to SQL with AI

SQL in industry

Government

Introduction to SQL with AI

SQL in industry

Data

Introduction to SQL with AI

Asking the right question

  • Start with a clear question

$$

  • "How many?" -> Counting records
  • "What are the unique values?" -> Finding distinct items
  • "Which records fit this criteria?" -> Filtering
Introduction to SQL with AI

Translate questions into SQL

Prompt: What customer data do we have?

SELECT *
FROM customers;

$$

Prompt: Where are our customers from?

SELECT *
FROM customers;

$$

Prompt: What country is each customer from?

SELECT name, country
FROM customers;
Introduction to SQL with AI

Translate questions into SQL

Prompt: Show me the first five products from the products table

SELECT product_name
FROM products
LIMIT 5;
|product_name|
|------------|
|Laptop      |
|Desktop     |
|Gaming      |
|Mouse       |
|Keyboard    |

Prompt: Show me the customer names as first_name

SELECT name AS first_name
FROM customers;
|first_name|
|----------|
|Madison   |
|Giovanni  |
|Olivia    |
|Brady     |
...
Introduction to SQL with AI

Your SQL and AI journey

$$

  • Cross-check becomes more vital with complexity

$$

  • How many customers do we have?
  • What are our most popular products?
  • Which regions have the highest sales?

$$

Analyst showing their report

Introduction to SQL with AI

Let's practice!

Introduction to SQL with AI

Preparing Video For Download...