Skip to content

All-Access: every lesson, no ads. $8.25€8.25US$8.25$4.08US$4.08$2.41US$2.41₹224.91MX$74.91 a month, billed yearly. Free to start. Cancel any time

See plans
All-Access, no ads: every lesson, course and template. $8.25€8.25US$8.25$4.08US$4.08$2.41US$2.41₹224.91MX$74.91 a month. + GST at checkoutSee the plans →

An <i>alias</i> is when you use AS to change the name of a column in the results. Note that you are not changing the actual table in the database, just the way it appears to you in the results.<br><br>Select product_name and unit_price, but rename them so they are more user-friendly. Try:

Table products

idproduct_namecategoryunit_price
1T-ShirtClothing20
2JeansClothing55
3SneakersFootwear80
4HatAccessories25
5JacketClothing120

AS (Aliases) & Column Arithmetic - SQL Practice Online

Practise AS (Aliases) & Column Arithmetic with 10 interactive SQL exercises. You type real queries into your browser and get instant feedback on every answer - no database setup and no install. It is a fast, hands-on way to learn SQL online and build query skills you can use at work.