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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:42:01+00:00 2026-06-09T21:42:01+00:00

I need to develop a simple database application. A table to store a patient

  • 0

I need to develop a simple database application. A table to store a patient social history answering following question,

Do you smoke? If yes, how many cigarettes per day?__How many years?_
Do you drink alcohol?
__ If yes, how many alcoholic beverages per week?_
Do you use drugs?_If yes, what kind?____How often?______
etc.
I can have table column for every answer. As there are if then else conditionals, I would like to know, what will be the best way to design table for this type of scenario.

Any kind of help is much appreciated.

  • 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-09T21:42:03+00:00Added an answer on June 9, 2026 at 9:42 pm

    The thing you want to do here is try and generalize the kind of questions you’re asking. What stands out for me is that you’re asking questions about habits, or a kind of repetitive behavior.

    Abstract out your question: What kind of habit is it (Smoking? Drinking? Drug 1, Drug 2, Drug 3)? How frequently do you indulge this habit? Do you do it daily, weekly, monthly, yearly ? If you do it daily, how many times a day? How many times a week/month/year?

    This means you can have a table describing generic ‘habits’, where each row represents a patient’s answers regarding a specific habit, and each column represents a specific piece of data that the patient has answered.

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

Sidebar

Related Questions

Sometimes I need to develop a simple database application using MS Access Databases. I`ve
I am trying to develop a simple database application, I wish to use RMI
I need to develop a simple form (intended only for printing) to be filled
So, I recently took a job where I need to develop a fairly simple
I need some help! Please. I am trying to develop a very very simple
I need to develop an application on Android platform that enables a client to
I need to develop a classic asp application on vista, and would like to
I need to develop some sort of application featuring Editing Movie slices, Adding and
I'm planning to develop my own simple and elegant web application framework in C#
I have an architectural question, we need to develop information system with two frontends:

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.