O'Reilly logo

OCA Oracle Database 11g: SQL Fundamentals I: A Real-World Certification Guide by Steve Ries

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using aliases to format output of SELECT statements

While we have demonstrated that we can retrieve data from our Companylink database, we have not, thus far, been able to alter the way the data is presented. As we move through the book, we will discover more ways to customize our output, but one way we can do this now is through the use of an alias. An alias is an alternate name given to a column that alters the way it is displayed. To demonstrate this, let's examine another one of our Companylink tables: the award table. The following example shows a query from the award table that selects its two columns but uses no alias:

Using aliases to format output of SELECT statements

For the first time, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required