

BD-Correção1b
Presentation
•
Computers
•
Professional Development
•
Easy
Daniela Toda
Used 1+ times
FREE Resource
2 Slides • 7 Questions
1
Correção 1º Bimestre

2
Vamos corrigir as avaliações
Para isso, vamos refazer as questões, ok?
3
Open Ended
Considere a tabela 'livro' que possui a coluna 'titulo'.
Escreva um código que retorne resultado dos livros com título iniciado por Harry Potter
4
Multiple Choice
Suponha que há uma tabela 'ave'com 4 colunas:
idave, nome, nome_cientifico, familia_idfamilia
Escolha a opção abaixo que retorne o resultado dos campos nome e nome_cientifico, ordenados por nome de forma decrescente.
select nome, nome_cientifico order by nome asc;
select * from ave order by nome_cientifico;
select nome, nome_cientifico order by nome desc;
select nome, nome_cientifico order by nome_cientifico desc;
select * from ave order by nome desc;
5
Multiple Choice
Suponha que há uma tabela 'livro' com 6 colunas:
isbn, autor, titulo, quantidade, preco, cod_editora
Escolha o código que retorne apenas resultados de livros disponíveis.
select * from livro where disponivel = 0;
select * from livro where disponivel > 0;
select * from livro where disponivel like 0;
select * from livro where disponivel < 0;
6
Multiple Choice
Suponha que há uma tabela 'livro' com 6 colunas:
isbn, autor, titulo, quantidade, preco, cod_editora
Escolha o código que retorne apenas resultados de livros não disponíveis
select * from livro where disponivel < 0;
select * from livro where disponivel like 0;
select * from livro where disponivel = 0;
7
Multiple Choice
Suponha que haja uma tabela chamada 'funcionario' que possui as colunas 'nome' e 'salario'.
Escreva um código para selecionar o nome e o código do funcionário que tiver salário entre 10 mil e 13 mil.
select codigo, nome from funcionario where salario < 10000.00;
select nome, codigo from funcionario where salario in (5000.00, 5500.00);
select *codigo, nome from funcionario where salario between 10000.00 and 13000.00;
select * from funcionario where salario != 50000.00;
8
Multiple Choice
Suponha que haja uma tabela chamada 'funcionario' que possui as colunas 'nome' e 'salario'.
Escreva um código para selecionar o nome e o código do funcionário que tiver salário entre 10 mil e 13 mil e ordene pelo salario (do mais alto para o mais baixo).
select *codigo, nome from funcionario where salario between 10000.00 and 13000.00 order by salario desc;
select * from funcionario order by salario desc;
select * from funcionario where salario != 50000.00 order by salario;
select nome, codigo from funcionario where salario in (5000.00, 5500.00) order by salario;
9
Multiple Choice
Escreva o código em SQL que retorne os registros da tabela ‘observacao’ em que os campos ‘cidade’ sejam Cuiabá ou Rondonópolis.
select * from observacao where cidade = 'Cuiabá' or cidade = 'Rondonópólis';
select * from observacao where cidade = 'Cuiabá';
select * from observacao where cidade = Rondonópolis';
Correção 1º Bimestre

Show answer
Auto Play
Slide 1 / 9
SLIDE
Similar Resources on Wayground
9 questions
GDPR
Presentation
•
Professional Development
8 questions
7- Horas extras
Presentation
•
University
8 questions
Feb - LNLP Calib
Presentation
•
KG - University
4 questions
みんなの日本語I 第1課 文法
Presentation
•
Professional Development
5 questions
Jobs & Strengths
Presentation
•
Professional Development
5 questions
TOPIC 1: I LIKE PLAYING SPORTS
Presentation
•
Professional Development
8 questions
FRESIA RAMIREZ GUERRERO
Presentation
•
KG
6 questions
Example
Presentation
•
KG - University
Popular Resources on Wayground
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
4 questions
Exit ticket for the end of class: Spotlight
Quiz
•
KG - Professional Dev...
20 questions
90s Cartoons
Quiz
•
Professional Development
20 questions
Block Buster Movies
Quiz
•
10th Grade - Professi...
10 questions
How to Email your Teacher
Quiz
•
Professional Development