Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MySQL++ - Programming with the C++ API to MySQL
MaxDB - Everything about MaxDB, formerly known as SAP DB
ODBC - ODBC with the MySQL Connector/ODBC driver
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
Update one field with more fields from another table
Getting Identity after INSERT
ERROR 2002: Can 't connect to local MySQL server through socket
mysql test 4 1 fails with the gis test
MySQL Cluster Software
Downgrade Mysql from 4 to 3 23
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Can 't access mysql after kernel upgrade
Executing MySQL Commands From Within C Program
Comparing and writing out BLOBS
Preventing Duplicate Entries
FULLTEXT query format question
Strange behavior, Table Level Permission
Does the binary log enabling affect the MySQL performances?
mysql:it 's a db not a dbms how it 's possible?!
mysql have same function mthod as Oracle decode()
 
-none-

-none-

2007-10-05       - By Daevid Vincent

 Back
A wise man once taught me, "organization is the key to success".  

Put all the data in the same table you have. 200k people is nothing for
mySQL to handle, and the cost of an extra JOIN is going to be a nightmare to
deal with all the time.

I thought I learned/read somewhere a long time ago that using 'NULL' values
was sub-optimal and should be avoided if possible. Perhaps that is dated
information now? I only use them when needing to know if a field has not
been set as apposed to set but with no value. So effectively a 'trinary'
state, rather than 'binary'.  If you have NULL, you know that field is not
set, but having a 0 (default) you don't know if the value is truly 'false'
or 'not set'.


> -- --Original Message-- --
> From: Afan Pasalic [mailto:afan@(protected)]
> Sent: Friday, October 05, 2007 8:42 AM
> To: mysql@(protected)
> Subject: do I need two tables or one will do just fine?
>
> hi,
> I have a employees table (first name, last_name, address,
> city, state,
> zip, phone,...).
> though, I got a requested to add additional info about people, like
> phone_extension, zip+4, nick, DOB... that will not be used very often.
> what would be better solution:
> a) add these columns to employees table
> b) create separate table employees_addition_info with these
> fields and
> store info if any (with employee_id of course)
>
> one friend of mine suggest me to keep all data in one table since the
> "empty" fields will be NULL and  there will not be a lot of wasted
> space. specially because I'll never have more than 200K
> records (right
> now I have about 50K records). and "normalization" will not
> improve a lot?
>
> any suggestions?
>
> thanks.
>
> -afan
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe:    
> http://lists.mysql.com/mysql?unsub=daevid@(protected)
>
>


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/mysql?unsub=mysql@(protected)