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

  • Home
  • SEARCH
  • 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 9277423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T17:06:18+00:00 2026-06-18T17:06:18+00:00

I got a requirement where the user enters test data I have fields: example

  • 0

I got a requirement where the user enters test data
I have fields:

example

 Blood   Pulse 
 ----    -----
 12      13

There is requirement to add another another field we don’t know what the test will be for.
I was thinking about have a field called Misc1Label, Misc1Value

Say if Misc1Label is Oral and Misc1Value is 88

Later I can use Pivot if we need to capture value of Misc1Label and use Pivot so that I can have something like

 Blood  Pulse  Oral
 -----  ----   ----
   12    13     88

I was thinking if there is any other best practice of handling this.

Thanks in advance

  • 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-18T17:06:19+00:00Added an answer on June 18, 2026 at 5:06 pm

    Do you really need to keep Blood and Pulse as separate fields? You could consider Blood and Pulse as different Attributes as well. Sounds like something like this would work and make it easy to query against without having to use a PIVOT command.

    PersonAttribute
        PersonId int (I'm only presuming here)
        AttributeId int
    
    Attribute
        AttributeId int
        AttributeTypeId int
        AttibuteValue varchar(100)
    
    AttributeType
        AttributeTypeId int
        AttributeType varchar(100)
    

    You could then store Blood, Pulse, Weight, etc. in your AttributeType table and use the PersonAttribute table as a 1-N approach with your main table. Just a thought.

    SELECT Distinct PA.PersonId
    FROM PersonAttribute PA
       INNER JOIN Attribute A ON PA.AttributeId = A.AttributeId 
       INNER JOIN AttributeType AT ON A.AttributeTypeId = AT.AttributeTypeId 
    WHERE AT.AttributeType = 'Blood'
    

    Of course the same model could be applied leaving Blood and Pulse in your main table if desired.

    Good luck.

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

Sidebar

Related Questions

I've got a requirement where a user enters a few terms into a search
I've got a requirement such that, when a user logs in while completing a
I got the requirement like, In a page there will be 4 panels which
I have got the requirement to find the core file in multiple box/machine and
I have an existing application (with MySQL DB). I just got a new requirement
I've got a requirement to build a form. The user would like to complete
Requirement: Allow user to enter date in the format of ###### while also have
I've got a requirement to hold a DateTime value in a SharePoint field but
I have a requirement to produce a list of possible duplicates before a user
I have got a requirement from a client. They need three blogging web application

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.