Hi,

This will select every 100th record:
Select * From MYTABLE
 Where ROWID Mod 100 = 0

This will select every 1000th record:
Select * From MYTABLE
 Where ROWID Mod 1000 = 0

You can also change the 0 to any value between 0 and 100 or 1000.

Peter Horsbøll Møller
GIS Developer, MTM
Geographical Information & IT
 
COWI A/S
Odensevej 95
DK-5260 Odense S.
Denmark
 
Tel     +45 6311 4900
Direct  +45 6311 4908
Mob     +45 5156 1045
Fax     +45 6311 4949
E-mail  [EMAIL PROTECTED]
http://www.cowi.dk/gis

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Tracey
Sent: Tuesday, January 17, 2006 9:16 AM
To: MapInfo-L@lists.directionsmag.com
Subject: [MI-L] SQL Queries

I currently have a table with 79000 points in it. Does anyone have a query or 
know how to pick out a random sample of the data (say every 100 or every 1000 
records)

Thanks in advance

Andrew Tracey
Information Support Officer
Corporate Information
Corporate Development
South Tyneside Council
Westoe Road
South Shields
NE33 2RL

Tel: 0191 4247561
E-Mail : [EMAIL PROTECTED]

************************************************************************************************
************************************************************************************************
Please do not print this e-mail if you can help it - and help protect the 
environment.
************************************************************************************************
This Message may contain confidential information and is protected by copyright.
If you receive it in error please notify us and delete it without making use of 
or copying it.
The addressee and other employees within the Council may read and copy any 
e-mail reply to this message and other e-mails you send to us.
Whilst we use virus checking procedures we accept no liability for viruses and 
recipients must rely on their own virus checking procedures.
************************************************************************************************
The Council's web site address is www.southtyneside.info

_______________________________________________
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l



_______________________________________________
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to