MESSAGE
DATE | 2014-12-18 |
FROM | Ruben Safir
|
SUBJECT | Re: [LIU Comp Sci] Normalization review
|
From owner-learn-outgoing-at-mrbrklyn.com Thu Dec 18 10:54:50 2014 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: by mrbrklyn.com (Postfix) id A218A161167; Thu, 18 Dec 2014 10:54:50 -0500 (EST) Delivered-To: learn-outgoing-at-mrbrklyn.com Received: by mrbrklyn.com (Postfix, from userid 28) id 8B209161169; Thu, 18 Dec 2014 10:54:50 -0500 (EST) Delivered-To: learn-at-mrbrklyn.com Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by mrbrklyn.com (Postfix) with ESMTP id B32D2161167 for ; Thu, 18 Dec 2014 10:54:49 -0500 (EST) Received: from [10.0.0.42] (unknown [96.57.23.82]) by mailbackend.panix.com (Postfix) with ESMTPSA id 906D113D17 for ; Thu, 18 Dec 2014 10:54:49 -0500 (EST) Message-ID: <5492F8D8.3030008-at-panix.com> Date: Thu, 18 Dec 2014 10:55:04 -0500 From: Ruben Safir User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: learn-at-mrbrklyn.com Subject: Re: [LIU Comp Sci] Normalization review References: <20141218153424.GA4242-at-panix.com> <20141218154519.GC4242-at-panix.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: owner-learn-at-mrbrklyn.com Precedence: bulk Reply-To: learn-at-mrbrklyn.com
On 12/18/2014 10:50 AM, Sergei Glikstein wrote: > where is that?
On the B train Kings Highway Stop... There is coffee and Piazza here.
1580 East 19th Suite 1E
first floor
Can anyone explain this?
6.6.7 Using the Universal Quantifier in Queries Whenever we use a universal quantifier, it is quite judicious to follow a few rules to ensure that our expression makes sense. We discuss these rules with respect to the query Q3. Query 3. List the names of employees who work on all the projects controlled by department number 5. One way to specify this query is to use the universal quantifier as shown: Q3: {e.Lname, e.Fname | EMPLOYEE(e) AND ((?x)(NOT(PROJECT(x)) OR NOT (x.Dnum=5) OR ((?w)(WORKS_ON(w) AND w.Essn=e.Ssn AND x.Pnumber=w.Pno))))} 6.6 The Tuple Relational Calculus 181 We can break up Q3 into its basic components as follows: Q3: {e.Lname, e.Fname | EMPLOYEE(e) AND F } F = ((?x)(NOT(PROJECT(x)) OR F1)) F1 = NOT(x. Dnum=5) OR F2 F2 = ((?w)(WORKS_ON(w) AND w.Essn=e.Ssn AND x.Pnumber=w.Pno)) We want to make sure that a selected employee e works on all the projects controlled by department 5, but the definition of universal quantifier says that to make the quantified formula TRUE, the inner formula must be TRUE for all tuples in the uni- verse. The trick is to exclude from the universal quantification all tuples that we are not interested in by making the condition TRUE for all such tuples. This is necessary because a universally quantified tuple variable, such as x in Q3, must evaluate to TRUE for every possible tuple assigned to it to make the quantified formula TRUE.
> > On Thu, Dec 18, 2014 at 10:45 AM, Ruben Safir wrote: >> On Thu, Dec 18, 2014 at 10:39:29AM -0500, Sergei Glikstein wrote: >>> i am in the library upstairs >>> >>> On Thu, Dec 18, 2014 at 10:34 AM, Ruben Safir >> wrote: >>>> Anyone want to review normalization? >>>> >>>> Ruben >>>> >>>> >> >> why not come here so I can pick your brain without distractions and with >> a network that functions. >> >> Everytime i go to that damn libvrary i waste my time >> >> Ruben >> >> BTW - you know IRC - xchat? >> >> Ruben >> >>
|
|