BaseNow

 

  Search
   

  Help

Screen shots

Compare editions

Online help

Quick-start videos

System requirements

License agreement

Known issues

  Support

 Forums

Technical support

Feedback

 About the author

 Company

Contact

Privacy policy

  Features

BaseNow architecture

Database tools

BaseNow Agent

Tables and views

SQL Query Builder

Import/export data

  Subscribe

Stay informed about any major changes. Click here to subscribe

 

Create a calculate column in a view

In addition to using aggregate functions to aggregate data, you can create custom expressions to produce aggregate values. You can use custom expressions in place of aggregate functions anywhere in an aggregate query.

For example, in the Books table you might want to create a query that shows not just the average price, but what the average price would be if the books were discounted.

To specify a custom expression for a summary value

1. Specify the groups for your query. For details, see Group Rows in query results.

2. Move to a blank row of the Grid Pane, and then type the expression in the Columns column. The program automatically assigns a column alias to the expression to create a useful column heading in query output. For more details, see Customize the column names.

3. In the Group By column for the expression, select Expression.

You can create a new field that displays the results of a calculation you define with an expression or that manipulates field values.


Related Topics:

About calculations in a view

About aggregate functions

Specifying conditions for groups

Group Rows in query results

About SQL Query Builder

SQL Query Builder Layout

[Home] [Download] [Screen Shots] [Details] [Support] [Purchase]

Copyright © 1997-2005 Gate Comm Software. All Rights Reserved.

 

 

News
7/13/2004
COMDLG32.OCX error at startup
6/29/2004
Opening FoxPro and dBase databases
1/11/2024
Version 1.1.7 Relased (1/11/2024)
11/18/2002
Version 1.1.0 Relased (11/16/2002)
10/20/2002
HotFix 1 for Windows XP SP1

Forums
6/4/2024
Video Downloader Script
6/3/2024
Article Directory Script
8/10/2024
removing duplicate records
8/8/2024
data validation and BaseNow
1/24/2007
Outlook 2003
1/12/2024
BASENOW AND FOXPRO DATE FORMATS
11/6/2024
Need help in Sybase Anywhere database
10/19/2006
need help! mysql query