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.
Cet exercice fait partie du cours
Introduction to SQL with AI
Instructions
- Add an alias to label the result of the subtraction as "profit".
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
SELECT product_name, unit_price - unit_cost
FROM products;