Re: [MI-L] SQL Queries

2006-01-17 Thread Ian Robertson
Andrew, There's 2 options both requiring the addition of a new column (as float) to your table that is then updated. Version 1 is to update the new column with the rowid number thus: Update Mytable Set Mycol = rowid and then Select * from Mytable where Mycol mod N into ran

RE: [MI-L] SQL Queries

2006-01-17 Thread Peter Horsbøll Møller
f 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) Thank

Re: [MI-L] SQL Queries

2006-01-17 Thread Info at Spatial Decisions
Hi Andrew You've probably had a number of replies already but here goes To select every "n"th record from a table using SQL, type rowid mod(n)=0 ... into the "Where Condition" area of the dialog. Hope this makes sense and is of some assistance. Regards Tony Maber - Certified Map

Ang. [MI-L] SQL Queries

2006-01-17 Thread Mats Elfström
FB Engineering AB Södra Förstadsgatan 26 211 43 Malmö Tel: 040-660 25 50 Mobil: 0705-27 60 27 Fax: 040-660 25 99 [EMAIL PROTECTED] www.fbe.se "Andrew Tracey" <[EMAIL PROTECTED]> Sänt av: [EMAIL PROTECTED] 2006-01-17 09:15 Till Kopia Ärende [MI-L] SQL Queries I curren

RE: [MI-L] SQL Queries

2006-01-17 Thread Terry McDonnell
lnRandNum = lnRandNum + 100 Loop HTH Terry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Tracey Sent: 17 January 2006 09:05 To: Terry McDonnell Subject: [MI-L] SQL Queries I currently have a table with 79000 points in it. Does anyone have a query o

[MI-L] SQL Queries

2006-01-17 Thread Andrew Tracey
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 Wes

RE: MI-L SQL queries

2005-02-01 Thread Fletcher James
u need. Fletcher James President Levit & James, Inc. 703-771-1549 [EMAIL PROTECTED] www.levitjames.com -Original Message- From: Carlo Fazio [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 01, 2005 6:44 PM To: mapinfo-l@lists.directionsmag.com Subject: MI-L SQL queries When using th

MI-L SQL queries

2005-02-01 Thread Carlo Fazio
When using the asterisk (*) symbol to select all records in an SQL query, is it possible to select all columns from one table rather than both tables? I know I can select columns individually but there are too many for selecting individually. The dialogue box won't let me select all of them. C

Re: MI-L SQL Queries

2004-01-14 Thread Norman Mabunda
Hi Richard Easy. I am new as well to MapInfo, but I am getting there. This is what you do: click Query>SQL Select, then on the dialog box Select Colums: * >From Tables: Table Name you want to select from Where Condition: Company Name like "Richard%" Group by olumns: Order by Columns: into t

RE: MI-L SQL Queries

2004-01-14 Thread Peter Horsbøll Møller
al Information & IT moved from Rugaardsvej 55, 5000 Odense C to Odensevej 95, 5260 Odense S. Please note our new telephone, direct and telefax numbers. > -Original Message- > From: Richard Hill [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 14, 2004 7:07 AM > To:

MI-L SQL Queries

2004-01-13 Thread Richard Hill
Hello Folks, This is a straight forward request, but I am not yet familiar with SQL. I have a Mapinfo table from which I want to select all records in which a specific name appears in the "Company Name" column. However (and this is the limit of my understanding of SQL) the name could be (for exam

RE: MI-L SQL Queries

2002-12-27 Thread Fonseca, Milton
Geological Survey California Department of Conservation Phone: (916) 323-8192 [EMAIL PROTECTED] -Original Message- From: Clifton Stephens [mailto:[EMAIL PROTECTED]] Sent: Friday, December 27, 2002 6:39 AM To: MIL Subject: MI-L SQL Queries I'm having a bit of trouble writing queri

MI-L SQL Queries

2002-12-27 Thread Clifton Stephens
I'm having a bit of trouble writing queries in MI. Perhaps I'm trying to get it to give me too much. Does anyone out there have a library of sample queries they would be willing to share? I need a little help with what I can and can't ask in different situations and probably a lot of help with my s

MI-L SQL Queries

2001-01-31 Thread Bob Hudson
Are there electronic or paper publications that contain what I guess you could call generic SQL queries, with an explanation of what problem each query aims at resolving? I'm particularly interested in predictive modelling in archaeology, but am not sufficiently mathematically literate to constru