top of page
Prepare query to load purchase order table
Requirement
Requirement: Develop an SQL-based logic to display columns based on the field mappings provided in the attached tfs_mapping_purchase_order_abas XLS file.
_The excel file mainly includes:_
- Data_map – This file contains the source-to-target mapping for the target fields.
- Source_tables - this sheet contains the name of source tables, filter conditions and the special notes.
- Joins – This tab defines the joining conditions and type of joins between source tables.
Note
- Use CTEs instead of temp views or subqueries in the main SQL only if needed
- Any aggregation function should be handle in respsective CTEs.
Source tables are available in agilisium_playground.purgo_playground catalog
Purgo AI Agentic Code
bottom of page