-
A) CORRETA
B) SELECT * FROM emp WHERE nome IN ('Pedro','Ana');
C) SELECT * FROM emp WHERE salario BETWEEN 1000 AND 2000;
D) SELECT * FROM emp WHERE SUBSTR(nome,1, 4)= 'Mari';
E) SELECT nome, salario+NVL(comissao, 0) FROM emp;
Os trechos em negritos são as correções. Caso tenha algum equívoco, só corrigir.
Bons estudos!
-
Fui de A, mas alguém chegou a testar? Será que André não faz a condição? Digo esse "_" não pode valer um valor em branco inclusive?
-
WHERE CustomerName LIKE 'a%'Finds any values that start with "a"
WHERE CustomerName LIKE '%a'Finds any values that end with "a"
WHERE CustomerName LIKE '%or%'Finds any values that have "or" in any position
WHERE CustomerName LIKE '_r%'Finds any values that have "r" in the second position
WHERE CustomerName LIKE 'a_%_%'Finds any values that start with "a" and are at least 3 characters in length
WHERE ContactName LIKE 'a%o'Finds any values that start with "a" and ends with "o"