Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6385611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:55:17+00:00 2026-05-25T02:55:17+00:00

I have a (dummy) table structure as follows: ticket id : int(11) PK name

  • 0

I have a (dummy) table structure as follows:

ticket
  id: int(11) PK
  name: varchar(255)
  status: ?????????

The question is, what data type should I use for status? Here are my options, as I see them:

  1. varchar representing the status – BAD because there’s no integrity
  2. enum representing the status – BAD because to change the value, I’d have to alter the table, and then any code with dropdowns for the values, etc etc etc
  3. int FK to a status table – GOOD because it’s dynamic, BAD because it’s harder to inspect by sight (which may be useful)
  4. varchar FK to a status table – GOOD because it’s dynamic, and visible on inspection. BAD because the keys are meaningful, which is generally frowned upon. Interestingly, in this case it’s entirely possible for the status table to have just 1 column, making it a glorified enum

Have I got an accurate read of the situation? Is having a meaningful key really that bad? Because while it does give me goosebumps, I don’t have any reason for it doing so…

Update:
For option 4, the proposed structure would be status: char(4) FK, to a status table. So,

OPEN => “Open”

CLOS => “Closed”

“PEND” => “Pending Authorization”

“PROG” => “In Progress

What’s the disadvantage in this case ? The only benefit I can see of using int over char in this case is slight performance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:55:18+00:00Added an answer on May 25, 2026 at 2:55 am

    Go with number 3. Create a view that join’s in the status value if you want something inspectable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Following dummy table with data: ACID srno date(mm/dd/yyyy) name 3 1 04/12/2010
From my experience I have learn that using an surrogate INT data type column
I have a MySQL table which I want to populate with some dummy data
I have a table with a column of data type bit . > CREATE
I have a table with three fields, FirstName, LastName and Email. Here's some dummy
Image Dummy = Image.FromFile(image.png); Dummy.Save(image.bmp, ImageFormat.Bmp); what the question says i have these using
I have 3 tables similar to the sctructure below CREATE TABLE [dbo].[EmpBasic]( [EmpID] [int]
Let's say i have a simple table voting with columns id(primaryKey),token(int),candidate(int),rank(int). I want to
I have this table in a postgres 8.4 database: CREATE TABLE public.dummy ( address_id
I have a table like : trans is the name of the table for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.