Re: Relational query with path expressions



On Apr 3, 12:46 pm, Tegiri Nenashi <TegiriNena...@xxxxxxxxx> wrote:
Granted, if you have a choice between join and generalized projection
you can infer the type of binary operator from the type of operand. In
the expression

x.y

if both are relations, you interpret it as join, and if one is a set
of attributes, than its a projection. That is some economy of
notation, although union, difference, and renaming still have to be
explicit?

Yes union, intersection and difference must be explicit. For example,

P[WEIGHT > 16].P# union SP[S# = 'S2'].P#

to retrieve the part numbers for parts that either weigh more than 16
pounds or are supplied by supplier S2 or both.

Of course quite often these set theoretic operators can be mapped to
boolean operators inside a restriction. E.g.,

P[WEIGHT > 16 or 'S2' in SP.S.S#].P#

I think equivalence of these depends on a FK constraint from SP.P# to
P.P#.

I was thinking rename could be made more convenient by embellishing
the syntactic sugar that the asterisk already provides. Normally the
asterisk expands into all the attribute names from the input relation.

For example,

P( *(-COLOR, WEIGHT as W), SP.S.SNAME )

is equivalent to

P( P#, PNAME, WEIGHT as W, CITY, SP.S.SNAME )


.



Relevant Pages

  • RE: what to use
    ... E contains the name of supplier, this supplier have sent xx shipments to us ... The first supplier in E2 is Mini press, and in K the weight is 80 then I ... where the result from the transporters report will get ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Best Practice for tables?
    ... use the ID or Primary Key value.The tblRoutingSystem should ... Now if the Supplier decides to sell the company or change its name, ... Now, as dispatch of items are dependent on the weight, I have another ... 'DispatchMethod' which refers to 'tblDispatchMethod' ...
    (microsoft.public.access.gettingstarted)
  • Re: Gravitys Equivalence
    ... >> Weight in gravity is equivalent to accelerated mass. ... >> Einstein was wrong to include a time variable in his equivalence principle. ... >> acceleration equivalence or a limited strength gravity. ...
    (sci.physics.relativity)
  • Re: Update Query based on a value between two fields
    ... UPDATE TableA INNER JOIN TableB ... with TableA supplier and weight and table b supplier. ...
    (microsoft.public.access.queries)
  • Re: Gravitys Equivalence
    ... >> Weight in gravity is equivalent to accelerated mass. ... >> Einstein was wrong to include a time variable in his equivalence principle. ... >> acceleration equivalence or a limited strength gravity. ...
    (sci.physics)