June 6, 201313 yr Hi, I guess this is really a 'database fundamentals' question - as opposed to web design one. I'm planning a very simple members database which will have the usual fields for name, number, email, etc. It will also have fields for 'town' and 'business type', these two will be relevant when it comes to interrogating the database. an example of a record will be bob's car parts.... tel: 01234567... email@email.com.... 'LONDON'.... 'MOTORS' The purpose of the database will be to be able to pull out, for e.g. all the 'motors' business in 'London'. Or, all the 'coffee shop' business in 'Leeds'. My question is... should I use just the one table for the members details? or should I create two additional tables - one for 'business types' (there will probably be around 6 of these), and another for 'towns' (around 10 of these'. I've been around databases for 2 decades and have still never grasped the 'clearly' very basic principle of when to use tables. Cheers guys - be kind! lol
June 10, 201313 yr Author Hi Web guru - thanks for replying.... I know..... I've somehow managed to avoid creating a database for over 2 decades... but alas.... hey, I've had a good innings I guess! Yes - some of the businesses will be linked to more than one business category. Cheers Neil
June 10, 201313 yr You need the following tables: Main table for members Input table for business Input table for locations Mapping table between business and member The last one will take care that one member can have more than one business assigned. However for performance reason you may consider cutting back the number of tables. If the database grows too big perfect normalization is no longer a benefit. But to know where is the border is not an exact science...
Create an account or sign in to comment