Frank Schönheit - Sun Microsystems Germany wrote:
Ok, I think I am just doing a decidely poor job of explaining myself.Hi Andrew, What I am trying to point to is this. If a query is just a container for a select statment, then the parser could use that named container in its peresentation to the user. At runtime however, prior to issuing the statement to the engine the container would be expanded to the select statement it holds. So, using my example from before I create a query named qryAddresses. It contains the statment SELECT * FROM "tblAddresses". If then create a second query that used qryAddresses it would be presented to the user as SELECT
"tblNames".*,
"qryAddresses".*
FROM
"qryAddresses" "qryAddresses",
"tblNames" "tblNames"
WHERE ( "qryAddresses"."NameID" = "tblNames"."ID" )
But at runtime it must be exanded to
SELECT
"tblNames".*,
"qryAddresses".*
FROM
( SELECT * FROM "tblAddresses" ) "qryAddresses",
"tblNames" "tblNames"
WHERE ( "qryAddresses"."NameID" = "tblNames"."ID" )
and then passed to the engine. The basic idea is the same as what is done with parameter replacement now.
The user is still free to go back to the defintion of qryAddresses and alter it - use it alone, add it to another query, whatever.
I really should have said - It seems obvous to me that supporting sub-selects in the parser is the first step in being able to support queries in queries.
|
- Re: [dba-users] ... Andrew Jensen
- [dba-users] ... Frank Schönheit - Sun Microsystems Germa ny
- Re: [dba-users] FYI:... Regina Henschel
- [dba-users] Quer... Frank Schönheit - Sun Microsystems Ger many
- Re: [dba-use... Frank Schönheit - Sun Microsystems Germa ny
- Re: [dba-use... Regina Henschel
- Re: [dba-users] FYI: [specs-a... Andrew Jensen
- [dba-users] Queries in Q... Frank Schönheit - Sun Microsystems Germa ny
- Re: [dba-users] Quer... Ross Johnson
- Re: [dba-users] ... Frank Schönheit - Sun Microsystems Germa ny
- Re: [dba-users] Quer... Andrew Jensen
- Re: [dba-users] ... Frank Schönheit - Sun Microsystems Germa ny
- Re: [dba-use... Andrew Jensen
- Re: [db... Frank Schönheit - Sun Microsystems Germa ny
