Skip to content

Instantly share code, notes, and snippets.

@sqlparser
Created April 8, 2014 08:01
Show Gist options
  • Save sqlparser/10100723 to your computer and use it in GitHub Desktop.
Save sqlparser/10100723 to your computer and use it in GitHub Desktop.
select column alias
SELECT DISTINCT
p.name AS product,
p.listprice AS 'List Price',
p.discount AS 'discount'
FROM production.product p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment