Query SQL intermedie con l'AI
Jasmin Ludolf
Senior Data Science Content Developer
$$
💻 Sviluppa competenze SQL e AI:
Ordina Raggruppa Filtra Riepiloga
Categorie personalizzate
$$
Tutto con i prompt!


⚠️ Chiedi sempre il permesso prima di condividere il contesto con l'AI

Prompt: Mostra tutti i titoli dei film in ordine alfabetico
SELECT title
FROM films
ORDER BY title ASC;
|title |
|--------------------------|
|#Horror |
|10 Cloverfield Lane |
|10 Days in a Madhouse |
|10 Things I Hate About You|
|10,000 B.C. |
|102 Dalmatians |
...
$$
$$
ASC Ordine crescente:Prompt: Mostra tutti i titoli dei film in ordine decrescente
SELECT title
FROM films
ORDER BY title DESC;
|title |
|--------------------------|
|Æon Flux |
|xXx: State of the Union |
|xXx (Triple X) |
|eXistenZ|
...
$$
$$
DESC per decrescente$$
⬆ Ordine crescente
$$
⬇ ️ Ordine decrescente
SELECT title
FROM films
ORDER BY release_year;
|title |
|------------------------------|
|Intolerance: Love's Struggl...|
|Over the Hill to the Poorhouse|
|The Big Parade |
|Metropolis |
...
Prompt: Mostra titoli e anni di uscita, ordinati per anno di uscita
SELECT title, release_year
FROM films
ORDER BY release_year;
|title |release_year|
|------------------------------|------------|
|Intolerance: Love's Struggle |1916 |
|Over the Hill to the Poorhouse|1920 |
|The Big Parade |1925 |
|Metropolis |1927 |
...
SELECT title, oscar
FROM awards
ORDER BY oscar DESC;
|title |oscar|
|-------------------------------|-----|
|Lord of the Rings:Return of ...|11 |
|Titanic |11 |
|Ben-Hur |11 |
SELECT title, oscar, bafta
FROM awards
ORDER BY oscar DESC, bafta DESC;
|title |oscar|bafta|
|--------------------|-----|-----|
|Lord of the Rings...|11 |2 |
|Ben-Hur |11 |1 |
|Titanic |11 |0 |
Prompt: Mostra titoli dei film e anni di uscita ordinati per anno decrescente e poi titolo crescente
SELECT title, release_year
FROM films
ORDER BY release_year DESC, title ASC;
|title |release_year|
|----------------|------------|
|10,000 B.C. | |
|A Touch of Frost| |
|Anger Management| |
|Animal Kingdom | |
...
Query SQL intermedie con l'AI