<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal>I am using &nbsp;OGR in my map file and have a CONNECTION
and DATA lines.&nbsp; I have a SQL statement in the DATA.&nbsp; It works when I
use it on the ACCESS database that is the Personal GeoDatabase in ESRI but when
I put it into the map file I get an error message.&nbsp; It should bring back
33 records and the message says that the search brought back no results.&nbsp; I&#8217;m
using a left join, which is in the example for OGR and geodatabases but the
only join I can make work is an inner join and that doesn&#8217;t bring back
the correct results like the left join does.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>This is the sql that atleast brings back some results, all
be it not the results I am expecting:<o:p></o:p></p>

<p class=MsoNormal>SELECT *<o:p></o:p></p>

<p class=MsoNormal>FROM CEMSHEET_2 INNER JOIN milbank_cemetary_UTM ON
CEMSHEET_2.LOT=milbank_cemetary_UTM.lot<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>And this one brings back the expected results in access but
gives me the no results returned in GeoMoose when I run a search.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>SELECT CEMSHEET_2.NAME, CEMSHEET_2.LOT, CEMSHEET_2.AGE<o:p></o:p></p>

<p class=MsoNormal>FROM CEMSHEET_2 LEFT JOIN milbank_cemetary_UTM ON
CEMSHEET_2.LOT = milbank_cemetary_UTM.lot<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>From what I have read in the documentation on mapserver,
that the left join is the only join that is suppost to work but I get results
when I use inner join.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Hope this makes sense.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>thansk<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Jim
Hagedorn<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>GIS
Specialist<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><img
width=403 height=34 id="Picture_x0020_1"
src="cid:image001.gif@01C96A91.137D49F0" alt="Banner Logo"><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:3.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;
font-family:"Arial","sans-serif";color:navy'>Banner Associates, Inc.</span><span
style='font-size:8.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:2.0pt;text-autospace:none'><span
style='font-size:8.0pt;font-family:"Arial","sans-serif";color:navy'>409 22nd
Avenue South</span><span style='font-size:8.0pt'> &middot; </span><span
style='font-size:8.0pt;font-family:"Arial","sans-serif";color:navy'>PO Box 298</span><span
style='font-size:8.0pt'> &middot; </span><span style='font-size:8.0pt;
font-family:"Arial","sans-serif";color:navy'>Brookings, South Dakota 57006</span><span
style='font-size:8.0pt'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:2.0pt;text-autospace:none'><span
style='font-size:8.0pt;font-family:"Arial","sans-serif";color:navy'>(605)
692-6342</span><span style='font-size:8.0pt'> &nbsp;&middot; <span
style='color:navy'>&nbsp;</span></span><span style='font-size:8.0pt;font-family:
"Arial","sans-serif";color:navy'>Fax</span><span style='font-size:8.0pt;
font-family:"Arial","sans-serif"'> <span style='color:navy'>(605) 692-5714 </span></span><span
style='font-size:8.0pt'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-top:2.0pt'><span style='font-size:8.0pt;
font-family:"Arial","sans-serif"'><a href="http://www.bannerassociates.com/"><span
style='color:blue'>www.bannerassociates.com</span></a><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>