Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 nth number queries or stored procs

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-10-14 : 22:23:42
Greg Bates writes "I have a large database of names and addresses, when I receive a list, I keep track of where it came from in a column, and how many times ive used it in another...in plain english this is the query i would like to run.."Select every Nth row from the 'anderson' list if I havent used the name before AND when ive run out of new names give me every Nth row of names ive used the least amount of times"..basically an Nth Number query...but I have NO idea where to begin."
   

- Advertisement -