Path: newssvr20.news.prodigy.com!newsmst01.news.prodigy.com!prodigy.com!elnk-atl-nf1!newsfeed.earthlink.net!newshosting.com!news-xfer2.atl.newshosting.com!fu-berlin.de!uni-berlin.de!12.145.34.101!not-for-mail
From: Costin Cozianu <c_cozianu@hotmail.com>
Newsgroups: comp.databases.theory
Subject: Re: Database-valued attributes?
Date: Tue, 11 Nov 2003 12:01:36 -0800
Lines: 18
Message-ID: <borf8t$1hkn0f$1@ID-152540.news.uni-berlin.de>
References: <_C_rb.122225$9E1.607217@attbi_s52> <boqjj0$18lk$1@gazette.almaden.ibm.com> <fX7sb.174252$e01.608500@attbi_s02> <borb84$127k$1@gazette.almaden.ibm.com>
NNTP-Posting-Host: 12.145.34.101
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de 1068580957 52059151 12.145.34.101 (16 [152540])
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
In-Reply-To: <borb84$127k$1@gazette.almaden.ibm.com>
Xref: newssvr20.news.prodigy.com comp.databases.theory:22635

> Never a bad mode to be in. Perhaps you could ponder on this one. If a
> database contains relation *variables* does that mean that a Database Valued
> Atrribute also contains variables?
> 

There's hardly a sharp distinction to be made. Variables live in a 
context, and that context is a mapping from names to values. As such it 
can be regarded as a value. It's a very common trick in languages like 
Scheme and Lisp.

So while you can update a row to chage quantity from 1 to 2, you can 
update the same row, to change some other column to

{ ("varname" : newvalue) }

best,
Costin

