Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old November 2nd, 2004, 05:01 PM
smalik smalik is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 5 smalik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 18 sec
Reputation Power: 0
Unhappy SQL Query - HELP PLEASE

I have a table called evolution project with four fields: month, proj_id (Project ID), user_id (User ID) and role.
The month field is in the format: 200202. All the other fields are numbers. Each project has multiple users. A user may be associated with more than one project. The role field is simply a number based on a key for different roles the user can performin the project: developer, passive etc.
The number of users associated with a project is called the degree of the project. I want to query out all projects with a degree greater than a certain constant 'c', using SQL.

HELP PLEASE.

Reply With Quote
  #2  
Old November 3rd, 2004, 04:23 AM
Scorpions4ever Scorpions4ever is offline
Mad Rater
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 126 Scorpions4ever User rank is Corporal (100 - 500 Reputation Level)Scorpions4ever User rank is Corporal (100 - 500 Reputation Level)Scorpions4ever User rank is Corporal (100 - 500 Reputation Level)Scorpions4ever User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 11 h 31 m 44 sec
Reputation Power: 8
Don't have a SQL server installed on this computer, so I'm going to wing it.
Code:
SELECT count(*), proj_id
FROM evolution WITH (NOLOCK)
GROUP BY proj_id
HAVING count(*) > 5
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > SQL Query - HELP PLEASE


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT