473,396 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Enumerator vs. Stand Alone Table

-b
I have a STATUS table consisting of a uid and description, that looks
like this:

1 Accept
2 Accept with corrections
3 Reject
I have a CHOICE table which referrs to the uid of the STATUS table, in
one of it's columns.
Would it be better to just have these values appear in an enumerated
value in the CHOICE table, instead of referring to the STATUS table?

Thank you,
-docuswear
Jul 20 '05 #1
2 1794
-b wrote:
Would it be better to just have these values appear in an enumerated
value in the CHOICE table, instead of referring to the STATUS table?


I don't think so. Every time I've tried to use an enumeration for
anything other than True/False, the business processes for the
application change, and I have to change the values to the enumeration.

It seems cleaner to insert another record to your STATUS table than to
have to restructure the enum datatype for a column in your CHOICE table.

Regards,
Bill K.
Jul 20 '05 #2
sks

"-b" <do*******@yahoo.com> wrote in message
news:4c*************************@posting.google.co m...
I have a STATUS table consisting of a uid and description, that looks
like this:

1 Accept
2 Accept with corrections
3 Reject
I have a CHOICE table which referrs to the uid of the STATUS table, in
one of it's columns.


I just define this inside the app. If you're using Java then define three
constants, public static final int ACCEPT = 1, etc. If you want more info,
make them proper classes. If you're in PHP then again just use constants.
Then inside your db just have a simple int column (or tiny int or whatever).
Jul 20 '05 #3

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

Similar topics

9
by: none | last post by:
Howdy all, I'm wondering if someone could give some direction on a problem I have or share their experiences. I'm wanting to create a little PHP application that will run on a local machine...
121
by: David Pendrey | last post by:
I was wondering if it is at all posible to write a stand alone .EXE program in Visual Studio .NET. Hopefully in VB.NET but if not another language would be ok. Thanks for the assistance
2
by: William Bradley | last post by:
First of all thank you to all those who have helped me in the past, as I have stumbled along with MS Access 97. My question this time is more of a general one in nature. It seems obvious to me...
3
by: Todd D. Levy | last post by:
What do I need to get (from Microsoft I assume) in order to distribute stand alone Access applications to people who do not (and will not) have Access installed on their systems? I have heard...
7
by: Ulrich Wisser | last post by:
Hi, I would like to stop the postmaster every night and run vacuum pg_dump reindex in the stand alone backend.
2
by: jim-on-linux | last post by:
py help, The file below will run as a stand alone file. It works fine as it is. But, when I call it from another module it locks my computer, The off switch is the only salvation. This...
10
by: discobay | last post by:
Is there a way to create a stand alone .exe from VB2005, that does not depend upon the .NET framework being installed on the target machine? I have followed previous threads on this subject and...
11
by: pg | last post by:
My old HD crashes, so I had to do a total re-install. After installer XP, I went to the Micrsoft Update site to get all the update. After 5 hours or so ... the update cycle started looping. ...
3
by: newsaboutgod | last post by:
I need a stand alone database for a VB.Net application on a laptop. It will have about 15,000 records in it. Frst off, if there any way to load XML in to a dataset and then run SQL against it?...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...

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.