SELECT Statements
A query is an operation that retrieves data from a table or view.
SELECT is the only SQL statement that you can use to query data. The set of data retrieved from execution of a SELECT statement is known as a result set.
checkpoint certification malaysia
The following table shows two required keywords and two keywords that are commonly found in a SELECT statement. The table also associates capabilities of a SELECT statement with the keywords.
Table 7-1 Keywords in a SQL Statement
virtualization training courses malaysia
| Keyword | Required? | Description | Capability |
|---|---|---|---|
| Yes | Specifies which columns should be shown in the result. Projection produces a subset of the columns in the table. An expression is a combination of one or more values, operators, and SQL functions that resolves to a value. The list of expressions that appears after the | Projection |
| Yes | Specifies the tables or views from which the data should be retrieved. | Joining |
| No | Specifies a condition to filter rows, producing a subset of the rows in the table. A condition specifies a combination of one or more expressions and logical (Boolean) operators and returns a value of | Selection |
| No | Specifies the order in which the rows should be shown. |
Comments
Post a Comment