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 588643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:20:24+00:00 2026-05-13T15:20:24+00:00

Disclaimer: I’m an SQL newb, just discovering the great possibilities of sqlite embedded in

  • 0

Disclaimer: I’m an SQL newb, just discovering the great possibilities of sqlite embedded in applications.

I’m designing a small database for an application that primarily handles data storage for plotting. Say I have several instrument data tables (one for each type of instrument) with a column for each data field, such as pressure, temperature, humidity, etc. I would like to join these data tables, pull out the column names, and assign a more human-readable column “description” made available to the user for selecting the independent/dependent variables for plotting. Getting the column names in sqlite is easy enough, but I’m not sure if I should store the resulting names (and longer descriptions) as another table in the db or in a list of some sort in the application. If it were another table in the db, I think I would have to store the column name as a string… unless there is some way to reference a column in SQL? I’m not sure if there is a foreign key equivalent for columns, or if this is just a sign of bad database design needing restructuring.

Thanks for any suggestions, stack overflowers.

  • 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-13T15:20:24+00:00Added an answer on May 13, 2026 at 3:20 pm

    There are ways to do introspection in SQL and pull out table and column names, but you probably don’t want to do it that way, and the implementation details of that are highly dependent on your particular RDBMS.

    Since the human-readable column name is a display detail, and likely a static value, keep it out of the database and somewhere in the display/rendering portion of your app. (There are exceptions to this, such as if you want the column name to be customizable per-user.) You can keep a hash or dictionary which defines a human-friendly name and uses the actual database column name as its key. This setup can be handy for saving other settings for the display of the column, such as datatype, precision to display (if a number), etc.

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

Sidebar

Related Questions

Disclaimer : I'm new to web development. Scenario : I've built an application using
Disclaimer: I'm not actually trying to make one I'm just curious as to how
[Disclaimer: I am new to PHP, and I am just learning, so please no
Disclaimer: please do not bother reading this long post unless you are an embedded
Disclaimer: I'm very new to SQL and databases in general. I need to create
Disclaimer: I just started with databases, so I'm probably missing something extremely trivial. I
[Disclaimer: my knowledge of sockets is very rusty, and I'm just getting into R,
Disclaimer: I'm not a programmer, never was, never learned algorithms, CS, etc. Just have
(Disclaimer: I'm a beginner in mobile application development and I'm quite weak with programming
[Disclaimer]: Currently we are running older SQL Server 2000, but we could update to

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.