Re: Interpolation Query...

From: DIOS (sindizzy_at_softhome.net)
Date: 02/05/04


Date: 5 Feb 2004 14:32:48 -0800

Well Im running some tests that are limited to certain sites and I am
getting multiple records back. If I do not specicfy the site i get
even more records back. I follow your interpolation math but the SQL
query is a little bit over my head and im trying to grasp what its
doing. The 4 auxiliaries are providing the max and mins for my two
variables and then my main query will do the interpolation correct?
Why then do i get multiple records back. They look to be repeated as
well.

AGP

"Michel Walsh" <vanderghast@VirusAreFunnierThanSpam> wrote in message news:<egwF00B7DHA.3420@TK2MSFTNGP11.phx.gbl>...
> Hi,
>
> I am glad it worked.
>
> Indeed, with ... FROM ( SELECT ... ), this is a known bug... you have to
> edit the SQL statement in the SQL view only. If you edit it from the design
> view, you are ... done. And that applies only for Jet (the design interface
> with MS SQL Server does not have that bug).
>
>
> Vanderghast, Access MVP
>
> "DIOS" <sindizzy@softhome.net> wrote in message
> news:7d00f3c.0402051015.4d158d5a@posting.google.com...
> > The message is "The Microsoft Jet database engine cannot find the
> > input table or query 'SELECT x, y, u FROM xyData WHERE x IN( SELECT *
> > FROM Qxmin ) AND y IN ( SELECT * FROM Qymin)'".
> >
> > The SQl take out of the designer is as fllows:
> > SELECT
> 0.25*((1-[xi])*(1-[eta])*a.u+(1+[xi])*(1-[eta])*b.u+(1+[xi])*(1+[eta])*c.u+(
> 1-[xi])*(1+[eta])*d.u)
> > AS uw, 2*([xw]-a.x)/(b.x-a.x)-1 AS xi, 2*([yw]-a.y)/(d.y-a.y)-1 AS eta
> > FROM (SELECT x, y, u FROM xyData WHERE x IN( SELECT * FROM Qxmin )
> > AND y IN ( SELECT * FROM Qymin) ) AS a, (SELECT x, y, u FROM xyData
> > WHERE x IN( SELECT * FROM Qxmax ) AND y IN ( SELECT * FROM Qymin) )
> > AS b, (SELECT x, y, u FROM xyData WHERE x IN( SELECT * FROM Qxmax )
> > AND y IN ( SELECT * FROM Qymax) ) AS c, (SELECT x, y, u FROM xyData
> > WHERE x IN( SELECT * FROM Qxmin ) AND y IN ( SELECT * FROM Qymax) )
> > AS d;
> >
> > I changed all the square brackets to parenthesis and it worked!!! yet
> > when I reopen the qury in the designer the brackets are back. So
> > everytime i edit the query i have to make sure the brackets are
> > replaced with parenthesis. Weird. let me test some more since im going
> > to be actually calling the queries through code rather than through
> > the query designer.
> >
> > AGP
> >
> >



Relevant Pages

  • Re: Reference control in subform
    ... I'm starting to think the SQL query may be the better option! ... You will notice that I also removed the brackets from within the rson ... The SQL for the subform is: ...
    (microsoft.public.access.forms)
  • Re: can this be done with a subquery?
    ... Your SQL is fine but it's approximately my first query. ... MaxAs LatestDate ... *further brackets* within a subquery ...
    (microsoft.public.access.queries)
  • Re: Jet SQL and Virtual tables/subqueries qiestions
    ... Perahps we've begin to uncover some bugs in the Access query ... If you PASTE SQL test in the following format into the SQL window ... unnecessarily bracketed field inside the virtual table brackets ... around a field or table name within the VirtTbl1 subquery, ...
    (microsoft.public.access.queries)
  • Re: Interpolation Query...
    ... I follow your interpolation math but the SQL ... > query is a little bit over my head and im trying to grasp what its ... > Why then do i get multiple records back. ... >> edit the SQL statement in the SQL view only. ...
    (microsoft.public.access.queries)
  • Re: can this be done with a subquery?
    ... Your SQL is fine but it's approximately my first query. ... MaxAs LatestDate ... *further brackets* within a subquery ...
    (microsoft.public.access.queries)