<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1024118" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1024118</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/questionon-joins#comment-1147875</link>
    <description> &lt;p&gt;Yes.  If you move the username&#039;s to another table, you can remove the original field after you update all your SQL to use the new table.&lt;/p&gt;
&lt;p&gt;Also note, if any two tables in a join query contain fields with the same name, you will need to use table.field syntax for that field.&lt;/p&gt;
&lt;p&gt;m3rajk, I&#039;ll make a new thread about my situation.  But basically, I&#039;ve changed careers and I&#039;ve lost a lot of free time.&lt;/p&gt;
 </description>
     <pubDate>Sat, 20 Mar 2004 01:38:28 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1147875 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/questionon-joins#comment-1147871</link>
    <description> &lt;p&gt;i wonder where mark is. the thread&#039;s been here for over 24 hours i think without a responsse from him. i&#039;ve been to about a dozen sites. no one seems to be better than him with db answers. in the past the response time varied from me lucking out and being here when he&#039;s here to getting a response sometime the next day.&lt;/p&gt;
&lt;p&gt;i&#039;ve only seen one borads owner that&#039;s more involved than mark. it&#039;s a windows os issue board and the owner is there answering everything new every few hours (i swear he must have found a way to get paid for it). my guess is that whatever mark does for a job has him bogged down lately. i know i&#039;ve ben working 50+ hour weeks due to people being on vacation lately. at least i&#039;m hourly i guess...&lt;/p&gt;
 </description>
     <pubDate>Sat, 20 Mar 2004 00:49:50 +0000</pubDate>
 <dc:creator>m3rajk</dc:creator>
 <guid isPermaLink="false">comment 1147871 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/questionon-joins#comment-1147870</link>
    <description> &lt;p&gt;ok. here&#039;s an example. how i call the top users....&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gen&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;===&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;women&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;){&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$selopts&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&amp;lt;option value=\&quot;all\&quot;&amp;gt;Men &amp;amp; Women&amp;lt;/option&amp;gt;&amp;lt;option value=\&quot;women\&quot; selected=\\&quot;selected\\&quot;&amp;gt;Ladies&amp;lt;/option&amp;gt;&amp;lt;option value=\&quot;men\&quot;&amp;gt;Men&amp;lt;/option&amp;gt;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$findtops&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mysql_query&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;SELECT memname,score,gender FROM tops WHERE gender=&#039;F&#039; ORDER BY score DESC\&quot;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$db&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;); # get women by score&lt;br /&gt;}elseif(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$gen&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;===&#039;men&#039;){&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$selopts&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&#039;&amp;lt;option value=\&quot;all\&quot;&amp;gt;Men &amp;amp; Women&amp;lt;/option&amp;gt;&amp;lt;option value=\&quot;women\&quot;&amp;gt;Ladies&amp;lt;/option&amp;gt;&amp;lt;option value=\&quot;men\&quot; selected=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;selected&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;gt;Men&amp;lt;/option&amp;gt;&#039;;&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$findtops&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=mysql_query(\&quot;SELECT memname,score,gender FROM tops WHERE gender=&#039;M&#039; ORDER BY score DESC\&quot;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$db&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;); # get men by score&lt;br /&gt;}else{&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$selopts&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&#039;&amp;lt;option value=\&quot;all\&quot; selected=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;selected&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;gt;Men &amp;amp; Women&amp;lt;/option&amp;gt;&amp;lt;option value=\&quot;women\&quot;&amp;gt;Ladies&amp;lt;/option&amp;gt;&amp;lt;option value=\&quot;men\&quot;&amp;gt;Men&amp;lt;/option&amp;gt;&#039;;&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$findtops&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=mysql_query(&#039;SELECT memname,score,gender FROM tops ORDER BY score DESC&#039;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$db&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;); # get people by joining date&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;to change these to use the username feild of the users table (the main table) it would be:&lt;br /&gt;
$findtops=mysql_query(&quot;SELECT username,score,gender FROM tops INNER JOIN users ON tops.memuid=users.uid WHERE gender=&#039;F&#039; ORDER BY score DESC&quot;, $db);&lt;br /&gt;
or:&lt;br /&gt;
$findtops=mysql_query(&quot;SELECT username,score,gender FROM tops INNER JOIN users ON tops.memuid=users.uid WHERE gender=&#039;M&#039; ORDER BY score DESC&quot;, $db);&lt;br /&gt;
or:&lt;br /&gt;
$findtops=mysql_query(&#039;SELECT username,score,gender FROM tops INNER JOIN users ON tops.memuid=users.uid ORDER BY score DESC&#039;, $db);&lt;br /&gt;
respectively. and then i can go and remove the memname feild from tops, thus eliminating a redundancy?&lt;/p&gt;
 </description>
     <pubDate>Sat, 20 Mar 2004 00:46:03 +0000</pubDate>
 <dc:creator>m3rajk</dc:creator>
 <guid isPermaLink="false">comment 1147870 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/questionon-joins#comment-1147867</link>
    <description> &lt;p&gt;oh.. yeah that might be tough lol&lt;/p&gt;
 </description>
     <pubDate>Fri, 19 Mar 2004 23:45:30 +0000</pubDate>
 <dc:creator>forwardtrends</dc:creator>
 <guid isPermaLink="false">comment 1147867 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/questionon-joins#comment-1147865</link>
    <description> &lt;p&gt;only issue with that-- i&#039;m using mysql and php&lt;/p&gt;
 </description>
     <pubDate>Fri, 19 Mar 2004 23:34:25 +0000</pubDate>
 <dc:creator>m3rajk</dc:creator>
 <guid isPermaLink="false">comment 1147865 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/questionon-joins#comment-1147853</link>
    <description> &lt;p&gt;yes you should be able to implement it easily.. an easy way of validating your SQL strings (at least what I do) - is connent to your database via Access (ODBC connections) - then you can use the query designer to visually create your query, convert to SQL mode and theres your code (basically) &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 19 Mar 2004 20:25:41 +0000</pubDate>
 <dc:creator>forwardtrends</dc:creator>
 <guid isPermaLink="false">comment 1147853 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/questionon-joins#comment-1147852</link>
    <description> &lt;p&gt;yes! i beleive that&#039;s what i was seeking. the correct format. i&#039;ve seen a variety of examples, all specifiying left and right inner and outer and it had me unsure of what was going on. i wanted to know that i can have an archetype (such as what you provided) that would work.&lt;/p&gt;
&lt;p&gt;now i can stremaline the db and modify the scripts so everything is more efficient.. maybe give users the ability to change hteir usernames....&lt;/p&gt;
 </description>
     <pubDate>Fri, 19 Mar 2004 19:59:19 +0000</pubDate>
 <dc:creator>m3rajk</dc:creator>
 <guid isPermaLink="false">comment 1147852 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/questionon-joins#comment-1147793</link>
    <description> &lt;p&gt;This is the basic format I&#039;d use.. if I&#039;m right you don&#039;t &lt;em&gt;need&lt;/em&gt; to create a new table with this join, you just need to pull info from two.. &lt;/p&gt;
&lt;p&gt;SELECT field1, field2, field3&lt;br /&gt;
FROM first_table&lt;br /&gt;
INNER JOIN second_table&lt;br /&gt;
ON first_table.keyfield = second_table.foreign_keyfield&lt;/p&gt;
&lt;p&gt;Is this what you needed?&lt;/p&gt;
 </description>
     <pubDate>Fri, 19 Mar 2004 02:18:25 +0000</pubDate>
 <dc:creator>forwardtrends</dc:creator>
 <guid isPermaLink="false">comment 1147793 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
