<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule">

<channel>
<title>Re: MySQL How to structure database? in Webmasters and Developers</title>
<link>http://www.dslreports.com/forum/r20432022</link>
<description></description>
<language>en</language>
<pubDate>Fri, 21 Nov 2008 11:31:43 EDT</pubDate>
<lastBuildDate>Fri, 21 Nov 2008 11:31:43 EDT</lastBuildDate>

<item>
<title>Re: MySQL How to structure database?</title>
<link>http://www.dslreports.com/forum/remark,20450926</link>
<description><![CDATA[<A HREF="/useremail/u/1516483"><b>Tenar</b></A> : <div class="bquote"><small>said by  jayco437 <A HREF="/useremail/u/449413"><IMG SRC="http://i.dslr.net/bb/profile.gif" ALT="See Profile" BORDER=0 WIDTH=16 HEIGHT=11></A> :</small><br><br>Interesting read.  I'd never heard of the phrase before, but certainly understand what they're talking about.  I like the taxonomy of the different "smells" there.  All very common problems (or, solutions? that create more problems)<br> </div>Yeah an interesting term, I've heard it used in a few blogs here and there.  probably related to "information scent" from the SEO world.  :D]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,20450926</guid>
<pubDate>Thu, 08 May 2008 11:09:51 EDT</pubDate>
</item>

<item>
<title>Re: MySQL How to structure database?</title>
<link>http://www.dslreports.com/forum/remark,20449782</link>
<description><![CDATA[<A HREF="/useremail/u/449413"><b>jayco437</b></A> : Interesting read.  I'd never heard of the phrase before, but certainly understand what they're talking about.  I like the taxonomy of the different "smells" there.  All very common problems (or, solutions? that create more problems)]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,20449782</guid>
<pubDate>Thu, 08 May 2008 02:32:06 EDT</pubDate>
</item>

<item>
<title>Re: MySQL How to structure database?</title>
<link>http://www.dslreports.com/forum/remark,20449108</link>
<description><![CDATA[<A HREF="/useremail/u/705861"><b>Jafo232</b></A> : I remember when I was in your predicament a few years ago.  I am going to tell you something that I wish I knew then:<br><br>When creating a unique ID column, such as "userid" make it an auto increment column.  It will save you hours of headache.<br><small>--<br><A HREF="http://www.worldwidecreations.com">Custom PHP/Perl Development.  Vbulletin And Wordpress Mods Too!</a></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,20449108</guid>
<pubDate>Wed, 07 May 2008 23:09:30 EDT</pubDate>
</item>

<item>
<title>Re: MySQL How to structure database?</title>
<link>http://www.dslreports.com/forum/remark,20448074</link>
<description><![CDATA[<A HREF="/useremail/u/359759"><b>Ray</b></A> : <div class="bquote"><small>said by  jayco437 <A HREF="/useremail/u/449413"><IMG SRC="http://i.dslr.net/bb/profile.gif" ALT="See Profile" BORDER=0 WIDTH=16 HEIGHT=11></A> :</small><br><br><div class="bquote"><small>said by  aSic <A HREF="/useremail/u/392620"><IMG SRC="http://i.dslr.net/bb/profile.gif" ALT="See Profile" BORDER=0 WIDTH=16 HEIGHT=11></A>  :</small><br><br>So should I create a (seemingly infinite amount of) table for each unique class (date), with rows that contain the name/address/etc data?  ...and just regularly drop the old tables (classes) as time passes?</div>No. No. No.<br><br>Create a table, CLASSES. Create a table USERS.  Use a "lookup" table, CLASSES_USERS to show which users are signed up for which class.  This would allow for users to sign up for multiple classes using the same information.<br><br>Couple other ways to do it, but creating tables for each class is a no-no.<br> </div>When your table names contain <i>data</i>, that's a <A HREF="http://en.wikipedia.org/wiki/Code_smell">code smell</a>. :)<br><small>--<br>ON DELETE CASCADE</small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,20448074</guid>
<pubDate>Wed, 07 May 2008 20:11:10 EDT</pubDate>
</item>

<item>
<title>Re: MySQL How to structure database?</title>
<link>http://www.dslreports.com/forum/remark,20447334</link>
<description><![CDATA[<A HREF="/useremail/u/629959"><b>marigolds</b></A> : One thing to keep in mind...<br>if you are going to go for the structure of classes and users (or students), you need a way for the users to be able to recall all of the information they already entered.<br>i.e. you will want users to create some form of login (remember to encrypt, remember to protect your queries from sql insertion).]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,20447334</guid>
<pubDate>Wed, 07 May 2008 17:39:52 EDT</pubDate>
</item>

<item>
<title>Re: MySQL How to structure database?</title>
<link>http://www.dslreports.com/forum/remark,20432022</link>
<description><![CDATA[<A HREF="/useremail/u/468775"><b>wapu</b></A> : SQL Server 2005 Express and the Management tool are good as well. Access does some things in it's own way so some of what you can do with it doesn't translate well to other DBs.<br><br>I would second the use of ERDs. You should have a solid design "On Paper" or "In Software" before creating the first table. If you have a good design, some software can use that design to create the DB for you. <br><small>--<br>We are all athiests about most of the gods that societies have ever believed in. Some of us just go one god further.<br>~Richard Dawkins</small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,20432022</guid>
<pubDate>Sun, 04 May 2008 22:07:18 EDT</pubDate>
</item>

<item>
<title>Re: MySQL How to structure database?</title>
<link>http://www.dslreports.com/forum/remark,20430461</link>
<description><![CDATA[<A HREF="/useremail/u/449413"><b>jayco437</b></A> : Also, if you have Microsoft Access don't be afraid to play with it.   It has all the tools you need to create relationships and print diagrams out.  You can run create tables, run queries, enforce integrity, etc.  I just wouldn't use it for Production.<br><br>You could also look at NeoOffice or OpenOffice.  They have a database program in there that might have some of the same functionality as Access (in regards to being able to create relationships by dragging and dropping).  Never used it much though....]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,20430461</guid>
<pubDate>Sun, 04 May 2008 15:13:15 EDT</pubDate>
</item>

<item>
<title>Re: MySQL How to structure database?</title>
<link>http://www.dslreports.com/forum/remark,20429763</link>
<description><![CDATA[<A HREF="/useremail/u/1516483"><b>Tenar</b></A> : May I also suggest looking up something on Entity Relationship models /  diagrams.<br><br>I found ER diagrams very useful when I was first leaning database structures.<br><br>It helped a lot to learn what the relationships were (1 to 1, 1 to many, many to many) and what tables I would need in order to create those relationships.<br><br>Here are some examples:<br>&raquo;<A HREF="http://www.utexas.edu/its/archive/windows/database/datamodeling/index.html" >www.utexas.edu/its/archive/windo&middot;&middot;&middot;dex.html</A><br>&raquo;<A HREF="http://www.cilco.co.uk/briefing-studies/acme-fashion-supplies-feasibility-study/slides/logical-data-structure.html" >www.cilco.co.uk/briefing-studies&middot;&middot;&middot;ure.html</A><br>&raquo;<A HREF="http://en.wikipedia.org/wiki/Entity-relationship_model" >en.wikipedia.org/wiki/Entity-rel&middot;&middot;&middot;ip_model</A>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,20429763</guid>
<pubDate>Sun, 04 May 2008 11:41:17 EDT</pubDate>
</item>

<item>
<title>Re: MySQL How to structure database?</title>
<link>http://www.dslreports.com/forum/remark,20428842</link>
<description><![CDATA[<A HREF="/useremail/u/449413"><b>jayco437</b></A> : No problem.  Its quite a common dilemma I think, until you get a firm grasp on creating relationships in databases.  I remember asking myself the same questions years ago.<br><br>I actually started with one of the O'Reilly books on Access databases that included some basic info on database modeling.<br><br>I've actually looked at this book at B&N, and thought it might be a good beginner book (haven't actually read the whole thing myself though) &raquo;<A HREF="http://www.headfirstlabs.com/books/hfsql/" >www.headfirstlabs.com/books/hfsql/</A><br><br>It's an O'Reilly book also.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,20428842</guid>
<pubDate>Sun, 04 May 2008 02:19:44 EDT</pubDate>
</item>

<item>
<title>Re: MySQL How to structure database?</title>
<link>http://www.dslreports.com/forum/remark,20427434</link>
<description><![CDATA[<A HREF="/useremail/u/392620"><b>aSic</b></A> : Just wanted to say thanks again.  This spurred a new round of looking at different tutorials, and now I've got the basic layout for signups, and the instructors viewing thing actually working, although very ugly and insecure at this point.  I knew there had to be a way to do it.  Thanks for the nudge in the right direction. :D<br><small>--<br>Teamwork is a lot of people doing what I say.<br><A HREF="http://tinyurl.com/22ey9l">Who is Ron Paul?</a></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,20427434</guid>
<pubDate>Sat, 03 May 2008 19:19:59 EDT</pubDate>
</item>

<item>
<title>Re: MySQL How to structure database?</title>
<link>http://www.dslreports.com/forum/remark,20426833</link>
<description><![CDATA[<A HREF="/useremail/u/392620"><b>aSic</b></A> : Thanks  jayco437 <A HREF="/useremail/u/449413"><IMG SRC="http://i.dslr.net/bb/profile.gif" ALT="See Profile" BORDER=0 WIDTH=16 HEIGHT=11></A>!  I knew there was something I was overlooking somewhere.  I knew the thought of tables for each class seemed crazy, but my head is hurting, and I couldnt clearly think of any other way.<br><br>Now I've got some more googling to do on how to properly implement this. :D<br><small>--<br>Teamwork is a lot of people doing what I say.<br><A HREF="http://tinyurl.com/22ey9l">Who is Ron Paul?</a></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,20426833</guid>
<pubDate>Sat, 03 May 2008 16:55:21 EDT</pubDate>
</item>

<item>
<title>Re: MySQL How to structure database?</title>
<link>http://www.dslreports.com/forum/remark,20426822</link>
<description><![CDATA[<A HREF="/useremail/u/449413"><b>jayco437</b></A> : <div class="bquote"><small>said by  aSic <A HREF="/useremail/u/392620"><IMG SRC="http://i.dslr.net/bb/profile.gif" ALT="See Profile" BORDER=0 WIDTH=16 HEIGHT=11></A> :</small><br><br>So should I create a (seemingly infinite amount of) table for each unique class (date), with rows that contain the name/address/etc data?  ...and just regularly drop the old tables (classes) as time passes?</div>No. No. No.<br><br>Create a table, CLASSES. Create a table USERS.  Use a "lookup" table, CLASSES_USERS to show which users are signed up for which class.  This would allow for users to sign up for multiple classes using the same information.<br><br>Couple other ways to do it, but creating tables for each class is a no-no.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,20426822</guid>
<pubDate>Sat, 03 May 2008 16:52:47 EDT</pubDate>
</item>

<item>
<title>MySQL How to structure database?</title>
<link>http://www.dslreports.com/forum/remark,20426796</link>
<description><![CDATA[<A HREF="/useremail/u/392620"><b>aSic</b></A> : Alright, stupid question time.  I'm a complete DB newbie, and I've dove headfirst into maintaining a site on which I'd like to incorporate some php/mysql stuff.  If I could get some handholding here, I would appreciate it.  I learn best by working examples.  I already know I'm trying to doggie paddle in the deep end... please be gentle. :D<br><br>Right at this point, I'm confused on how to structure my db.<br><br>I'm attempting to create an activity sign up deal... structured as each unique class (date) contains the names/addresses/phone/etc of all who wish to sign up for it.  Basically, a sign up form, where you input name/address/etc, and select from checkboxes/multiple comboboxes the class(es) offered that you'd like to attend.  I'm wanting to put this into a mysql database, based on the future thought/ability for the instructor to grab their expected attendees by another form that queries the db from elsewhere... but thats later.<br><br>So should I create a (seemingly infinite amount of) table for each unique class (date), with rows that contain the name/address/etc data?  ...and just regularly drop the old tables (classes) as time passes?<br><br>Or, am I just over thinking all this?  Is there an easy way?  My head is about to explode from all the code snippets and tutorials I've been reading in the last 4 hours.  :o<br><small>--<br>Teamwork is a lot of people doing what I say.<br><A HREF="http://tinyurl.com/22ey9l">Who is Ron Paul?</a></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/remark,20426796</guid>
<pubDate>Sat, 03 May 2008 16:44:44 EDT</pubDate>
</item>

</channel>
</rss>
