MapInfo Pro

 View Only
  • 1.  Duplicate records in SQL Select

    Posted 06-28-2018 02:55

    Hi Everyone. I'm doing some simple SQL select based on spatial object intersections in 2 tables that have 302 and 315 records respectively. The resulting selection has 920 records containing duplicates. Would anyone know why this is happening? Regards, Angelene



  • 2.  RE: Duplicate records in SQL Select

    Posted 06-27-2018 23:12
      |   view attached

    I should add that the spatial objects are sewer main polyline objects?

    Attachment(s)

    zip
    INTEGRAN Trunk sewer.zip   23 KB 1 version


  • 3.  RE: Duplicate records in SQL Select

    Posted 06-27-2018 23:13
      |   view attached

    ?second attachment

    Attachment(s)

    zip
    ALL TRUNK SEWER.zip   25 KB 1 version


  • 4.  RE: Duplicate records in SQL Select

    Posted 06-28-2018 00:26

    I think I've found the problem? Even though the joins between sewer mains look to be clean I think some are ever so slightly overshot and therefore selecting adjacent sewer mains also. When I select a single sewer main in (mapview) in one of the join tables, the resulting selection table selects that sewer main and the adjacent sewer main. Similarly where there is a main adjoined at opposite ends by another main, if I select the main in the middle, its selects the 2 adjoining mains also.

    So I tried the SQL Select again using "Contains Entire" instead of "Intersect" and the resulting table did not return duplicates.

    Having said that, no matter how far I zoom in on the joins I cannot see any evidence of being overshot?



  • 5.  RE: Duplicate records in SQL Select

    Posted 06-28-2018 01:14

    ?If anyone could shed some more light on this I'd be very appreciative!