Where do I start in order to create a summary report for a questionnaire?

I am creating a summary report for an internal questionnaire took by branches of a company.
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
The two tables in use are:
SQL> describe answers;
Name Null? Type
ID NOT NULL NUMBER(38)
QUESTION_ID NOT NULL NUMBER(38)
LABEL NOT NULL VARCHAR2(150)
The 'answers' table contains the answers for each question.
SQL> describe user_answer;
Name Null? Type
ID NOT NULL NUMBER(38)
USER_ID NOT NULL NUMBER(38)
ANSWER_ID NUMBER(38)
ANSWERED_QUESTION_ID NUMBER(38)
DATE_ANSWERED DATE
The 'user_answer' table contains the selected answer(s), from the 'answers' table, by the user.
There are 150 questions total in the questionnaire made up of either single or mulitple choice questions. As a sample, the first three questions look similar to:
Q.1 Do you use BIS or BES? Yes[] No[]
Q.2 What is your favorite phone shell colors? Green{} Red{} Black{} Silver{}
Q.3 Do you plan to purchase a new phone today? Yes{} No{} Unknown{}
I need to find the total for each possible answer for all the users. For example, I have four individuals who take the questionnaire.
Alpha answers the first three questions as:
Q.1 - Yes
Q.2 - Green, Red
Q.3 - Unknown
Bravo answers the first three questions as:
Q.1 - Yes
Q.2 - Green, Red, Black
Q.3 - Yes
Charlie answers the first three questions as:
Q.1 - No
Q.2 - Green, Black
Q.3 - No
Delta answers the first three questions as:
Q.1 - No
Q.2 - Green, Red
Q.3 - No
Using the two tables above, I need to produce the following summary.
Q.1 Yes - 2, No - 2
Q.2 Green - 4, Red - 3, Black - 2, Silver - 0
Q.3 Yes - 1, No - 2, Unknown - 1
Reading through chapter 9 SQL Queries and Subqueries at http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries.htm#i2068094, I'm not for sure if this is the right place to start? I'm testing with the GROUP BY and ORDER BY statements with not a lot of luck here either.
Any suggestions on how to get started or possible examples would be greatly appreciated.
Thank you.

Thank you.
I will be sure to include the CREATE TABLE and INSERT statements in the future.
Your example is appreciated and I've came up with the following solution for the report:
WITH summary_results
          AS ( SELECT     answered_question_id, answer_id, COUNT ( * ) AS cnt
                         FROM     user_answer
                    WHERE          user_id = 43798
                                   OR user_id = 2371
                                   OR user_id = 1731
                                   OR user_id = 19935
               GROUP BY     answered_question_id, answer_id
               ORDER BY     answered_question_id, cnt DESC)
SELECT     sr.answered_question_id, sr.answer_id, sr.cnt, a.label
FROM     summary_results sr, answers a
WHERE     sr.answer_id = a.id;

