# US 2006/0136470 A1 · Field-to-field join constraints

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2006/0136470 A1
- Document ID: US20060136470A1
- Status: Published application
- Kind: A1
- Application number: 11/016,215
- Filed: 2004-12-17
- Published: 2006-06-22
- Earliest claimed: 2004-12-17
- Assignees: International Business Machines Corporation
- Inventors: Richard Dettinger; Daniel Kolz; Richard Stevens
- Web page: https://patentgrep.com/patent/US20060136470A1

## CPC

- G06F 16/2471: {Distributed queries}
- G06F 16/258: {Data format conversion from or to a database}
- Y10S 707/99933: Query processing, i.e. searching
- Y10S 707/99943: Generating database or data structure, e.g. via user interface
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y10S: TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS

## Abstract

Embodiments of the present invention generally provide methods systems and articles of manufacture for query processing and for constructing a database abstraction model over an underlying physical database. The database abstraction model allows users to compose an abstract query using a logical view of data, instead of using the view of the underlying database architecture. Embodiments of the invention constrain the results returned from processing an abstract query according to relationships that exist for a group of logical fields. First, a group of logical fields may be related because they are part of a logical set. Field-to-field join constraints specify the logical fields that form a set, and an instance indicator used to determine the particular instance of a set that an element of data belongs to, according to a discrimination rule. Second, logical fields may be related because they are part of a series, and an instance identifier may provide an ordering rule used to determine the order of data elements that form the series.

## Claims

### Claim 1

A method of creating a database abstraction model, comprising:
defining a database abstraction model, wherein the database abstraction model defines a plurality of logical fields for composing an abstract query, wherein each logical field specifies (i) a name for the logical field and (ii) at least an access method that maps the logical field to data in an underlying physical database;
identifying a logical relationship for a group of logical fields; and
defining, for the database abstraction model, a field-to-field join constraint based on the logical relationship, wherein the field-to-field join constraint defines how a set of query results retrieved for the group of logical fields should be joined together for purposes of being output.

### Claim 2 (depends on 1)

The method of claim 1, wherein the set of query results are grouped into one of (i) instances of a set, wherein the field-to-field join constraint includes an instance indicator used to determine into which instance of a set an element of data included in the query results is placed or (ii) an ordered series, wherein an instance identifier is used to determine the order, relative to the series, of an element of data from the query results.

### Claim 3 (depends on 2)

The method of claim 2, wherein the series is time-ordered.

### Claim 4 (depends on 1)

The method of claim 1, further comprising, providing (i) an interface for composing an abstract query that includes the group of logical fields and (ii) a runtime component configured to generate, from the abstract query, a resolved query of the database.

### Claim 5 (depends on 4)

The method of claim 4, wherein the interface is further configured to allow a user to specify an additional field-to-field join constraint for a group of logical fields.

### Claim 6

A method of processing an abstract query that includes a group of logical fields specified by a field-to-field join constraint, comprising:
receiving, from a requesting entity, the abstract query, wherein the abstract query is composed from a plurality of logical fields specified in a database abstraction model, and wherein each logical field defines at least an access method that maps the logical field to data in an underlying physical database;
generating, from the abstract query, a resolved query of the underlying physical database;
issuing the resolved query to the underlying physical database to retrieve a set of query results;
grouping the query results according to the field-to-field join constraint, wherein the field-to-field join constraint specifies how query results retrieved for the group of logical fields should be joined together for purposes of being output; and
returning the grouped query results to the requesting entity.

### Claim 7 (depends on 6)

The method of claim 6, wherein the set of query results are grouped into one of (i) instances of a set, wherein the field-to-field join constraint includes an instance indicator used to determine which instance of a set that an element of data included in the query results is placed or (ii) an ordered series, wherein an instance identifier is used to determine the order, relative to the series, of an element of data from the query results.

### Claim 8 (depends on 7)

The method of claim 7, wherein the series is time-ordered.

### Claim 9 (depends on 6)

