Contents Index About this chapter Selecting columns from a table

ASA Getting Started
  Selecting Data from Database Tables

Selecting a complete table


The simplest SELECT statement retrieves all the data in a single table. This SELECT statement has the following syntax:

SELECT * FROM table-name

where table-name should be replaced with the name of the table you are querying. The asterisk (*) is a short form for a list of all columns.

List all products sold by the company

Notes 
Exercise 

Try querying other tables in the sample database, such as the employee, customer, contact, or sales_order tables.


Contents Index About this chapter Selecting columns from a table