Table of Contents

Search

  1. Preface
  2. Introduction to Informatica Data Engineering Integration
  3. Mappings
  4. Mapping Optimization
  5. Sources
  6. Targets
  7. Transformations
  8. Python Transformation
  9. Data Preview
  10. Cluster Workflows
  11. Profiles
  12. Monitoring
  13. Hierarchical Data Processing
  14. Hierarchical Data Processing Configuration
  15. Hierarchical Data Processing with Schema Changes
  16. Intelligent Structure Models
  17. Blockchain
  18. Stateful Computing
  19. Appendix A: Connections Reference
  20. Appendix B: Data Type Reference
  21. Appendix C: Function Reference

LEAD

LEAD

The LEAD function returns data from future rows.
LEAD uses the following syntax:
LEAD ( Column name, Offset, Default )
LEAD returns the value at an offset number of rows after the current row. Use the LEAD function to compare values in the current row with values in a following row. Use the following arguments with the LEAD function:
  • Column name. The column name whose value from the subsequent row is to be returned.
  • Offset. The number of rows following the current row from which the data is to be retrieved. For example, an offset of "1" accesses the next immediate row, and an offset of "3" accesses the third row after the current row.
  • Default. The default value to be returned if the offset is outside the scope of the partition. If you do not specify a default, the default is NULL.
For more information about the LEAD function, see the
Informatica Transformation Language Reference
.


Updated September 28, 2020