The method of claim 6, wherein the interface is further configured to allow a user to specify an additional field-to-field join constraint for a group of logical fields.

### Claim 10

A method of processing an abstract query that includes a group of logical fields specified by a field-to-field join constraint, comprising:
receiving, from a requesting entity, the abstract query, wherein the abstract query is composed from a plurality of logical fields specified in a database abstraction model, and wherein each logical field defines at least an access method that maps the logical field to data in an underlying physical database;
generating, from the abstract query, a resolved query of the underlying physical database;
modifying the resolved query according to the field-to-field join constraint, wherein the field-to-field join constraint defines how the set of query results retrieved for the group of logical fields should be joined together for purposes of being output;
executing the resolved query to retrieve a set of grouped query results from the database; and
returning the grouped query results to the requesting entity.

### Claim 11 (depends on 10)

The method of claim 10, wherein the set of query results are grouped into one of (i) instances of a set, wherein the field-to-field join constraint includes an instance indicator used to determine which instance of a set that an element of data included in the query results is placed or (ii) an ordered series, wherein an instance identifier is used to determine the order, relative to the series, of an element of data from the query results.

### Claim 12 (depends on 11)

The method of claim 11, wherein the series is time-ordered.

### Claim 13 (depends on 12)

The method of claim 12, wherein the interface is further configured to allow a user to specify an additional field-to-field join constraint for a group of logical fields.

### Claim 14

A computer-readable medium containing a plurality of instructions which, when executed on a computer system is configured to perform operations:
providing an interface for composing for composing an abstract query of a database abstraction model, wherein the database abstraction model defines a plurality of logical fields, wherein each logical field specifies (i) name for the logical field and (ii) at least an access method that maps the logical field to data in an underlying physical database;
receiving, an abstract query composed from the plurality of logical fields;
generating, from the abstract query, a resolved query of the underlying physical database;
issuing the resolved query to the underlying physical database to retrieve a set of query results;
grouping the query results according to the field-to-field join constraint, wherein the field-to-field join constraint specifies how query results retrieved for the group of logical fields should be joined together for purposes of being output; and
returning the grouped query results to the requesting entity.

### Claim 15 (depends on 14)

The computer-readable medium of claim 14, wherein the set of query results are grouped into one of (i) instances of a set, wherein the field-to-field join constraint includes an instance indicator used to determine which instance of a set that an element of data included in the query results is placed or (ii) an ordered series, wherein an instance identifier is used to determine the order, relative to the series, of an element of data from the query results.

### Claim 16 (depends on 14)

The computer-readable of claim 14, wherein the series is time-ordered.

### Claim 17 (depends on 14)

The computer-readable of claim 14, wherein the interface is further configured to allow a user to specify an additional field-to-field join constraint for a group of logical fields.

### Claim 18

A system for accessing a database storage mechanism, comprising:
a database;
a database abstraction model, wherein the database abstraction model defines (i) a plurality of logical fields for composing an abstract query, wherein each logical field specifies (a) a name for the logical field and (b) at least an access method that maps the logical field to data in the database, and (ii) at least a field-to-field join constraint based on a relationship between a group of logical fields, wherein the field-to-field join constraint defines how a set of query results retrieved for the group of logical fields should be joined together for purposes of being output
an interface for composing an abstract query that includes the group of logical fields; and
a runtime component configured to generate, from the abstract query, a resolved query of the database used to retrieve a set of query results from the database, wherein the query results are organized according to the field-to-field join constraint.

### Claim 19 (depends on 18)

The system of claim 18, wherein the set of query results are grouped into one of (i) instances of a set, wherein the field-to-field join constraint includes an instance indicator used to determine which instance of a set that an element of data included in the query results is placed or (ii) an ordered series, wherein an instance identifier is used to determine the order, relative to the series, of an element of data from the query results.

### Claim 20 (depends on 19)

The system of claim 19, wherein the interface is further configured to allow a user to specify an additional field-to-field join constraint for a group of logical fields.
