Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Gerten_Utv
Starting Member
7 Posts |
Posted - 2010-10-05 : 03:49:26
|
Hi I have an tabel bo_Match and bo_MatchResultSenario select alla rows from bo_Match where rows in bo_MatchResult < 9SELECT * FROM bo_Match INNER JOIN bo_MatchResult ON (MatchId = MatchResultMatchId)WHERE MatchSeason = 2010 AND MatchDivisionId = 8 Best regardsGert |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2010-10-05 : 04:00:54
|
select *from bo_Match bmjoin(select MatchResultMatchId from bo_MatchResult group by MatchResultMatchId having count(*) < 9) dton dt.MatchResultMatchId = bm.MatchId No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
|
|
|