Hi guys. I will re-write my doubt to be more easy to understand. I have one table named SeqNumbers that have only one collumn of data named PossibleNumbers, that has value from 1 to 10.000. Then I have another Table named Terminals and one of the collumns have the serial numbers of the terminals. What I want is get all the SerialNumbers that not exists in the Terminals table from 1 to 10.000. I've created the SeqNumbers table only to do this... maybe there's another solution without using it... that's fine to me. The query I have is:
SELECT PossibleNumbers from SeqNumbers Where PossibleNumbers NOT IN (SELECT SerialNumbers from Terminals)
Basically I want to list ALL serial numbers of terminals that doesn't exists in the database. This Query works fine I think... but the problem is that I don't want all results in a single collumn.. I want these results displayed in 4 or 5 collumns. For my porpuse I can only use the results from the query like that. I cannot use programmatically methods to do that... :( :(
Hope this is more clear now... Thanks for all the help...