×

Enumerating projections in SQL queries containing outer and full outer joins in the presence of inner joins

  • US 5,855,019 A
  • Filed: 07/31/1997
  • Issued: 12/29/1998
  • Est. Priority Date: 01/30/1995
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method of simplifying a query in a computer, the query being performed by the computer to retrieve data from a database stored in a electronic storage device coupled to the computer, the method comprising the steps of:

  • (a) accepting the query into the computer; and

    (b) replacing a first expression in the query with a second expression, wherein the first expression comprises;

    
    
    space="preserve" listing-type="equation">δ

    .sub.X.sbsb.1 (e.sub.x)⊙

    δ

    .sub.Y.sbsb.1 (e.sub.y)and the second expression comprises;

    
    
    space="preserve" listing-type="equation">δ

    .sub.X.sbsb.1.sub.Y.sbsb.1 (e.sub.x ⊙

    e.sub.y)wherein;

    eX =(RX, VX, EX) is a relation, where RX is a non-empty set of real attributes, VX is a non-empty set of virtual attributes, EX, an extension of the relation, also denoted as ext(eX), is a set of tuples, X1 .OR right.RX, and X2 .OR right.X1,eY =(RY, VY, EY) is a relation, where RY is a non-empty set of real attributes, VY is a non-empty set of virtual attributes, EY, an extension of the relation, also denoted as ext(eY), is a set of tuples, Y1 .OR right.RY, and Y2 .OR right.Y1

    X (r) is a distinct projection operation of relation r onto attributes X, and⊙

    ε

    {, ←

    , →

    , ←



    }, wherein represents a join operation, ←



    represents a full outer join operation, ←

    represents a left outer join operation, and →

    represents a right outer join operation.

View all claims
  • 0 Assignments
Timeline View
Assignment View
    ×
    ×