Similar Messages

  • Creating custom summary reports

    Using a 360 feedback performance review template, I received over 300 responses with feedback on about 70 employees.  I would like to create a summary report for each employee that collates the information received from survey respondents.
    So, for example, if one person has 3 reviews, I want to collate into a report - one for each person that consolidates all the information & comments received.

    Hi,
    >>So, for example, if one person has 3 reviews, I want to collate into a report - one for each person that consolidates all the information & comments received.
    FormsCentral does not support customization of the summary report as you mentioned above.
    You could export the responses to say, Excel, and then use Excel to edit/rearrange your data and generate the graph/report.
    Thanks,
    Lucia

  • Our daughter just got an iPad Mini and I set it up for her, but I originally set it up under my apple id in order to create an apple id for her.  Is there any way for me to switch it to her account as the main user?

    Our daughter just got an iPad mini and I originally set it up under my Apple ID in order to create an Apple ID for her (she's under 13 so I set up iCloud family)... is there any way to switch the main user to her so that she can use iMessage and such under her own account?  When she uses iMessage it's my account.  I can't find a solution anywhere.  Thank you!!

    Hi Maudluna,
    I understand you would like to sign out your Apple ID from an iPad. You can do this easily by following the steps in the article below. I have also linked to an article about Family Sharing which can help you create and manage multiple accounts:
    iOS: Sign in with a different Apple ID in the iTunes Store, App Store, and iBooks Store - Apple Support
    Start or join a family group using Family Sharing - Apple Support
    Family Sharing makes it easy for up to six people in your family to share each other’s iTunes, iBooks, and App Store purchases without sharing accounts. Pay for family purchases with the same credit card and approve kids’ spending right from a parent’s device. And share photos, a family calendar, and more to help keep everyone connected.
    Thank you for contributing to Apple Support Communities.
    Take care,
    Bobby_D

  • Planned order is creating before planning bucket for a specific material.

    Planned order is creating before planning bucket for a specific material.
    Eg: Planning Bucket future: 12 months & Start date- 01/02/2012, but Planned order Availability/Requirement date is 12/23/2011.
    What causes this, how to fix it? Please suggest u2026
    Thanks
    Ravi

    Since your planning bucket start date is in the future, so this is normal that the system is trying to satisfy the demand in jan2012 bucket by creating a receipt on Dec23, 2011.
    Reasons for RECEIPT to be generated earlier is
    (1) There might be a FIRM HORIZON( SNP PROD HOR)
    OR
    (2) There might be a GR time and the system is considering that time
    In Customizing for Advanced Planning and Optimization -> Supply Chain Planning -> Supply Network Planning (SNP) -> Basic Settings -> Maintain Global SNP Settings, in the SNP:GR for Plnd Ords field, you have selected Processing Time.
    Blank out these times and see if it works, else do one of the following:
    (1) Set Period Factor(LOT SIZE TAB of PRODUCT MASTER) to 1, so that the receipts get created at the end of the bucket.
    OR
    (2) Create your demand at the end of the planning bucket period
    Thanks
    Kumar

  • How to create a daily report for sales order

    hi
    how to create a daily report for sales order. what fields it must consists of. what are the tables it need?

    Hi
    You have to use the sales order tables VBAK,VBAP and VBEP
    So keep date field on selection screen
    and treat this date as Order creation data audat field in VBAK.
    based on this fetch the data from VBAK and VBAP  with the following fields like
    VBELN, KUNNR,NETWR,POSNR, MATNR,ARKTX,KWMENG,WAERS  etc and display in the report
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Create an Activity Report for Current Week

    I would like to create a activity report for the current week. The trick is that if the weekday is Wednesday or earlier (Sunday being the first day of the week), the report shows last week's activities; but if the weekday is Thursday or later (Saturday being the last day of the week), the report shows the current weeks activities.
    I have a filter that works in Access but does not seem to work in Siebel. It does just what I explained above:
    Between CDate(Int((IIf(Weekday(Now())<=4,Now()-(6+Weekday(Now())),Now()-(Weekday(Now())-1))))) And CDate(Int((IIf(Weekday(Now())<=4,Now()-Weekday(Now()),Now()+(7-Weekday(Now()))))))
    Thank you,
    David
    Edited by: DavidE on Oct 7, 2008 4:17 PM

    David,
    try this:
    case DAYOFWEEK(CAST(Activity."Planned Start Time" AS date))when 1 then timestampadd(sql_tsi_day,1,CAST(Activity."Planned Start Time" AS date)) when 3 then timestampadd(sql_tsi_day,-1,CAST(Activity."Planned Start Time" AS date)) when 4 then timestampadd(sql_tsi_day,-2,CAST(Activity."Planned Start Time" AS date)) when 5 then timestampadd(sql_tsi_day,-3,CAST(Activity."Planned Start Time" AS date)) when 6 then timestampadd(sql_tsi_day,-4,CAST(Activity."Planned Start Time" AS date)) when 7 then timestampadd(sql_tsi_day,-5,CAST(Activity."Planned Start Time" AS date)) else CAST(Activity."Planned Start Time" AS date) end
    This gave me the sunday of the week. You should be able to modify this format for your purposes.
    cheers
    Alex

  • Creating a Crystal Report for B1 without parameters

    Hi Experts,
    My question is a simple one.
    I create a crystal report for SAP B1 8.8 Patch 10 using CR 2008 SP02.
    I have no parameters since its showing sales figures of the past month.
    But when I run the report in SAP, a selection criteria screen pops up without any fields.
    Just OK and Cancel.
    I dont want my users to have to click OK. I need the report to pop-up once the user click on the SAP Menu for the report.
    My report file has no parameters.
    Thanks for the help
    Denis

    Deinis,
    In your report, do you mean:
    - you have parameter created, but not used in the report? OR
    - there is no parameter field in the report at all?
    The reason I am asking is:
    If you have parameter fields, But, you did not use it in the report, I think when you run the report within SAP B1, it will still prompts for user to enter something.
    Also, if you are using subreport, make sure there is no parameter in the subreport, Although you do not use them.  Just delete the parameter field from the list if you are not using them.
    Edited by: Shwu Hua Gan on Jun 20, 2010 2:59 AM

  • Please help with creating a summary report from data collected in a fillable PDF form.

    I'm sure this has been asked before so I apologize in advance - I'm new to this forum and I'm not quite sure of which section I should be in. If I may just describe a certain scenario of something I am trying to create - could you please point me in the right direction?
    I'm looking to create a summary report/form to help me better organize my patients after each appointment. So data collected from other fillable forms I've created, will lead to the final page to print that will include selections from fillable text boxes or drop down lists, etc to basically summarize each encounter. It should go something like this:
    FORM 1:
    -pt chart #
    -pg age
    -purpose for visit
    -date of visit
    -diagnosis
    -prognosis
    -etc
    SUMMARY page
    On (-date of visit), patient (-pt chart #) arrived with complaint of (-purpose for visit)....
    The diagnosis was determined to be (-diagnosis), treatment to be performed is suggested to be (-treatment) with a (-prognosis) prognosis. Treatment was (accepted or not) and completed on... etc. etc... you get the idea
    Does anyone know how I can do this?
    Thank you all for your time and advice!

    I have downloaded Castor and got some good tutorials, but.......
    There is a problem, when I try to use the Marshaller to get an XML document the following error is reported:
    java.lang.NoClassDefFoundError: org/apache/xml/serialize/XMLSerializer
    I have scanned the Internet looking for a solution, some recommend including Xecers in the Classpath. I downloaded Xerces 2.7.1 and added it to as instructed but this did not work.
    Hope you can help

  • When we create any EVDRE report for any application getting an error

    Hi Experts,
    When we create any EVDRE report for any application getting an error                                                                               
    EVDRE encountered an error retrieving data from the web server.. We also                                                             
    tried creating EVDRE report on the APP SET/RATE application still getting the same error. All the cell base reporting are working. We are on the latest patch. the server and the client machine. 
    1) BPC Version : 7.0 MS (7.0.115.06)                                                                               
    2) SQ L Server 2005 SP3                                                                               
    3) Office 2007 with latest support packs                                                                               
    4) It is happening since the install                                                                               
    5) All users are getting the same error. Tried from two different PCs,                                                             
    same issue. also tried the Install (ADM id) and also the ids created. All                                                          
    ids are having this issue.                                                                               
    6) Single Server environment.      
    Please send reply as soon as possible.
    Regards,
    Arjun.

    Hi,
    There are many many SAP notes existing on the same subject.
    I would recommend you to go through them. You will potentially find the solution for your problem.
    Some examples of SAP notes: 1242648, 1395993, 1453433, 1439155, 1439100.
    Hope this will help.
    Best Regards,
    Patrick

  • How to Keep the spool created of a report for one month

    Hi ,
    How do we program to keep the spool created of a report for 1 month?
    I used SUBMIT TO SAP-SPOOL but it seems that its maximum retention is only 9 days...
    Please advice.
    Thanks!

    This would be a question for your basis administrator.
    Rob

  • Create a Formatted report for a single record

    I am trying to create a report for a single record in a document format instead of row and column format
    For example to list a custome information with list of orders.
    CustomerID ---------------------        Name ------------------------------------
    Address 1 ----------------------         Address 2 ------------------------------
    City --------------------------------        State -------------------------------------
    Zip ---------------------------------
    Order List
    Order 1            Qty          Total Cost
    Order 2            Qty          Total Cost
    We dont have crystal reports setup yet.  I am trying to use report designer...but it is not allowing me to do it.  It creates different group for each row in the query.   Can any one suggest how to do it using report designer or another way in BI 7.0 to create this kind of document.   I want to be able to print this document as pdf or other types.
    Any help is greatly appreciated..
    Thanks

    you can do this both in a formatted report or bex, depending on what kind of an outcome that you are looking for.
    basically, you are first going to present the data in a tabular format and then move the cells around, so the next time you execute the report (analyzer or report designer) it will stay in that format.
    if you are doing it in report designer, first create a query that pulls all required data points and gives them to you in an output as a table.  Then, add that query as a data provider for the formatted report, and you can create additional cells and move the key figures around.  Report designer is a little crude for formatting, but it works
    if you are doing this in BEx Analyzer, then you can do the same thing: create a query and then use the BExGetData formula to pull the required data into required cells
    if you are looking for HIGHLY formatted report (for example you want the output to come out on forms, etc), then you would need to use the Crystal Reports.
    Regardless of what you use for the presentation of the data, the data generation is controlled by the Query itself.  This is one of the tools that SAP is not planning to take away: all the future presentation options will use the query as the data source.
    good luck

  • How would I create a Summary Chart for the Current Year Using a Count by Month?

    Post Author: MarkS
    CA Forum: Charts and Graphs
    I have a data set of 3 date fields.  I would like to create a summary counting all of the occurrances of each of these dates per month, similar to using a SumProduct() command in excel.
    For example, my data is as follows:
    Registered Date  |    Application Date   |   Sale Date
    1/1/2007             |      2/1/2007            |     2/20/2007    
    1/10/2007           |      2/1/2007            |     3/20/2007
    2/20/2007           |      3/10/2007          |     3/20/2007
    I would like to summarize this information by month as follows:
                          |  Jan '07   |   Feb '07  |  Mar '07  |  TOTAL
    Registered      |      2        |   1           |    0         |   3
    Applications    |     0         |   2           |   1          |  3
    Sales             |     0         |   1            |  2            |  3
    TOTAL           |   2            |  4            |  3            | 9
    Is there any way to do this?

    Post Author: V361
    CA Forum: Charts and Graphs
    Yes, but it will require some effort. Group on "Sale Date"  Change the group to group by month.   You can then create a running total for "Registered Date","Application Date"," Sale Date"      For Registered date, I used Field to summarize Registered Date,  Type of summary was count, Evaluate use a formula, reset on change of group 1 (I only have one group, "Sale Date")  The formula will look like this.
    month ({Registered Date  }) in &#91;1,2,3,4,5,6,7,8,9,10,11,12&#93;
    You would build your other running totals (Counts) using the same methods,
    Once you have these, you should be able to create your chart.

  • Can we create a SAP report for all messages displayed inRWB

    Hi All,
    We are planning to create an SAP report (in XI or R/3) which will display the status of all the messages in the XI adapter engine. I wish to know if this is possible and if yes, then can someone throw some light on it.
    <b>Scenario:</b><u></u>
    Inbound XML messages are coming to XI from legacy system and finally are sent to R/3 from XI.
    In R/3 and XI we have SXMB_MONI or SXI_MONITOR to see the overall status of the message pipeline.  However if there are some adapter issues, the messages are stuck in the adapter and never get shown on SXI_MONITOR. Only way to see these messages is through RWB.
    So can we create a report in R/3 or XI which displays such messages stuck in RWB  .
    Appreciate your response on same.
    Thanks and regards
    RK

    alerts can be triggered for RWB errors also. So when it is triggered there will be an entry in tables related to alert. from there u can read and make use of it in a table. there are workaorunds which we need to explore. to read the text from sxmb_m,oni there are f/n mod aviable...not able to get one but can be found in debuggin

  • Transfer Order not created while performing GR for Production order

    Hi, I am facing a problem while recieving stock from a production order. The system does not create a transfer requirement or a TO.
    Let me give you a brief background.
    This is a new functionality introduced in ECC 6.0 for working with kanban in WM.
    Supply area is created for WM location.
    Control cycle is created for material, supply area. Warehouse, storage type and Bin is maintained in control cycle record. When the GR is done for production order material is recieved in this bin.
    1) Now when the Kanban is set empty a production order is automatically created.
    2) Once the production order is confirmed the material automatically shows up in the bin.
    A material document is created which shows IM movement type 101 and WM movement type 103. Also in material document Immediate auto TO checkmark is blank.
    3) *PROBLEM* - System does not create a TR or a TO. the material automatically shows up in the Bin. How can we enable an auto TR and TO creation.
    Following are the settings which I have already checked:
    1) In IMG, WM movement type 103 has auto TO indicator set.
    2) IM-WM interface for 102 movement type and 103 movement type is maintained.
    The main problem is: Although the material document displays WM movement type 103 and the stock lies in WM bin, System never created a Transfer requirement or a Transfer order.
    I would really appreciate if anyone can help me in this.
    Thanks

    Hi Mike,
    I do not know this function in SAP, so these are just my ideas:
    1.
    System does not create a TR or a TO. the material automatically shows up in the Bin.
    I think it's a normal SAP behaviour. If you do GR against a PO the quant(s) will appear in interim storage bin w/o TO. The TO is to move the quants from one bin to another, but in this case the quant comes from 'nothing' and arrives at the bin.
    If you make confirmation and consume the components refering to a PrdOrd, the components will disappear w/o TO from storage type 100 + dynamic bin, because there's no TO that could move them from dynamic bin to 'nothing'.
    So, these 'movements' are to change the WM stock level and TOs are not designed for this.
    2.
    There's difference between auto creation of TO and immediate TO creation. Please check what SAP help says in case of TOs for outbound deliveries:
    http://help.sap.com/saphelp_47x200/helpdata/en/c6/f8406c4afa11d182b90000e829fbfe/frameset.htm
    3.
    Now when the Kanban is set empty a production order is automatically created.
    So, if you remove the stock from the Kanban it triggers the creation of a PrdOrd. This is very logical in a Kanban system because it is a pull system. but your problem is not this, it's clear.
    If you just created an automatic TO and would remove the stock from Kanban-bin, a new PrdOrd would be generated, and so on. As many times you remove the stock a new PrdOrd is created and this might be the reason why no TO is crated automatically. In this case this would be a push system and not kanban system.
    I do not know this process but if we concentrate only on the pull system, maybe this Kanaban is to store the FG until an event (e.g. shipment) should trigger the stock removal from this bin. (just my assumption)
    Please try to mark the TR creation for the movement type w/o auto / immediate TO and tell us the result (whether you get the TR if you confirm the PrdOrd).
    Regards,
    Csaba

  • Looking for some help in creating dynamic rdlc report for Desktop Application

    Hello ,
     I currently have the syncfusion reportviewer running in my desktop application, now what I am looking to do is create a report where my users, can select and deselect what columns and Items they want to print out. Is there any way to do this ?
    Thanks
    David.

    Hi David,
    We can integrate Syncfusion with LightSwitch application, if you want to customize column when create a report using syncfusion reportviewer, since I didn't try this third party
    extension before, I think you could consider getting help from
    syncfusion forum, more syncfusion experts can help you on this issue.
    Thanks for your understanding.
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • How can I restore contact On My Mac?

    How can I restore contact On My Mac?  The account is listed under accounts but it seems there is nothing is in it. My Contacts window only shows iCloud  and Smart Groups.

  • What can i do about the camera crashing on zte firefox open

    The camera app performed o k for about two weeks but when icon pressed now the screen goes black / blank on pressing the camera image a message saying "camera just crashed" appears tried reset but to no avail, should i send it back or is there a solu

  • Best way to use iPod in the car?

    Is there any consensus on the best way to use your iPod in the car? I have used the Belkin Car Kit with the cassette tape for over a year with my 20GB iPod and I really like it. It keeps my iPod charged and the sound quality is really pretty good I t

  • How To Setup User Row Level Security In Answers From Values In Table

    I am trying to setup row level security when a user logs into BI Answers. Basically I want the user to create any report that they would like but only see the data that they are associated to being retrieved in the Answer Report results. I have users

  • Importing a class i made

    i have a silly question. let's say i've created a class called ClassOne.java and I want to create an instance of it in ClassTwo.java I've tried making a package and being able to access the first class but it keeps telling me that it cannot resolve s