Re: Academic name for associative array when used to pair column names with data
Date: Thu, 20 Mar 2014 00:26:57 -0700 (PDT)
Message-ID: <41a0b69b-a021-447c-977f-a1de48073fe1_at_googlegroups.com>
On Wednesday, March 19, 2014 2:08:48 PM UTC+1, william.d..._at_gmail.com wrote:
> > It's just "tuple". Since neither relations (tables) nor tuples (rows) are ordered in their attributes
>
> > (columns), it is convenient and typical to characterize relations as sets of tuples and tuples as
>
> > sets of name-value pairs.
>
>
>
> Hi Philip,
>
>
>
> Thanks for your reply.
>
>
>
> So, there's no proper way to distinguish by nomenclature a tuple of just the data values from a tuple of the pairing of the attribute names with the data values?
>
>
>
> I'm picking on this because I'm trying to name something and would like to do better than "key-value" or "name-value" if I can.
>
>
>
> Perl would let me re-use "tuple" for the "%name_needed" variable, but I think that would be confusing to anyone else who reads the code.
>
>
>
> Thanks,
>
>
>
> William
Is your question for a proper name for the '2x1' thingy in isolation ?
that would be just "value". (As distinct from "attribute value". "Value" refers to a member of a data type, "attribute value" refers to the possible appearance of the value in a tuple/relation as being "the" value for that attribute in a tuple [of a relation] ).
There's a rather solid treatment on precisely your issue of terminology in "Introduction to relational database theory" by Hugh Darwen.
Just keep in mind that these subtle distinctions will not be understood if you mention them to your average SQL database guy. Received on Thu Mar 20 2014 - 08:26:57 CET