Solved

How do I query a listing of unique numbers against a column in a SQL database?

Posted on 2011-02-17
2
238 Views
Last Modified: 2012-05-11
How do I query a listing of unique numbers against a column in a SQL database? For instance, I would like to find/return all matching records from comma delimited list (abc123, abc124, abc125, abc126, etc). I really don't want to search for them individually.
0
Comment
Question by:prophyt
2 Comments
 
LVL 23

Accepted Solution

by:
wdosanjos earned 500 total points
Comment Utility
Do you mean something like this?

select * from YourTable where YourColumn in ('abc123', 'abc124', 'abc125', 'abc126')

0
 

Author Comment

by:prophyt
Comment Utility
I know it was easy... thanks.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

I've encountered valid database schemas that do not have a primary key.  For example, I use LogParser from Microsoft to push IIS logs into a SQL database table for processing and analysis.  However, occasionally due to user error or a scheduled task…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now