all groups > sql server (alternate) > october 2004 >
You're in the

sql server (alternate)

group:

Terminology question - set of related records in multiple tables


Terminology question - set of related records in multiple tables Steve Jorgensen
10/31/2004 10:27:56 PM
sql server (alternate): Terminology question:

Is there a term for a set of records related directly or indirectly by key
value in several tables? For example, a single invoice record and its line
item records -or- a single customer, the customer's orders, the order lines
for those orders, the customer's invoices, and the invoice lines for those
invoices.

I'm thinking the term might be graph, but I'm not at all certain of this.

Thanks,

Re: Terminology question - set of related records in multiple tables Konstantinos
11/1/2004 4:28:45 AM
From the top of my head,
this is the universal relation restricted to tuples where CompanyID =
Company X

The universal relation (union of all relations) is how the database would
look in a completely unormalized state.

for instance Company A has Employees Nick and Tom
CompanyB has Employees Jerry and Scott
Each company also has an address.

In a normalized database you would have a table Company, for Employees and
for Addresses
But the universal relation would be something like this

Company Address
EmpName
A 27 Middle St, Boston, MA, USA Nick
A 27 Middle St, Boston, MA, USA Tom
B 40 Edge St, Boston, MA, USA Jerry
B 40 Edge St, Boston, MA, USA Scott

So what you are describing is the subset of the universal relation that
results from a selection on a particular value of a particular attribute.
In this case where Company = A, for instance.

Regards,
Konstantinos

[quoted text, click to view]

Re: Terminology question - set of related records in multiple tables Trevor Best
11/1/2004 8:36:03 AM
[quoted text, click to view]

Entity?

Re: Terminology question - set of related records in multiple tables Steve Jorgensen
11/1/2004 8:59:10 AM
[quoted text, click to view]

I'm looking for a term that could apply to an arbitrarily complex set of
items, possibly with relationships among them, but all restricted by
relationship to a single key value somewhere. It could be as simple as an
invoice and its lines, or it could be as complex as a virtual schema for one
company in a database that supports multiple, independent companies
simultaneously, each with their own product catalog, customer, invoices, etc.,
and with no overlap allowed between records in different companies.

For example...

A collection of records comprising a single Company record and all other
records in all other tables that apply to that company and only that company.

Company
*CompanyId
CompanyName

Product
*ProductId
CompanyId
ProductName
(Unique CompanyId, ProductName)

Customer
*CustomerId
CompanyId
CustomerName
(Unique CompanyId, CustomerName)

Invoice
*InvoiceId
CompanyId
InvoiceNumber
(Unique CompanyId, InvoiceNumber)

InvoiceLine
*InvoiceLineId
CompanyId (part of both FKs to enforce same company)
InvoiceId (part FK to Invoice)
ProductID (part FK to Customer)
LineQty
Re: Terminology question - set of related records in multiple tables Leythos
11/1/2004 11:43:38 AM
In article <s1ubo0598nmheb2k8udg65djjj5032ipfv@4ax.com>,
nospam@nospam.nospam says...
[quoted text, click to view]

It's called a one to many relationship.

1 record relates to many sub-records in another table by key.

--
--
spamfree999@rrohio.com
Re: Terminology question - set of related records in multiple tables Steve Jorgensen
11/1/2004 2:28:49 PM
Thanks, but that's too long for a term. I was looking for a term I can use to
describe this concept within a larger term for a pattern related to such. I
guess I'll keep using "graph" (as in "directed graph") unless someone can tell
me a reason that's not an appropriate use of the term.

[quoted text, click to view]
Re: Terminology question - set of related records in multiple tables Steve Jorgensen
11/1/2004 2:33:30 PM
[quoted text, click to view]

Not quite. 1-m relationship does not include the idea that we're only talking
about a group of records related to a single ancestor, nor the fact that if a
record is reachable by more than one 1-m path such as a junction between
Re: Terminology question - set of related records in multiple tables Leythos
11/1/2004 3:29:26 PM
In article <gcico01uvomgr6su4583o7u4v795tjdac4@4ax.com>,
nospam@nospam.nospam says...
[quoted text, click to view]

you're thinking at the wrong level - you just described a 1-M
relationship. Your fault is in thinking too low in the tree. you can
have any number of 1-m relationships with each other.

--
--
spamfree999@rrohio.com
Re: Terminology question - set of related records in multiple tables David W. Fenton
11/2/2004 2:33:40 AM
Steve Jorgensen <nospam@nospam.nospam> wrote in
news:s1ubo0598nmheb2k8udg65djjj5032ipfv@4ax.com:

[quoted text, click to view]

A database?

--
David W. Fenton http://www.bway.net/~dfenton
Re: Terminology question - set of related records in multiple tables Steve Jorgensen
11/2/2004 7:04:02 AM
On Tue, 2 Nov 2004 17:42:12 +1100, "david epsom dot com dot au"
[quoted text, click to view]

First, I'm convinced you've understood my question. Thanks.

I know "graph" is not itself sufficient to describe the concept in full, but
it does imply a set of nodes reachable from a staring point, right? Would it
then be reasonably good terminology to say that a graph having no overlap with
other similar graphs is a "Partitioned Graph"?

