<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1050243" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1050243</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Thanks for your help! It</title>
    <link>https://www.webmaster-forums.net/web-database-development/quick-sql-help#comment-1266483</link>
    <description> &lt;p&gt;Thanks for your help! It nearly works, it doesn&#039;t understand the first b.businesses column, this is a little out of my league so if you could help that would be highly appreciated! &lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;
&lt;p&gt;lrevillhendley.&lt;/p&gt;
 </description>
     <pubDate>Wed, 29 Jun 2011 10:30:09 +0000</pubDate>
 <dc:creator>LRevillHendley</dc:creator>
 <guid isPermaLink="false">comment 1266483 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Just woke up so mind is still</title>
    <link>https://www.webmaster-forums.net/web-database-development/quick-sql-help#comment-1266010</link>
    <description> &lt;p&gt;Just woke up so mind is still waking up, but give this a try:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;SELECT *, (SELECT COUNT(review_id) FROM reviews AS r WHERE r.business_id = b.businesses.id) AS review_count&lt;br /&gt;FROM businesses AS b&lt;br /&gt;JOIN loc_link AS ll ON ll.business_id = b.businesses.id &lt;br /&gt;JOIN cat_link AS cl ON cl.business_id = b.businesses.id &lt;br /&gt;WHERE ll.loc_id = &amp;#039;$loc_id&amp;#039; AND cat_link.cat_id = &amp;#039;$cat_id&amp;#039; AND businesses.active = &amp;#039;true&amp;#039;&lt;br /&gt;ORDER BY review_count&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 15 Jun 2011 17:14:27 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1266010 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I don&#039;t really understand</title>
    <link>https://www.webmaster-forums.net/web-database-development/quick-sql-help#comment-1266007</link>
    <description> &lt;p&gt;I don&#039;t really understand what you are asking? I need to check how many reviews each business has within that SQL query and then order them by the amount of reviews they have so,&lt;/p&gt;
&lt;p&gt;if business 1 has 3 reviews and business 2 has 1, then business 1 should be displayed 1st.&lt;/p&gt;
&lt;p&gt;I know this can be done easily with mysql_num_rows() but I need to do it on the fly within the SQL query if possible, unless someone can come up with another idea as to how it can be done.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Leon.&lt;/p&gt;
 </description>
     <pubDate>Wed, 15 Jun 2011 13:20:01 +0000</pubDate>
 <dc:creator>LRevillHendley</dc:creator>
 <guid isPermaLink="false">comment 1266007 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>did the table show the</title>
    <link>https://www.webmaster-forums.net/web-database-development/quick-sql-help#comment-1265999</link>
    <description> &lt;p&gt;did the table show the reviews of the business and order by amount? because, if the question want to check the reviews, it can be to see on the table..and the answer is on the table..&lt;/p&gt;
 </description>
     <pubDate>Wed, 15 Jun 2011 11:08:40 +0000</pubDate>
 <dc:creator>sara</dc:creator>
 <guid isPermaLink="false">comment 1265999 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
