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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:00:30+00:00 2026-05-17T20:00:30+00:00

In the survey, there is a type of question called Matrix which it’s like

  • 0

In the survey, there is a type of question called Matrix which it’s like this:

          | Is Friendly | Weather | Comments
===========================================
Sydney    | Y           | 5       | 'bla'
-------------------------------------------
Singapore | Y           | 10      | 'test'
-------------------------------------------
Jakarta   | N           | 0       | 'test2
-------------------------------------------

Try to get a feedback in term of designing SQL table for question and answer. I could have a design that you can only have 3 label sets (Is Friendly, Weather, Comment) or maybe extended to 10 to be save which means I have 10 columns.

What do you think about this approach, I know this is not relation database in such but at least from query point of view for answer to pull out.

Your thought?

  • 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-17T20:00:31+00:00Added an answer on May 17, 2026 at 8:00 pm

    In Sql Server you can make use of PIVOT.

    This will allow you to design the table differently.

    You would then have a table with columns

    • EntryType (eg. IsFriendly, Weather, Comment)
    • City_Region (eg. Sydney, Singapore, Jakarta)
    • EntryValue (eg. Y, 5, bla)

    This will basically give you the functionality to have “dynamic” columns.

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

Sidebar

Related Questions

Have a Django / MySQL set up. There's a model, Survey, which currently looks
I want to make survey app in which i get question from server problem
I have a basic quiz/survey type application I'm working on, and I'd like to
I have a survey on a website, and there seems to be some issues
I need to survey a textField's value every time it's changed. To handle this,
So I have this survey that I am pulling results from and I have
Just wondering if anyone out there knows of a standard survey (preferably based off
I have a survey type form, and in a number of the questions, the
Are there any surveys anywhere which report on number of projects and/or people using
Crockford writes in http://javascript.crockford.com/survey.html : There are two ways to make a new array:

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.