MapInfo Pro Developers User Group

Welcome to the MapInfo Pro Developers community!  We are a group dedicated to the discussion and understanding of MapBasic and .Net MapInfoPro AddIn development. Bring your questions and ideas here. This group includes several members of the Pro development team from around the world.

Please feel free to start a discussion in the discussion tab or join in a conversation.

Product Information  Ideas Portal  MapInfo Community Downloads

Discussions

Members

Resources

Events

 View Only
  • 1.  How to create simple list SQL?

    Posted 04-20-2018 22:18

    Could anyone assist please with the following simple SQL - I'm a learner :-)

    I have the following list of LOC id's that I need to filter down from a table of 1000's. I could sort them then select each one manually to create a selection but it will take for ever. I'm sure SQL is faster?

    Table is called "sl"

    LOC column is "id"

    List is;

    LOC000008651780

    LOC000084794689

    LOC000076297627

    LOC000093647788

    LOC000039555897

    LOC000050352269

    LOC000104959029

    LOC000011620073

    LOC000034024768

    LOC000001693699

    LOC000094652392

     



  • 2.  RE: How to create simple list SQL?

    Employee
    Posted 04-23-2018 21:05
      |   view attached

    Hi Dale,

    If I understand your requirement correctly, you are trying to select specific records from a large table and produce a sub table of these specific records?

    If that is the case, you can use the below sample SQL syntax in MapInfo Pro's Query Select window.

    Country = any("GHANA","MALI","IRAQ")

    ScreenHunter 128

    In the example above, Country is the name of the ID field, and the names of the specific countries to be selected are contained within double quotation marks between brackets.

    Hope this helps!