Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Supplying Table Aliases

Earlier, in the section “Performing SELECT statements that Use Two Tables,” you saw that one way to qualify columns in queries that involve columns of the same name in different tables is to include the entire table name. The example in the earlier section used the following query:

SELECT products.name, product_types.name
FROM products, product_types
WHERE products.product_type_id = product_types.product_type_id;


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial