Introductie tot SQL-query's met AI
Jasmin Ludolf
Senior Data Science Content Developer
Prompt: Hoeveel producten hebben we?
SELECT COUNT(*) AS total_count
FROM products;
|total_count|
|-----------|
|50 |
Prompt: Hoeveel producten hebben we?
SELECT COUNT(*)
FROM products;
|?count?|
|-------|
|50 |
Prompt: Tel het aantal rijen in de productentabel
SELECT COUNT(*) AS total_count
FROM products;
|total_count|
|-----------|
|50 |
Prompt: Hoeveel producten hebben we?
SELECT COUNT(*) AS total_count
FROM products;
|total_count|
|-----------|
|50 |
Prompt: Hoeveel productnamen hebben we?
SELECT COUNT(product_name) AS product_count
FROM products;
|product_count|
|-------------|
|49 |
Prompt: Hoeveel verschillende categorieën verkopen we?
SELECT COUNT(DISTINCT category) AS unique_categories
FROM products;
|unique_categories|
|-----------------|
|9 |
$$
COUNT(*):COUNT(veld):DISTINCT
Introductie tot SQL-query's met AI