Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 01-25-2006, 12:23 PM   #1 (permalink)
Free Mars!
 
feelgood's Avatar
 
Location: I dunno, there's white people around me saying "eh" all the time
Relational Algebra

Ok, I'm having trouble with this particular assignment, specifically this final question:

Quote:
• branch( branchNo, braddress)
• employee( staffNo, forename, surname, empbranch, supervisor)
• account( accountno, type, balance, inBranch ) - type is "deposit", "current", …
• owner( accno, custID)
• customer( ID, forename, surname, address, occupation)

1. Construct relational algebra expressions which describe the following information

a. The types of accounts for which there are no instances with a negative balance
b. The types of accounts for which there is at least one instance with a negative balance
For the (A), this is what I've came up with and I'll try my best to get the symbols going:

beta -> σbalance<0(account)
alpha -> πtypebeta
πtype(account-alpha)


It's my understanding that I select any account with negative balance and then select only the types which, then I remove any of those types within the account table that is contained within the alpha relations. Is that correct?

(B)

beta -> σbalance<0account
πtype(beta)

Again, it's my understanding that what I did was select any account that has negative balance and select the types, is that correct?

I think I'm basing those assumptions that the projection operations are removing any duplicates data
feelgood is offline  
 

Tags
algebra, relational

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 06:59 AM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76