Advertisement

10.09.2008 at 07:36AM PDT, ID: 23800992 | Points: 500
[x]
Attachment Details

Sql Query for Questionaire Data

Asked by MayoorPatel in MS SQL Server, SQL Server 2005

Tags:

I have a questionaire which has 30 questions, each question has a multiple choice answer and the database records this as 1,2,3, or 4

I would like an SQL Query which tells me which answer was most popular for each question so the result set should give 2 columns "Question Number" and "Most Popular Answer"

I have attatched a screenshot to show how the data is recorded in the database. If you can help me with this query that would be great!Start Free Trial
Attachments:
 
Screenshot of db
Screenshot of db
 
 
Keywords: Sql Query for Questionaire Data
 
Loading Advertisement...
 
[+][-]10.09.2008 at 07:42AM PDT, ID: 22678856

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.10.2008 at 01:25AM PDT, ID: 22685094

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628