<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    分享java帶來的快樂

    我喜歡java新東西

    查詢問題的回答正確率


    select x.mytype 題型, x.title 題目內(nèi)容, x.answer 答案,x.optionnum 選項(xiàng)數(shù),選項(xiàng)A,選項(xiàng)B,選項(xiàng)C,選項(xiàng)D,選項(xiàng)E,選項(xiàng)F, y.totalcount 回答數(shù), y.rightcount 正確數(shù),trunc(y.rightcount*100/y.totalcount,2)||'%' 百分比
      from (select H.id,
                   H.Title,
                   case
                     when H.Type = 1 then
                      '單選題'
                     when H.Type = 2 then
                      '多選題'
                     when H.Type = 3 then
                      '判斷題'
                     when H.Type = 4 then
                      '填空題'
                     when H.Type = 5 then
                      '問答題'
                   end mytype,
                   H.Answer,
                   H.Optionnum,              
                   MAX(DECODE(Q.Orderby, 1, Q.Title, '')) 選項(xiàng)A,
                   MAX(DECODE(Q.Orderby, 2, Q.Title, '')) 選項(xiàng)B,
                   MAX(DECODE(Q.Orderby, 3, Q.Title, '')) 選項(xiàng)C,
                   MAX(DECODE(Q.Orderby, 4, Q.Title, '')) 選項(xiàng)D,
                   MAX(DECODE(Q.Orderby, 5, Q.Title, '')) 選項(xiàng)E,
                   MAX(DECODE(Q.Orderby, 6, Q.Title, '')) 選項(xiàng)F
              from tbl_lib_question H, tbl_lib_option Q
             where Q.Questionid = H.id
               and Q.Questionid in
                   (select B.questionid questionid
                      from tbl_d_answer_examplan A, tbl_d_answer_question B
                     where A.Examplanid = 562
                       and A.Id = B.Answerexamplanid
                     group by B.Questionid)
             group by H.id, H.Title, H.Type, H.Answer,H.Optionnum
             order by H.id) X,
          
           (select M.questionid,
                   M.totalcount,
                   case
                     when N.rightcount is null then
                      0
                     else
                      rightcount
                   end rightcount
              from (select B.questionid questionid, count(*) totalcount
                      from tbl_d_answer_examplan A, tbl_d_answer_question B
                     where A.Examplanid = 562
                       and A.Id = B.Answerexamplanid
                     group by B.Questionid) M,
                   (select B.questionid questionid, count(*) rightcount
                      from tbl_d_answer_examplan A, tbl_d_answer_question B
                     where A.Examplanid = 562
                       and A.Id = B.Answerexamplanid
                       and B.Score = B.Gainscore
                     group by B.Questionid) N
           
             where M.questionid = N.questionid(+)
           
             order by questionid) Y

     where X.id = Y.questionid

    posted on 2009-09-28 22:12 強(qiáng)強(qiáng) 閱讀(419) 評論(0)  編輯  收藏 所屬分類: Oracle數(shù)據(jù)庫

    主站蜘蛛池模板: 亚洲AV福利天堂一区二区三| 亚洲人配人种jizz| 四虎免费影院ww4164h| 在线观看片免费人成视频无码| 免费精品人在线二线三线区别| 无码专区—VA亚洲V天堂| 日韩视频在线精品视频免费观看| 亚洲AV美女一区二区三区| 在线看免费观看AV深夜影院| 国产亚洲视频在线| 久久水蜜桃亚洲av无码精品麻豆| 韩国免费a级作爱片无码| 亚洲A∨精品一区二区三区| 久久久亚洲精华液精华液精华液| 无码人妻一区二区三区免费| 免费看又黄又爽又猛的视频软件| 亚洲AV日韩精品久久久久久| 免费羞羞视频网站| 无码日韩精品一区二区三区免费 | 最近免费最新高清中文字幕韩国| 亚洲精品乱码久久久久久蜜桃图片| 全免费一级毛片在线播放| 91在线视频免费观看| 亚洲大码熟女在线观看| 亚洲毛片在线观看| 亚洲高清视频免费| 国产黄色片免费看| 精品无码专区亚洲| 亚洲综合校园春色| 午夜亚洲国产理论秋霞| 亚洲精品偷拍视频免费观看| 无码少妇一区二区浪潮免费| 无码日韩精品一区二区免费暖暖 | 午夜性色一区二区三区免费不卡视频| 一级A毛片免费观看久久精品 | 国产精品嫩草影院免费| 免费看男女下面日出水来| 成人无码WWW免费视频| 一级一看免费完整版毛片| 亚洲狠狠婷婷综合久久蜜芽| 亚洲人成网站在线观看播放动漫 |