Project computed values directly in the result set.
Section: SELECT Basics
Select literals and expressions
sql
sql
SELECT order_id, subtotal, tax, subtotal + tax AS total
FROM orders;Explanation
Most SQL engines allow arithmetic, string, and function expressions in SELECT.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing SELECT Basics