Meeting at least n criteria from given criteria

Please support our MS SQL advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2008
Posts: 1,160
Reputation: dickersonka will become famous soon enough dickersonka will become famous soon enough 
Solved Threads: 137
dickersonka dickersonka is offline Offline
Veteran Poster

Re: Meeting at least n criteria from given criteria

 
0
  #11
Sep 10th, 2008
once again you need to group by using the outer query


  1. FROM ships WHERE classes.class=ships.class)
  2. -- note the end parenthese
  3. -- now put your group by and total
  4. GROUP BY name, classmatch, borematch, displacementmatch, countrymatch, launchedmatch, typematch, numgunsmatch
  5. WHERE total>=4
Last edited by dickersonka; Sep 10th, 2008 at 11:58 am.
Custom Application & Software Development
www.houseshark.net
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC