Visual Database Tools
Expressions in Queries
You can use an
Examples of the use of expressions in a query include:
- In a
products
table, displaying a discounted price that is calculated by taking 10% off the retail price. - Displaying only the first three digits — the area code — of a phone number.
- Displaying employee names in the format last_name, first_name.
- Joining two tables, an
orders
table and aproducts
table, then sorting the query on the total price (order quantity times product price). - In an
orders
table, copying and then deleting all orders that were shipped more than one year ago.
For more information about creating and using expressions, refer to the topics listed in the following table.
For information about | See |
---|---|
Creating expressions | Creating an Expression |
Entering expressions into a query | Using Expressions in a Query |
Creating summaries of data | Summarizing and Grouping |
Using operators in expressions | Operators for Expressions |
Using functions in expressions | Functions for Expressions |
Using predefined variables in expressions | Predefined Variables for Expressions |