Skip to content

Commit 9466120

Browse files
Update aula.md
1 parent a07511b commit 9466120

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

aulas/aula12/aula.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,12 @@ Contar quantas linhas atingiram nosso critério de pesquisa com COUNT
134134
SELECT COUNT(nota) FROM filmes WHERE genero = 'Drama' OR genero = 'Ficção Científica';
135135
```
136136

137-
E pesquisar um valor dentro de uma lista de valores com IN
137+
Pesquisar um valor dentro de uma lista de valores com IN
138138
```
139139
SELECT COUNT(nota) FROM filmes WHERE genero IN('Drama', 'Ficção Científica');
140140
```
141+
142+
E limitar o tamanho do resultado com LIMIT
143+
```
144+
SELECT titulo, nota FROM filmes ORDER BY nota DESC LIMIT 3;
145+
```

0 commit comments

Comments
 (0)