Introduction to SQL with AI
Jasmin Ludolf
Senior Data Science Content Developer
$$
$$
prod_nm
instead of product_name
Customer ID
or cust Id
$$
SELECT prod_nm
FROM products;
|prod_nm|
|-------|
|Laptop |
|Desktop|
...
$$
$$
SELECT field_name AS alias
FROM table_name;
Prompt: Show me the customer names as first_name
SELECT name AS first_name
FROM customers;
|first_name|
|----------|
|Madison |
|Giovanni |
|Olivia |
|Brady |
...
$$
$$
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