ComeçarComece de graça

Aliasing a field

You recently fixed a query to use the correct fields. Now, you need to clean up your code for the report going to the PoweredHomes management team. You'll do this by adding a descriptive alias.

Update the query to include a precise alias for the results.

Este exercício faz parte do curso

Introduction to SQL with AI

Ver curso

Instruções do exercício

  • Add an alias to label the result of the subtraction as "profit".

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

SELECT product_name, unit_price - unit_cost
FROM products;
Editar e executar o código