This is a unary operation that reduces the attributes of a relation down to a subset of those attributes. This operation requires:
This is often used to select specific attributes we are most interested in; to narrow down the table. It is also useful to avoid naming conflicts between relations that you would like to join.
name | address |
---|---|
Down Under Pub | 802 W. Main Street |
The Edge | 108 Morris Street |
James Joyce Pub | 912 W. Main Street |
Satisfaction | 905 W. Main Street |
Talk of the Town | 108 E. Main Street |
name |
---|
Down Under Pub |
The Edge |
James Joyce Pub |
Satisfaction |
Talk of the Town |