Reply to How do I NTH Select in SQL????

Your name:

Reply:


Posted by ja on 10/01/21 11:39

Hello,

I have a table that contains approx 2 million records. I want to
query 2,000 random records.

Example: 500,000 names divided by 20,000 samples = 25. The N is 25,
meaning samples would be sent to every 25th name on the list.

this is what I am using to create a random selection

order by substing(f1,4,1) + substing(f2,3,1) + substing(f3,3,1) +
substing(f4,2,1)

This method takes a very long time.

Any suggestions????


TIA


ja

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация