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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:50:56+00:00 2026-06-14T22:50:56+00:00

First, I am a final year software engineering student. We are creating a KPI

  • 0

First, I am a final year software engineering student. We are creating a KPI software. In there, the inputs can be either CSV, txt, xml or excel. When user enter the file to the software, we have to dynamically create a table for that particular file, to store data.

I have created a “File Import Wizard” to import files. Now the problem is creating tables. Lets say following is the data file I received as .txt

Name,Age,Address
Shaun,22,NY
Milan,21,Dexel RD

Now in the wizard I have already identified the fields of the table (columns) are Name, Age, and Address. But when I create the table dynamically, do I have to let the user to set the data type of each and every field?

eg: Name - Text
    Age - Numbers
    Address - Text

But since we don’t know how many fields a table may have, this will be a very hard task.

what I have planned is to store all the data as ‘VarChar’. Because you know, String can be converted back to other data types easily (Numbers, date).

So when the user wants to display the data in Charts, we can get the data in table and convert them into required data types and do neccasary calculations.

What is your advice on this? Please help.

  • 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-06-14T22:50:57+00:00Added an answer on June 14, 2026 at 10:50 pm

    Your database is supposed to contain data – if your data will be treated like a string (entered like a string, displayed as a string, manipulated as a string) storing it as a string would be fine.

    On the other hand, if you will be treating your data a different way at some point (say you want to select from a calendar a date), it makes sense to convert your data before putting it in the database. In this case, if you don’t convert it now, you’ll be kicking the can down the road and it’ll cause more headache later.

    If you’re in the second situation, consider reading the file header (and perhaps first row) in, and providing them with applicable choices for each row (you could even pragmatically take a best guess). That way the user gets the final say as to what kind of data should be uploaded. Perhaps something like this:

    Name:   • String
            ◦ Number
            ◦ Date
    
    Age:    ◦ String
            • Number
            ◦ Date
    
    Address:• String
            ◦ Number
            ◦ Date
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First, I am a final year student. We are creating a KPI and we
So I am a first year computer science student, for on of my final
First, I will explain my situation. I am 22. Final year - BSc Software
first of all some details: I configured security as below in web.xml view plaincopy
I am currently in my final year at school, studying for a Higher National
My final year project requires me to develop a mobile application which fetches a
Let's consider the following code in Java. package obj; final class First { public
I'm on the final stretch of my first simple iPhone application. I'm building an
I have a two step process for producing final output. First I use the
Lets say I have two similar class: public class First { public static final

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.