top of page
Load f_intry_bal_dly_trf table
Requirement
Requirement: Develop an SQL-based logic to display the columns based on the field mappings provided in the attached trf_mapping_inv_bal 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.
- Any aggregation function will handle in respsective CTEs.
- Primary Keys to handle the duplicates are prod_plant_lot_location_key and capture_dt_yyyymmdd
Purgo AI Agentic Code
bottom of page