top of page
Load PO table
Requirement
Requirement: Develop an SQL-based logic to display all the columns based on the field mappings provided in the attached trf_mapping_purchase_order 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.
Acceptance Criteria:
- Use CTEs instead of temp views or subqueries in the main SQL if needed.
- Any aggregation function will handle in respsective CTEs.
- Primary Keys to handle the duplicates are po_delivery_key
Raw tables are available in purgo_playground catalog
Purgo AI Agentic Code
bottom of page