1

i've been trying to rack my brain for this term but I just can't think of it. The description of it is as follows...

say I have a database in which a column is the day of the week and it contains plain text days of the week (ie Monday, Tuesday etc).

in order to make this column analyzable, I want to convert each day of the week to a number (so for all entries that have Monday it would change to 1, for those that are Tuesday it would change to 2 etc).

could anyone share some knowledge on what the term is I'm talking about?

Thanks alot.

cougs85
  • 13
  • 2

2 Answers2

3

creating a numbered list is called enumeration.

define enumeration:

http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=define+enumeration

and just for good measure (how it plays into set theory and combinatorics:

http://en.wikipedia.org/wiki/Enumeration

1

Yes, this seems like a good candidate for an enum(Enumerations )
Also we have a ENUM datatypes available for lot of database providers.

For ex :
MySQL does support ENUM and Oracle doesn't support ENUM at all.

you can get more information on this from this stack overflow post also.

Community
  • 1
  • 1
Sandeep Pathak
  • 10,567
  • 8
  • 45
  • 57