Concurso:
BRDE
Disciplina:
Banco de Dados
mostrar texto associado
Considerando a tabela users mostrada na Figura 1 e a tabela stuff apresentada na Figura 2, qual o valor do campo result do registro retornado pela consulta SQL na caixa abaixo?
SELECT users.id, users.name, SUM(stuff.value) AS result FROM users INNER JOIN stuff ON users.id = stuff.owner AND users.name = 'Any'
GROUP BY users.id;
SELECT users.id, users.name, SUM(stuff.value) AS result FROM users INNER JOIN stuff ON users.id = stuff.owner AND users.name = 'Any'
GROUP BY users.id;