MIN()-Funktionen
MIN() – denne funktion returnerer den laveste værdi i en bestemt kolonne.
Lad os se på et eksempel:
12SELECT MIN(population) FROM country;
Her returnerer MIN() den mindste population-værdi i country-tabellen.
Swipe to start coding
Skriv en SQL-forespørgsel for at finde den mindste værdi i kolonnen surfacearea i tabellen country.
Løsning
Tak for dine kommentarer!
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Can I use MIN() with other columns in the same query?
How do I find the country with the smallest population?
What happens if there are NULL values in the population column?
Awesome!
Completion rate improved to 2.44
MIN()-Funktionen
Stryg for at vise menuen
MIN() – denne funktion returnerer den laveste værdi i en bestemt kolonne.
Lad os se på et eksempel:
12SELECT MIN(population) FROM country;
Her returnerer MIN() den mindste population-værdi i country-tabellen.
Swipe to start coding
Skriv en SQL-forespørgsel for at finde den mindste værdi i kolonnen surfacearea i tabellen country.
Løsning
Tak for dine kommentarer!
single