Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 1.35 KB | None | 0 0
  1. -- mine -1
  2. SELECT * FROM intersections_cr;
  3. --a) attributes, morphology -2
  4. --b) attributes, topography -3
  5. SELECT * FROM MORPH_TO_SN_2_1;
  6. SELECT * FROM ICDO_TOPOLOG;
  7. --2) unmapped attributes combinatiobns by WHO -4
  8. SELECT wc.* FROM WHO_CLEAN wc
  9. left join intersections_cr cr ON
  10. wc.MORPH_CODE = cr.MORPHOLOGY_CODE AND
  11. wc.TOPO_CODE = cr.TOPOGRAPHY_CODE
  12.  
  13. WHERE cr.concept_id IS NULL;
  14.  
  15. --2) unmapped attributes combinatiobns by Seer -5
  16. SELECT wc.* FROM WHO_TOPO_MORPHO wc
  17. left join INTERSECTIONS_CR  cr ON
  18. wc.MORPH_CODE = cr.MORPHOLOGY_CODE AND
  19. wc.TOPO_CODE = cr.TOPOGRAPHY_CODE
  20.  
  21. WHERE cr.concept_id IS NULL;
  22.  
  23. --3) Unmapped disorders, which are not present in WHO -6
  24. SELECT cr.* FROM INTERSECTIONS_CR cr
  25. left join WHO_CLEAN wc ON
  26. wc.MORPH_CODE = cr.MORPHOLOGY_CODE AND
  27. wc.TOPO_CODE = cr.TOPOGRAPHY_CODE
  28. WHERE wc.morph_code IS NULL;
  29. --3) Unmapped disorders, which are not present in Seer -7
  30. SELECT cr.* FROM WHO_TOPO_MORPHO wc
  31. right join INTERSECTIONS_CR cr ON
  32. wc.MORPH_CODE = cr.MORPHOLOGY_CODE AND
  33. wc.TOPO_CODE = cr.TOPOGRAPHY_CODE
  34. WHERE wc.morph_code IS NULL;
  35.  
  36. /*
  37. select cr.* from WHO_CLEAN wc
  38. join INTERSECTIONS_CR  cr on
  39. wc.MORPH_CODE = cr.MORPHOLOGY_CODE and
  40. wc.TOPO_CODE = cr.TOPOGRAPHY_CODE;
  41.  
  42. select cr.* from WHO_TOPO_MORPHO wc
  43. join INTERSECTIONS_CR  cr on
  44. wc.MORPH_CODE = cr.MORPHOLOGY_CODE and
  45. wc.TOPO_CODE = cr.TOPOGRAPHY_CODE;
  46. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement