<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1040415" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1040415</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Thanx for all you guys for</title>
    <link>https://www.webmaster-forums.net/web-database-development/how-automate-table-names#comment-1227736</link>
    <description> &lt;p&gt;Thanx for all you guys for this nice discussion&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.greymatterindia.com/&quot;&gt;GMI: Web application  Development India&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 05 Jan 2008 06:21:46 +0000</pubDate>
 <dc:creator>pankaj.sharma</dc:creator>
 <guid isPermaLink="false">comment 1227736 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/how-automate-table-names#comment-1227516</link>
    <description> &lt;p&gt;Ok, thanks, that makes sense. Then it would follow that they would then be sequentially numbered, as they are added-which would solve my dilemma. &lt;/p&gt;
&lt;p&gt;I just like the fact that I can look at the table names in my database admin and know that is the category or subcategory I am dealing with-it&#039;s already very frusterating that they have been organizing the information as they go along...and I&#039;ve had to tweak it as I go along...but I took on the project, so gotta just deal with it!&lt;/p&gt;
&lt;p&gt;Thanks again! Much appreciated!&lt;/p&gt;
 </description>
     <pubDate>Wed, 19 Dec 2007 22:24:19 +0000</pubDate>
 <dc:creator>L3ZL1E</dc:creator>
 <guid isPermaLink="false">comment 1227516 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/how-automate-table-names#comment-1227514</link>
    <description> &lt;p&gt;Basically, you&#039;re asking for a many-to-many relationship.  Each item can have multiple categories, and each category can have multiple items.  In databases, that it not possible without using an associative table.  This is a table in between the products and category tables.&lt;/p&gt;
&lt;p&gt;For example, you need a table that holds the category id and the item id.  There will be an entry in this table for each item-category relationship.  If you have the item with the id &#039;354&#039;, and a category with the id &#039;546&#039;, and they are associated with each other, then you enter a record in the associative table with both these ids.  If this item is also part of category &#039;547&#039;, then you put another record in the associative table for that as well.&lt;/p&gt;
&lt;p&gt;If this associative table has the name &quot;Item_Cat&quot;, and you want to find all the items in category 546, then you write a query like&lt;/p&gt;
&lt;p&gt;&lt;code&gt;SELECT * FROM Item_Cat WHERE category_id = &amp;#039;546&amp;#039;;&lt;/code&gt;&#039;&lt;/p&gt;
&lt;p&gt;You can easily join that with your items (table name: &quot;Items&quot;) table by doing something like this:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;SELECT * FROM Item_Cat INNER JOIN Items ON Item_Cat.item_id = Items.item_id WHERE Item_Cat.category_id = &amp;#039;546&amp;#039;;&lt;/code&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Wed, 19 Dec 2007 22:04:00 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1227514 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/how-automate-table-names#comment-1227513</link>
    <description> &lt;p&gt;There is one product table, with the basic product information in it, but the products can exist in more than one category/subcategory, therefore i made tables with product numbers to associate them with categories and subcategories because I really didn&#039;t know how many columns I would need if I went that route (they are organizing the information as I make the site). Seemed to be the most logical solution at the time. Maybe it was a bad idea???&lt;/p&gt;
 </description>
     <pubDate>Wed, 19 Dec 2007 20:36:30 +0000</pubDate>
 <dc:creator>L3ZL1E</dc:creator>
 <guid isPermaLink="false">comment 1227513 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/how-automate-table-names#comment-1227479</link>
    <description> &lt;p&gt;Creating one table per category doesn&#039;t seem necessary.  What is this site for?&lt;/p&gt;
 </description>
     <pubDate>Wed, 19 Dec 2007 01:58:44 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1227479 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
