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 |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2003-11-27 : 08:30:49
|
| phil corrin writes "SELECT tblwebsite.id , tblwebsite.name, tblwebsite.description, tblwebsite.email, tblsubsection.id as subid, tblsubsection.name as subname FROM tblwebsite INNER JOIN tblsubsection ON tblwebsite.id = tblsubsection.webid GROUP BY tblwebsite.id, tblwebsite.name, tblwebsite.description, tblwebsite.email, tblsubsection.id, tblsubsection.name ORDER BY tblwebsite.id,tblsubsection.idWhere do i add (WHERE tblwebsite.internet = '1') to filter the tblwebsite before i do the inner join." |
|
|
ehorn
Master Smack Fu Yak Hacker
1632 Posts |
Posted - 2003-11-27 : 08:40:32
|
| [code]SELECT tblwebsite.id , tblwebsite.name, tblwebsite.description, tblwebsite.email, tblsubsection.id as subid, tblsubsection.name as subname FROM tblwebsite INNER JOIN tblsubsection ON tblwebsite.id = tblsubsection.webid WHERE tblwebsite.internet = '1'GROUP BY tblwebsite.id, tblwebsite.name, tblwebsite.description, tblwebsite.email, tblsubsection.id, tblsubsection.name ORDER BY tblwebsite.id,tblsubsection.id[/code] |
 |
|
|
|
|
|
|
|