ComenzarEmpieza gratis

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 ejercicio forma parte del curso

Introduction to SQL with AI

Ver curso

Instrucciones del ejercicio

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

Ejercicio interactivo práctico

Prueba este ejercicio y completa el código de muestra.

SELECT product_name, unit_price - unit_cost
FROM products;
Editar y ejecutar código