Advertisement
EddyCZ

Untitled

Nov 16th, 2023
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. SELECT distinct
  2. line.contract,
  3. line.part_no,
  4. line.eng_chg_level,
  5. -- RoSeCz 832971 - Begin
  6. line.alternative_no,
  7. -- RoSeCz 832971 - End
  8. Shop_Ord_Code_API.Decode(line.bom_type) bom_type_client,
  9. line.bom_type bom_type_db,
  10. line.eff_phase_in_date,
  11. line.eff_phase_out_date,
  12. line.rowtype
  13. FROM MANUF_STRUCTURE_TAB line, MANUF_STRUCT_ALTERNATE_TAB alt
  14. WHERE alt.rowstate ='Buildable'
  15. AND alt.alternative_no = line.alternative_no
  16. AND alt.bom_type = line.bom_type
  17. AND alt.eng_chg_level = line.eng_chg_level
  18. AND alt.contract = line.contract
  19. AND alt.part_no = line.part_no
  20. --AND NVL(line.eff_phase_out_date, TO_DATE('31.12.99','DD.MM.YY')) > TO_DATE('16.11.23', 'DD.MM.YY')
  21. -- RoSeCz 832971 - Begin
  22. -- AND line.part_no = NVL(part_no_, line.part_no)
  23. AND line.part_no >=
  24. (select min (t.part_no) from MANUF_STRUCTURE_TAB t where t.part_no like NVL('A2903584', line.part_no))
  25. AND line.part_no <=
  26. (select max (t.part_no) from MANUF_STRUCTURE_TAB t where t.part_no like NVL('A2903584', line.part_no))
  27. -- RoSeCz 832971 - End
  28. AND line.contract = 'ZPA'
  29. -- RoSeCz 832971 - Begin
  30. -- AND line.component_part = part_out_
  31. AND line.component_part = nvl (NULL,line.component_part)
  32. -- RoSeCz 832971 - End
  33. ORDER BY line.contract, line.part_no, to_number(line.eng_chg_level), bom_type_client;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement