How to find one ID with many names RRS feed

  • Question

  • Hi 

    Could you please tell me how to find one ID with many names or one name with many IDs?



    Thursday, October 1, 2020 5:25 PM

All replies

  • Hi ZaraJ,
    According to your description, I am not sure what your real needs are.
    For example, what does “ID” and “name” refer to?
    If you mean to query an ID with multiple names from the database, I have a suggestion you can refer to.
    If not, please explain in detail.
    First get all IDs from dataTable, then traverse and query the ID as a condition.
    And then judge whether the query result is multiple .If the result is multiple, output the ID.
    Best Regards,
    Daniel Zhang

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Friday, October 2, 2020 6:12 AM