The latest case where I actually came up with a schema like this that I wanted
a term for is a system for describing a data transformation process. I need
to represent enough of the schema of each source or destination system to
allow some additional tables to describe how data is transformed between them.
Essentially, the records that describe a single application's schema comprise
a "Partitioned Graph" if that's a workable term, and each app-to-app mapping
also describes a partitioned graph if the data in the metaschema tables is not
included.

The last prior case of this I ran into was a system that was supposed to
manage banks of test questions and exams given by several different companies,
but managed for them by a single company. Questions could be copied from
company to company, but only by exporting and re-importing, and they would be
Re: Terminology question - set of related records in multiple tables jafortun NO[at]SPAM oakland.edu
11/2/2004 8:52:24 AM
[quoted text, click to view]

Keychain? :-).

Re: Terminology question - set of related records in multiple tables david epsom dot com dot au
11/2/2004 5:42:12 PM
I think that what you are talking about is actually a kind
of set, rather than a kind of graph (I'll accept the overlap
of concepts), but unfortunately I can't think of a simple
term for the set of records that makes a complete record. :~(

In other contexts, I think you'd be talking about an
Object or an InfoSet. I'd think that there might also
be an XML term for what you've got in mind.

Graph, like Tree, can refer either to the structure or
to the data contained in that structure. (A tree a simple
kind of graph, a tree graph). Most database schemas are
trees, but relational data is not: the type tables are
branches on the schema graph, but loops on the data graph.

Neither Tree nor Graph specifically indicates that only
a single branch of the data is required, but to make that
point, sometimes the word Forest is introduced: A Tree
contains only related data, a Forest contains unrelated
data. (Because the unrelated date is excluded from the
graph, the graph will normally be a tree, even when taken
from a relational database).

Since I don't know a better word, I can't make any other
suggestions, but unless your graph includes loops, I'd
call it a tree.

If you're feeling brave, try the question again in comp.databases


(david)


[quoted text, click to view]

Re: Terminology question - set of related records in multiple tables david epsom dot com dot au
11/3/2004 1:47:19 PM
I never studied graph theory!!! But note that a partition
can include disconnected graphs (a Forest if the disconnected
graphs are acyclic). You get disconnected graphs in the
partition by not including the cut set.

(david)


[quoted text, click to view]

Re: Terminology question - set of related records in multiple tables Steve Jorgensen
11/4/2004 3:19:17 AM
[quoted text, click to view]

Does your definition of Clump reflect or not reflect the distinction that no 2
Clumps defined by the same head record have any common records? If not, would
it be fair to say that something like a Partitioned Clump would be a plausible
Re: Terminology question - set of related records in multiple tables bhawes NO[at]SPAM satx.rr.com
11/4/2004 9:12:24 AM
[quoted text, click to view]

Re: Terminology question - set of related records in multiple tables Clifford Heath
11/4/2004 12:28:18 PM
We've been using the ad-hoc term "clump" to describe exactly
what you're talking about. A clump is a head record, and one
or more sets of related records found by traversing a
relationship (either to or from the head record), perhaps
applying a filter to the related records in each set.
Each related record may specify further related records in
the same way, including recursive queries against the same
table.

In this way, a clump description is a tree of relationship-
traversal instructions. We have an executable clump description
language and clump-query code as part of our in-house code
generator. The clump query code identifies "repeated" records
because it knows the unique identifiers on the tables, so a
clump may contain multiple references to a single record. The
generated C# code maps the clump to a DataSet, which allows the
whole clump to be serialised across web services to the UI
presentation layer. It's a very productive development
environment.

Re: Terminology question - set of related records in multiple tables Clifford Heath
11/4/2004 8:39:05 PM
[quoted text, click to view]

It explicitly allows the clump to contain the same record twice.
The clump fetcher identifies repeated records (which it can do
because it knows the unique keys), and instead of making a new
record instance, adds a reference to the previous record instance.
So although the same record may be retrieved twice from the DBMS,
it isn't stored twice.

[quoted text, click to view]

Hmm. We use "partition" for a different purpose (relevant to access
control), so no.

I think you're referring to a clump with a topology (record relationship
graph) which is a tree (rather than a directed graph, as ours supports).
In that case I suppose you could just call it a tree. Except that
doesn't catch the key concept, that each clump description identifies a
class of record groups having a specific topology.

I guess I'd just identify such clumps as having a tree topology.

BTW, the word "clump" came from the idea of uprooting weeds - you grab a
handful of stems, and pull up the clump of roots - whatever is attached,
comes up :-). Very informal naming, but I've never been given to
formality :-).

Re: Terminology question - set of related records in multiple tables david epsom dot com dot au
11/5/2004 10:18:36 AM
[quoted text, click to view]

-------
http://www.archivists.org/glossary/term_details.asp?DefinitionKey=392

Definition
n. ~ A collection of related data elements treated as a conceptual unit,
independent of how or where the information is stored.
Notes
A logical record is defined by a particular data structure in an
application, independent of the physical characteristics and constraints of
the storage medium.
-------

Normally, the important characteristic of a Logical Record is it's
independance from physical form: the opposite of a Logical Record
is a Physical Record. A Physical Record normally implies a sequential
file, with fixed length or delimited records, but may also indicate
any other non-logical, non-relational, non-dictionary record format,
where logical records are constructed from physical records.


[quoted text, click to view]

AddThis Social Bookmark Button