473,811 Members | 2,843 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

One to Many Question

For lack of a better input method, I'm thinking of a form with many
input fields (i.e. 25) for users to enter equipment related
information. As I think about connecting and entering into a MySQL
database, 25 fields or so on one table seems like a lot so I am
thinking about breaking it up into categories. For example the
database name=equipment and tables for pumps, conveyors, shakers, and
'other'. Any thoughts on this folks? I could do the table name as
equipment_tbl for example with its 25 fields but am a little concerned
with how the physical size of this database *might* grow. Feedback is
appreciated. TIA
Nov 2 '05 #1
2 1306
cover wrote:
For lack of a better input method, I'm thinking of a form with many
input fields (i.e. 25) for users to enter equipment related
information. As I think about connecting and entering into a MySQL
database, 25 fields or so on one table seems like a lot so I am
thinking about breaking it up into categories. For example the
database name=equipment and tables for pumps, conveyors, shakers, and
'other'. Any thoughts on this folks? I could do the table name as
equipment_tbl for example with its 25 fields but am a little concerned
with how the physical size of this database *might* grow. Feedback is
appreciated. TIA


Personally, I wouldn't worry about 25 fields, it's not a lot. But bear
in mind future growth (maybe individual tables might be better) against
ease of extraction (multi-table joins for lots of tables).

Cheers,
Andy
Nov 2 '05 #2
Not too easy to advise you when all you say is that you have 25 (or so)
fields of equipment like pumps and shakers, but...

from what you have said, I would be looking at

table :equip
equip_uid
equip_type_uid
equip_info

table: type
type_uid type_name

You add a type (say 1,"Pump")

and you add an equip (say 1,1,"Sludge")

from that, you know that the equip record is about a pump ( because its
equip_type_uid = 1 and you can look that up in the type table and find
that type_uid of 1 has a description of "Pump"

Your problem with multiple fields is that if you ever need to search,
you have 25 fields to look in, not one. This way, it is easy to search
(SELECT * FROM equip WHERE equip_info LIKE '%sludge%') and the type
table makes it easy to create dropdown boxes, search by category (no
misspelt "pmup") and you will probably save space, and if you rename
"Pump" to "Liquid Transfer Engines" you only have to do it in one place
(likewise, if you have a Spanish site, you only need another table
"type_es" with 1,Bombe" and all the equipment has Spanish categories.

Ian

Nov 2 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
2147
by: kimi | last post by:
I have just started working on a project that is partially complete. It is an application that is using access to store test results. The test results are being stored in two Access 2000 databases. DB #1 = StudentDB DB #2 = TestResulstsDB Why are there 2 dbs? I do not know - but that is one of the tings that we will be changing. Combining all of the data into one database.
13
1186
by: Glen Jones MCSD | last post by:
All, I know the answer to this question, I just thought I would ask everyone else. Why don't more people respond to the questions? There is not way the 15 or so regular responders can answer the mounting number of questions.
2
1108
by: Frank | last post by:
Hi! I just run into a problem wich some of you might be able to solve really quickly so i decided to give this group a shot. In the database a have 2 tables (well, to make it easy here). 1) Question 2) Answer Each question has multiple answers attached to it. this means that
3
1115
by: Frank | last post by:
Hi! I just run into a problem wich some of you might be able to solve really quickly so i decided to give this group a shot. In the database a have 2 tables (well, to make it easy here). 1) Question 2) Answer Each question has multiple answers attached to it. this means that
4
2289
by: Jan Nielsen | last post by:
Hi all I'm a former Access developer who would like to implement a many-to-many relation in about the same way you do in Access: With a subform and a combo box. Is it possible to use a combobox in a datagrid? Any other suggestions/articles on how to implement many-many relations in the frontend (which of course are 2 one-many relations)?
0
9727
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10647
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10386
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10133
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9204
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7669
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5554
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3865
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.