MESSAGE
DATE | 2015-02-26 |
FROM | Ruben Safir
|
SUBJECT | Subject: [LIU Comp Sci] [mrbrklyn@panix.com: (fwd) Re: Role of functional dependencies in
|
From owner-learn-outgoing-at-mrbrklyn.com Thu Feb 26 07:10:31 2015 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: by mrbrklyn.com (Postfix) id 15ECE161174; Thu, 26 Feb 2015 07:10:31 -0500 (EST) Delivered-To: learn-outgoing-at-mrbrklyn.com Received: by mrbrklyn.com (Postfix, from userid 28) id 01541161186; Thu, 26 Feb 2015 07:10:30 -0500 (EST) Delivered-To: learn-at-nylxs.com Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by mrbrklyn.com (Postfix) with ESMTP id 82E02161174 for ; Thu, 26 Feb 2015 07:10:30 -0500 (EST) Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id 783E91082F for ; Thu, 26 Feb 2015 07:10:30 -0500 (EST) Received: by panix2.panix.com (Postfix, from userid 20529) id 7070533C79; Thu, 26 Feb 2015 07:10:30 -0500 (EST) Date: Thu, 26 Feb 2015 07:10:30 -0500 From: Ruben Safir To: learn-at-nylxs.com Subject: [LIU Comp Sci] [mrbrklyn-at-panix.com: (fwd) Re: Role of functional dependencies in database design] Message-ID: <20150226121030.GE7105-at-panix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Sender: owner-learn-at-mrbrklyn.com Precedence: bulk Reply-To: learn-at-mrbrklyn.com
----- Forwarded message from Ruben Safir -----
Date: Thu, 26 Feb 2015 07:08:29 -0500 (EST) From: Ruben Safir To: mrbrklyn-at-panix.com Subject: (fwd) Re: Role of functional dependencies in database design User-Agent: tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (NetBSD/6.1.5 (i386))
-- forwarded message -- Path: reader1.panix.com!panix!goblin3!goblin.stu.neva.ru!news.netfront.net!nvitacolonna From: Nicola Newsgroups: comp.databases.theory Subject: Re: Role of functional dependencies in database design Date: Fri, 20 Feb 2015 10:08:54 +0100 Organization: --- Lines: 52 Message-ID: References: <80f34c94-e62e-4d02-8244-7e928acdf476-at-googlegroups.com> NNTP-Posting-Host: 158.110.226.55 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: adenine.netfront.net 1424423336 19422 158.110.226.55 (20 Feb 2015 09:08:56 GMT) X-Complaints-To: news-at-netfront.net NNTP-Posting-Date: Fri, 20 Feb 2015 09:08:56 +0000 (UTC) User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Xref: panix comp.databases.theory:75565
In article <80f34c94-e62e-4d02-8244-7e928acdf476-at-googlegroups.com>, compdb-at-hotmail.com wrote:
> > given two lecturers L1 and L2 and a time T > > when L1 is teaching at time T and L2 is teaching at time T > > then L1 and L2 are in different rooms > > FORALL L1,L2,T,R1,R2 > teaches(L1,T,R1) AND teaches(L2,T,R2) => R1 <> R2
I think that it should be:
FORALL L1,L2,T,R1,R2 L1 <> L2 AND teaches(L1,T,R1) AND teaches(L2,T,R2) => R1 <> R2 > > (this is absolutely off the top of my head: don't take it as a serious > > attempt). > > No FD.
Correct. The FD is implied, though:
Let X be L1 <> L2 Let Y be teaches(L1,T,R1) AND teaches(L2,T,R2) Let Z be R1 <> R2
Then the sentence above is the universal closure of
X AND Y -> Z,
If my coffee has worked as it should, the latter is equivalent to
(NOT Z) AND Y -> NOT X,
that is,
R1 = R2 AND teaches(L1,T,R1) AND teaches(L2,T,R2) -> L1 = L2,
or, simplifying,
teaches(L1,T,R) AND teaches(L2,T,R) -> L1 = L2.
The idea behind my example is that a hypothetical formalism based on natural language might allow the user to write specifications that are not a direct translation of the logical definition of a FD, but from which the system might *infer* a FD, giving the user more freedom in the way constraints may be expressed. But again, I haven't really thought about it too much. Nicola
--- news://freenews.netfront.net/ - complaints: news-at-netfront.net --- -- end of forwarded message --
----- End forwarded message -----
|
|