<div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">Hi guys,</div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "> please could someone help me look at this SQL code, I cant figure out what is wrong with it and it gives me this error,</div>
<div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><br></div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">"ERROR: missing FROM-clause entry for table "i"</div>
<div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">LINE 3: Select I.temp_lst_id,I.temp_value as I_t, R.tv.val as R_t, (..."</div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
^ </div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">Here is the code;</div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
<br></div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><div>Select I.temp_value as I_t, R.tv.val as R_t, (I_t - R_t) as D_t</div><div>From ( Select ST_intersection(R.rast,I.the_geom) AS tv</div>
<div>From in_situ_lst I, lst_day R</div><div>Where I.the_geom && R.rast</div><div>AND ST_intersects(R.rast,I.the_geom)</div><div>And I.temp_lst_id = 2</div><div>)foo;</div><div><br></div>I was just trying to get the difference between a temperature value in a vector temperature table, in_situ_lst and a raster temperature table, lst_day.</div>
<div> </div><div>Regards</div>-- <br><font face="Calibri, sans-serif" size="2"><div style="color:rgb(0, 0, 0)"><font face="Arial, sans-serif" size="2">Iyke Maduako<br><br></font><font style="color:rgb(0, 0, 0)" face="Calibri, sans-serif" size="2"><font face="Arial, sans-serif">Masters in Geospatial Technologies</font></font><br>
</div><span style="color:rgb(0, 0, 0)">
</span><div style="color:rgb(0, 0, 0)"><font face="Arial, sans-serif" size="2">Institute for Geoinformatics,</font><font face="Calibri, sans-serif" size="2"><font face="Arial, sans-serif" size="2">IfGI <br></font></font></div>
<span style="color:rgb(0, 0, 0)">
</span><div style="color:rgb(0, 0, 0)"><font face="Arial, sans-serif" size="2">University of Muenster Germany<br></font></div><span style="color:rgb(0, 0, 0)">
</span><div style="color:rgb(0, 0, 0)"><font face="Arial, sans-serif" size="2">Phone: +4915129048460<br></font></div><font face="Arial, sans-serif"><span style="color:rgb(0, 0, 0)">Alternative <a style="color:rgb(0, 0, 0)" href="mailto:Email%3Aiykefirstclass@yahoo.com" target="_blank">Email:iykefirstclass@yahoo.com</a></span><br style="color:rgb(0, 0, 0)">
</font><div style="color:rgb(0, 0, 0)"><font face="Arial, sans-serif" size="2"> </font></div></font><br>