AS - allows us to rename columns or table selections with an alias
SELECT payment as my_payment_column
FROM table
SELECT payment_id, SUM(amount) AS sum
FROM payment
GROUP BY payment_id
We use cookies to understand our websites traffic and offer our website visitors personalized experience. To find out more, click ‘More Information’. In addition, please, read our
Privacy policy.