I have a database with over 50 Million records. I need to query roughly 2000 specific but unrelated records.
Is there a way to do this without having to type each unique key? i.e. a loop reading them from an external file? I'm no SQL expert so my thinking is from a programming perspective.
Responding to questions below: They are unique records. I'm using Oracle. Right now this is a one time thing, but it could become a regular occurrence.
I had come up with the idea of using vi to edit a text file and do 2000 "select ID from table" is a script. However I wanted something less "brute force".