Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3616534
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T22:30:39+00:00 2026-05-18T22:30:39+00:00

anyone can help me implement this Given that i have a txt file and

  • 0

anyone can help me implement this

Given that i have a txt file and have successfully parsed them into an array.
Column Headers are ID, Names, Gender.
I want to check whether the Names are already in the table.

Say i have 5 rows of Data

0 | Rod | M  
1 | Dex | M  
2 | Fay | F  
4 | Dan | M  
5 | Lis | F

currently im looping into the array and using SELECT to check if the item Names already exists

is there a way were i can pass All 5 Names in a query and it will return records
a. those found the Table
b. Not found in the table

thanks for responding to my Question. The IN Operator will cut my queries to just one trip to the server, then will just loop through the results.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T22:30:39+00:00Added an answer on May 18, 2026 at 10:30 pm

    Not possible for b, possible for a

    select * from your_table
    where your_column in('Rod','Dex','Fay','Den','Lis');
    _______________________________________^ assume Den is not match with Dan
    

    The above queries should return 4 matches (with Den not matched with Dan).
    You can compare against your array again.
    Those without matching record (Den) will be the NOT found record

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Wondering if anyone can help me with this annoying but trivial (in terms of
Can anyone suggest some good browser add-on tools/extensions to help with development? I have
I was wondering if anyone can help me get started with creating a room
Can anyone help me with the trying to write SQL (MS SqlServer) - I
I just forgot the password. Can anyone help me how to get back the
Can anyone (maybe an XSL-fan?) help me find any advantages with handling presentation of
Can anyone recommend a good resource -- book, website, article, etc -- to help
Are there some help resources, or can anyone give me a brief Idea how
I'm slightly worried that this may be a duplicate, but I have searched the
I have an ASP.NET 4.0 application that implements URL routing. This gives me page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.