Table of Contents

Search

  1. Preface
  2. Introduction to Test Data Management
  3. Test Data Manager
  4. Projects
  5. Policies
  6. Data Discovery
  7. Creating a Data Subset
  8. Performing a Data Masking Operation
  9. Data Masking Techniques and Parameters
  10. Data Generation
  11. Data Generation Techniques and Parameters
  12. Working with Test Data Warehouse
  13. Analyzing Test Data with Data Coverage
  14. Plans and Workflows
  15. Monitor
  16. Reports
  17. ilmcmd
  18. tdwcmd
  19. tdwquery
  20. Appendix A: Data Type Reference
  21. Appendix B: Data Type Reference for Test Data Warehouse
  22. Appendix C: Data Type Reference for Hadoop
  23. Appendix D: 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