n00bfest.com
Home Forum phpBB3 Shoutbox Servers Teamspeak Admins Donate FAQ
Sign Up
Stats Contact Us!

 

View unanswered posts | View active topics It is currently Thu May 02, 2024 3:24 pm

Forum rules


- n00bfest is not the special olympics. It is a gaming community. Do not act like n00bfest is a retard daycare or you will be punished.
- Outright flames and flamebaiting will be punished.
- Even if you are not an adult, do your best to act like one.
- *NEW* Political/Religious News and NSFW posts do not belong here. Use the Videos, Links, Political/Religious News Discussion Forum
- Punishments range from warnings to permanent forum/gameserver bans.





Reply to topic  [ 9 posts ] 
 Homework help 
Author Message
Game Server Admin
User avatar

Joined: Sun Feb 22, 2009 12:00 am
Posts: 2738
Location: Jacksonville, NC
Post Homework help
So i'm taking a college course Relation Database Concepts.

Well we have a list of relational algebra questions we have to figure out and I can't figure this one out to save my life. Any help would be appreciated.


List the number and date of all orders that were placed on 10/20/2013 or that were placed by a customer whose rep number is 20


List the number and date of all orders that were placed on 10/20/2013 by a customer whose rep number is 20


List the number and date of all orders that were placed on 10/20/2013 but not by a customer whose rep number is 20.

Thanks ahead of time!!

_________________
Image


Mon Jan 06, 2014 10:46 pm
Profile
[n00b] Member
User avatar

Joined: Mon Jun 04, 2012 10:09 am
Posts: 696
Location: Texas
Post Re: Homework help
i think you're missing some information

_________________
Image


Mon Jan 06, 2014 11:42 pm
Profile
Game Server Admin
User avatar

Joined: Sun Feb 22, 2009 12:00 am
Posts: 2738
Location: Jacksonville, NC
Post Re: Homework help
Damn it....lol....my brain is fried.....I'll post the rest of the info when I get back to my computer.

_________________
Image


Mon Jan 06, 2014 11:51 pm
Profile
Game Server Admin
User avatar

Joined: Sat Jul 19, 2008 11:00 pm
Posts: 832
Location: Cali
Post Re: Homework help
you need to get some of that white girl ass my friend...

_________________
casey_jones@n00bfest.com


Tue Jan 07, 2014 12:32 am
Profile
Game Server Admin
User avatar

Joined: Sun Feb 22, 2009 12:00 am
Posts: 2738
Location: Jacksonville, NC
Post Re: Homework help
I just did......4 times haha

_________________
Image


Tue Jan 07, 2014 12:33 am
Profile
Game Server Admin
User avatar

Joined: Sun Feb 22, 2009 12:00 am
Posts: 2738
Location: Jacksonville, NC
Post Re: Homework help
The names of the tables

Rep(RepNum, LastName, FirstName, Street, City, State, Zip, Commission, Rate)
Customer( CustomerNum, CustomerName, Street,City,State,Zip,Balance,CreditLimit,RepNum)
Orders(OrderNum,OrderDate,CutomerNum)
Orderline(OrderNum,PartNum,NumOrdered,QuotedPrice)
Part(PartNum, Desciption,OnHand,Class,Warehouse,Price)


Example of what I am talking about

List the number and name of those customers that have orders or are represented by sales rep 65, or both.

JOIN Orders, Customer
WHERE Orders.CustomerNum=Customer.CustomerNum
GIVING Temp1
PROJECT Temp1 OVEr CustomerNum, CustomerName
GIVING Temp2
SELECT Customer WHERE RepNum="65"
GIVING Temp3
PROJECT Temp3 OVER CustomerNum, CustomerName
GIVING Temp4
UNION Temp2 WITH Temp4
GIVING Answer


Hopefully someone can help me with this.

_________________
Image


Tue Jan 07, 2014 8:21 am
Profile
[n00b] Member
User avatar

Joined: Sat Feb 20, 2010 9:56 pm
Posts: 612
Post Re: Homework help
first you teach them math then they'll be wantin to learn to swim and shit this is a slippery slope wasnt the 13th amendment enough?


Tue Jan 07, 2014 12:12 pm
Profile
[n00b] Member

Joined: Tue Mar 05, 2013 12:20 am
Posts: 231
Post Re: Homework help
I can help you but I still don't understand what the real problem is. How many possible solutions are there? Is that the question?


Tue Jan 07, 2014 8:55 pm
Profile
Game Server Admin
User avatar

Joined: Sun Feb 22, 2009 12:00 am
Posts: 2738
Location: Jacksonville, NC
Post Re: Homework help
I have to come up with this part JOIN Orders, Customer
WHERE Orders.CustomerNum=Customer.CustomerNum
GIVING Temp1
PROJECT Temp1 OVEr CustomerNum, CustomerName
GIVING Temp2
SELECT Customer WHERE RepNum="65"
GIVING Temp3
PROJECT Temp3 OVER CustomerNum, CustomerName
GIVING Temp4
UNION Temp2 WITH Temp4
GIVING Answer

from List the number and name of those customers that have orders or are represented by sales rep 65, or both.

Like if I wanted to create a table from the question given using relational algebra.

_________________
Image


Tue Jan 07, 2014 8:57 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.