RSS Forums RSS
Please support our Database Design advertiser: Programming Forums
Views: 1054 | Replies: 3
Reply
Join Date: Apr 2007
Location: Australia
Posts: 3
Reputation: ali_rulz is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ali_rulz's Avatar
ali_rulz ali_rulz is offline Offline
Newbie Poster

Help Assignment Help Plz!! Urgent

  #1  
Apr 24th, 2007
hey all
i need to find the birds with the largest number of habitats.
attached is the database i am working with.

i sort of need the solution in about 2hrs time....

thanx ali
Attached Files
File Type: zip BirdsSql.ZIP (24.4 KB, 2 views)
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2007
Location: Australia
Posts: 3
Reputation: ali_rulz is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ali_rulz's Avatar
ali_rulz ali_rulz is offline Offline
Newbie Poster

Re: Assignment Help Plz!! Urgent

  #2  
Apr 24th, 2007
sorry i forgot to add that i am using winsql and need the query.
Reply With Quote  
Join Date: May 2006
Location: New Jersey
Posts: 1,422
Reputation: stymiee is on a distinguished road 
Rep Power: 5
Solved Threads: 34
Moderator
stymiee's Avatar
stymiee stymiee is offline Offline
He's No Good To Me Dead

Re: Assignment Help Plz!! Urgent

  #3  
Apr 24th, 2007
Did you write your own query yet? If not, try it and post it here if you are having problems. Otherwise, do your own homework. We're here to help, not do your work for you.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Reply With Quote  
Join Date: Apr 2007
Location: Australia
Posts: 3
Reputation: ali_rulz is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ali_rulz's Avatar
ali_rulz ali_rulz is offline Offline
Newbie Poster

Re: Assignment Help Plz!! Urgent

  #4  
Apr 24th, 2007
yeh i have written my own code but not even sure if on right track...
Select H.HCode, Count (*)
From Birds B, Habitats H, Bird_Habitats BH
Where B.BirdID = BH.BirdID
Group By H.HCode, B.BirdID
Having Count (*) >= some (Select Count (*)
From Bird_Habitats
Group By BirdID);

and just for the record i wasnt trying to get u to do my homework for me i was purely trying to get help in understanding how to write this particular query!
thanx ali
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 9:01 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC