

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
6 questions
How to make a Quizizz lesson
Presentation
•
KG - Professional Dev...
7 questions
BARROCO NO BRASIL
Presentation
•
Professional Development
7 questions
Canva K-5 (Q2 SU24)
Presentation
•
Professional Development
8 questions
FIGURAS DE LINGUAGEM
Presentation
•
Professional Development
8 questions
Propane Technology
Presentation
•
Professional Development
10 questions
Describing and classifying matter (6th and 3rd)
Presentation
•
6th - 9th Grade
4 questions
Quiz Bowl: Translations Edition
Presentation
•
Professional Development
10 questions
FoIS - Imaging Tool
Presentation
•
Professional Development
Popular Resources on Wayground
10 questions
HCS SCI 03 Summer School Assessment 1
Quiz
•
3rd Grade
15 questions
HCS SCI 05 Summer School Assessment 1 Review
Quiz
•
5th Grade
22 questions
Day 9 Equations and Inequalities Review
Quiz
•
9th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
7 questions
PYRAMID PERSPECTIVES part 1
Presentation
•
9th - 12th Grade
12 questions
Understanding the Fourth of July
Quiz
•
9th Grade
15 questions
Soccer World Cup Quiz Questions
Quiz
•
7th Grade