Table of Contents

Search

  1. Preface
  2. Introduction to Test Data Management
  3. Test Data Manager
  4. Projects
  5. Policies
  6. Data Discovery
  7. Data Subset
  8. Data Masking
  9. Data Masking Techniques and Parameters
  10. Data Generation
  11. Data Generation Techniques and Parameters
  12. Working with Test Data Warehouse
  13. Plans and Workflows
  14. Monitor
  15. Reports
  16. ilmcmd
  17. tdwcmd
  18. tdwquery
  19. Data Type Reference
  20. Data Type Reference for Test Data Warehouse
  21. Glossary

Aggregate Functions

Aggregate Functions

You can use aggregate functions when you run a query with the Select and Select Distinct clauses.
You can use the following types of aggregate functions in a query:
AVG
Use the following syntax:
SELECT AVG(<column_name>) FROM <table_name>
For example:
SELECT AVG(SAL) FROM TDWEMP
COUNT
Use the following syntax:
SELECT COUNT(<column_name>) FROM <table_name>
For example:
SELECT COUNT(*) FROM TDWEMP
MAX
Use the following syntax:
SELECT MAX(<column_name>) FROM <table_name>
For example:
SELECT MAX(SAL) FROM TDWEMP
MIN
Use the following syntax:
SELECT MIN(<column_name>) FROM <table_name>
For example:
SELECT MIN(SAL) FROM TDWEMP
SUM
Use the following syntax:
SELECT SUM(<column_name> FROM <table_name>
For example:
SELECT SUM(SAL) FROM TDWEMP