Title: RE: [MI-L] Expert Mode SQL on Spatialware table

What if you use this statement:

Select *
From "databasename"."dbo"."spatialwaretable"
where (("Nr1"='200') or ("Nr2"='200')) and ("M1"<>"M2")

Pay attention to the extra () around the two first expressions and that I have removed the )( around <>

When combining AND and OR in a statement, I always recommend grouping the expressions with () otherwise you might not get the result you expect

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 Possberg, Hendrik

Sent: Tuesday, May 23, 2006 12:29 PM
To: Mapinfo-List (E-Mail)
Subject: [MI-L] Expert Mode SQL on Spatialware table

Dear List,

I am trying to download Data from a spatialware table via Expert Mode.

When using Mapinfo i can use this statement:
Select * from Spatialwaretable where NR1="200" or NR2="200"  and M1<>M2 into Table2


But what is the right code in Expert mode worjking with a spatialware table?
Using:

Select *
>From "databasename"."dbo"."spatialwaretable" where ("Nr1"='200') or
>("Nr2"='200') and ("M1")<>("M2")

gave the same result as:
Select *
>From "databasename"."dbo"."spatialwaretable" where ("Nr1"='200') or
>("Nr2"='200')


How can I achieve the reduction of objects with the attrib M1<>M2

Any help would be appreciated.



Mit freundlichen Grüßen

Hendrik Poßberg
Manager Geodaten
 
Tel. +49 (0)2131 109-751
Fax +49 (0)2131 109-777
mailto:[EMAIL PROTECTED]
 
microm
Micromarketing-Systeme
und Consult GmbH
Hellersbergstraße 14
41460 Neuss
www.microm-online.de

Abonnieren Sie kostenlos das aktuelle microMagazin. In jedem Quartal erhalten Sie aktuelle Informationen über die neuesten Entwicklungen bei microm, unseren Partnern und Kunden. Einfach online bestellen unter www.microm-online.de!

_________________________________
Diese Nachricht wurde elektronisch versandt und ist daher auch ohne Unterschrift rechtsgültig. Der Inhalt dieser E-Mail enthält vertrauliche Informationen. Das Kopieren und die Weitergabe an Dritte ist nicht gestattet. Sollten Sie diese E-Mail irrtümlich von uns erhalten haben, bitten wir Sie, diese zu vernichten und uns darüber zu informieren. Im Voraus vielen Dank.

_________________________________
 
 


_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l



_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to