Some format help

Hi,
Thiis is my query.While returning data if coulmn value is single digit i need display with two decimals.
For example o/p is 5 need to 5.00.Pls see the query and output.
my database is 10.1.0.2.0
current o/p
Mean Score     Standard Deviation
4.99     0.17
5     0.15
5     0.12
5     0.08
5     0.14
5     0.11
5     0.09
expected o/p
4.99     0.17
5.00     0.15
5.00     0.12
5.00     0.08
5.00     0.14
5.00     0.11
5.00     0.09
select
       nvl(decode(s1.Student_count,0,'0',round((s1.ss_sum/s1.student_count),2)),0)"Mean Score" ,
       nvl(s1.Std_deviation,0)"Standard Deviation"
  from test_detail tt,
       test_detail td,
       select test_detail_id,
              count(1) Student_count,
              nvl(round(stddev(round(score)),2),0) Std_deviation,
              sum(round(score)) ss_sum
         from sm_dgn_test_session a
        where TRUNC(a.TEST_SESSION_DATE) between TO_DATE ('07/30/2009',
                                                          'MM/DD/YYYY')
                                             AND  TO_DATE ('11/01/2009',
                                                           'MM/DD/YYYY')
          and to_char(a.institution_id) in (295)
        group by test_detail_id
       ) s1,
         select a.test_detail_id,
                count(decode(category_score,1,1,null)) proficiency_1,
                count(decode(category_score,2,2,null)) proficiency_2,
                count(decode(category_score,3,3,null)) proficiency_3
           from sm_dgn_test_session a,
                ability_lookup_sem b
          where round(a.score) = b.scale
           and a.test_detail_id=b.test_detail_id
            and category_score in(1,2,3)
            and TRUNC(a.TEST_SESSION_DATE) between TO_DATE ('07/30/2009',
                                                          'MM/DD/YYYY')
                                             AND  TO_DATE ('11/01/2009',
                                                           'MM/DD/YYYY')
            and to_char(a.institution_id) in (295)
          group by a.test_detail_id
       ) s2
  where tt.test_detail_Id = td.domain_map_id
   and td.test_detail_id = s1.test_detail_id(+)
   and td.test_detail_id = s2.test_detail_id(+)
   and tt.test_type_id in (8)
   and to_char(tt.test_detail_id) in (303,304,305,306)

select  trunc("Mean Score") || to_char(mod("Mean Score",1),'fm.00') "Mean Score",
"Standard Deviation"
from (
select
       nvl(decode(s1.Student_count,0,'0',round((s1.ss_sum/s1.student_count),2)),0)"Mean Score" ,
       nvl(s1.Std_deviation,0)"Standard Deviation"
  from test_detail tt,
       test_detail td,
       select test_detail_id,
              count(1) Student_count,
              nvl(round(stddev(round(score)),2),0) Std_deviation,
              sum(round(score)) ss_sum
         from sm_dgn_test_session a
        where TRUNC(a.TEST_SESSION_DATE) between TO_DATE ('07/30/2009',
                                                          'MM/DD/YYYY')
                                             AND  TO_DATE ('11/01/2009',
                                                           'MM/DD/YYYY')
          and to_char(a.institution_id) in (295)
        group by test_detail_id
       ) s1,
         select a.test_detail_id,
                count(decode(category_score,1,1,null)) proficiency_1,
                count(decode(category_score,2,2,null)) proficiency_2,
                count(decode(category_score,3,3,null)) proficiency_3
           from sm_dgn_test_session a,
                ability_lookup_sem b
          where round(a.score) = b.scale
           and a.test_detail_id=b.test_detail_id
            and category_score in(1,2,3)
            and TRUNC(a.TEST_SESSION_DATE) between TO_DATE ('07/30/2009',
                                                          'MM/DD/YYYY')
                                             AND  TO_DATE ('11/01/2009',
                                                           'MM/DD/YYYY')
            and to_char(a.institution_id) in (295)
          group by a.test_detail_id
       ) s2
  where tt.test_detail_Id = td.domain_map_id
   and td.test_detail_id = s1.test_detail_id(+)
   and td.test_detail_id = s2.test_detail_id(+)
   and tt.test_type_id in (8)
   and to_char(tt.test_detail_id) in (303,304,305,306)
/SY.

Similar Messages

  • Can some body help me? yesterday I format my iphone and it have been more than 24 hours a litlle circle moving

    can some body help me? yesterday I format my iphone and it have been more than 24 hours a litlle circle moving

    Reset, hold both the Home and Power buttons for about 10 seconds until the iPhone begins to start. If still problem, and your decide to Restore your iPhone, try DFU Mode Restore. Open iTunes on computer. Connect iPhone to computer with USB cable. Hold both Home and Power button, after exactly 10 seconds release the Power Button, keep holding the Home button until iTunes recognizes iPhone in Recovery Mode, usually about 20 seconds time.

  • My i phone 4 got locked by my small sister plus my laptop was formatted i dont have itunes back up to unlock thei phone what should i do i am puzzeled?? i tried passcode it says i phone is disabled .. some one help please

    My i phone 4 got locked by my small sister plus my laptop was formatted i dont have itunes back up to unlock thei phone what should i do i am puzzeled?? i tried passcode it says i phone is disabled .. some one help please

    Options for when an iOS device gets locked because of forgotten passcode:
    Restore (and reset passcode) on your device by connecting it to the last computer to which it was connected:
    iTunes: Backing up, updating, and restoring iOS software - http://support.apple.com/kb/HT1414  ( https://discussions.apple.com/message/20025416 - "A restore erases the iPod. If you restore from backup the iPod will be like it was IF the iTunes library includeds [sic] all the synced media like apps and music since those are not included in the backup.")
    If you cannot connect it to the computer to which the device was last connected (or the device was never connected to a computer) you will have to use recovery mode to completely reset the device, losing all data:
    iOS: Unable to update or restore - http://support.apple.com/kb/HT1808 - recovery mode (e.g., cannot connect to computer last used to sync device, iTunes still asks for a password)
    If none of the above work, try:
    DFU mode: http://osxdaily.com/2010/12/04/ipad-dfu-mode/
    How to put iPod touch / iPhone into DFU mode - http://geekindisguise.wordpress.com/2009/07/16/how-to-put-ipod-touch-iphone-into -dfu-mode/

  • I want to format my mac, can some one help me?

    I want to format my mac, can some one help me?

    This is done with Disk Utility when your Mac is booted from the OS X install disc.
    http://www.macusersguide.com/2009/05/reformatting-hard-drive/

  • Report Scripts - Please Can Some One Help Me

    Hello Gurus,
    Is it possible to display 2 members of the same dimension in adjacent columns using Report Scripts? if not what is the best available option?
    Consider this Sample Outline
    +Product
    +-Cofee
    +---Cafined
    +-------1100
    +-------1200
    +---Decafined
    +-------1300
    +-------1400
    +-Soda
    +---Coke
    +-------1500
    The format of the desired report is
    ======= Jan Feb Mar
    1100 Cofee 8 8 8
    1200 Cofee 8 8 8
    1300 Cofee 7 7 7
    1400 Cofee 7 7 7
    1500 Soda 6 6 6
    ================
    Please Can some one help me in this regard!
    Thanks In Advance

    If I remember correctly when I wanted to do something similar I imported the report with the level 0 members into SQL Server and then joined on a mapping table (was a parent/child table in our case) to get the other column. In our situation we already had the mapping table readily available because this is where the dimension was built from!

  • I have garagaband for iOs in my iPhone 4S, I connect my squire iOs guitarr to the iPhone, I select a Guitar Amp at the GB app then I Only can tune the guitar but I m not able to make the guitar ring with the amps. May some one help me?

    I have garagaband for iOs in my iPhone 4S, I connect my Squire iOs guitarr to the iPhone, I select a Guitar Amp at the GB app then I Only can tune the guitar but I m not able to make the guitar ring with the amps. May some one help me?

    You got the new iphone?????   I have same problem.  I transferred audiobooks to device to find no audiobooks on device (despite it being in iTunes as if it was).  Have you found a solution?????   I even tried to change import settings on format transfer but hasn't worked. 

  • TS4425 I do thevspet by step and "terms and conditions" never appear, some one help!!!!

    I do the step by step and "terms and conditions" never appear, some one help!!!!

    Okay. Well, I can see the image tags and I think there might be something wrong with how my page is formatted through Blogger. I will go back to my original format and see. Right now, Podmedic says:
    It says this for the MP3 files, but I don't get it because the file plays as soon as I click it:
    "Media enclosure not created because: The URL was unavailable or Feedburner could not receive a response within 10 seconds."
    It shows errors for the top image and the email link, but I can ignore that.
    At the end, I just have no idea what this means:
    There is a link listed that begins with "feedproxy.google.com" along with some more detail and the error for that says:
    "The content type returned from your host server was a text type, not a binary media type. Podcast content should always return a binary media type, such as audio/mpeg for audio, or video/mpeg for video."
    In SmartCast, I am not sure if it would help if I changed the enclosure setting to "audio files only" as it is set to "any rich media file" now. First, though, I am going to try to change the template I have in Blogger back to what I used originally, when everything worked.
    I can see "image" tags in feedburner and it shows in iTunes now, so I am thinking this is more of a Blogger problem, and not necessarily iTunes now even though the images did need to be added.

  • I was facing problem while connecting to oracle database.Can some one help me soon!!!!!

    Hi all,
    I was facing problem from last week.Suddenly i was getting ora-12505 error while connecting to the database through toad.I tried to change tnsnames.ora & listener.ora in multiple ways,but no luck...Inspite i was getting different errors like ora - 01034: ORACLE not available / ora - 27101: shared memory realm does not exist...When i try to connect using sys / sys as sysdba,connection is establishing and when issue the command startup it was throwing the error ORA-01821: date format not recognized......Fed up solving these issues....Can some one help me out...It's very very urgent..
    Thanks in advance,
    pavankumar.

    Well, the obviously solution is to use separate Apple ID's for iCloud.

  • Premiere Pro Does Not Support Audio-Only Capture For Some Formats, Such As HDV?

    In the PPro CS 5.5 Help file  under, "Recording audio", it says:
    "Note: To capture an audio-only file from a digital video source, choose Audio from the Capture menu in the Logging pane of the Capture panel.
    "Premiere Pro does not support audio-only capture for some formats, such as HDV."
    I'm shooting in HDV and if I want to capture audio only, would I just need to switch my setting to DV?
    The only thing is my Canon HV20's HDV audio is MPEG-1 Audio Layer 2, 16 bit, 48 kHz.
    My DV setting is PCM audio, which I think is a better quality format, right?
    Would there be any noticeable difference?
    Thanks.

    Capture your HDV material in the normal way and just drag audio only from the source monitor to the timeline.

  • Wifi works poorly on my brandnew ipad2. can some one help me or shall I return it to the store?

    Wifi works poorly to none on my brandnew (three days old) ipad2.
    The same Wifi connection works perfectly with my PC laptop.
    Can some one help me or shall I return it to the store?

    Try here...
    Apple - Support - iPad - Wi-Fi

  • SOME PLEASE HELP ME I DONT KNOW WHAT TO DO.....(M-audio)

    SOME PLEASE HELP ME I DONT KNOW WHAT TO DO..... SO I RECIEVED MY M-AUDIO MOBILEPRE SOUNDCARD. I CONNECTED THE USB TO MY MACBOOK (2009-2010) AND I CAN CHANGE MY COMPUTERS OUTPUT TO THE M-AUDIO MOBILEPRE... SO IT SHOWS ITS CONNECTED. NEXT I DOWNLOAD THE M-AUDIO MOBILEPRE DRIVER IT CAME WITH IN THE BOX AFTER THAT IT SHOWS ITS CONNECTED ALL GOOD....BUT WHEN I DOWNLOAD THE DRIVER "M-AUDIO MOBILE PRE USB" I PLUG IN MY SPEAKERS AND IT SAYS "UNABLE TO CONNECT TO M-AUDIO MOBILEPRE. IS IT TURNED ON?" AND ITS OBVIOUSLY TURNED ON AND CONNECTED......SO MY COMPUTER READS THE SOUNDCARD BUT IT WONT LET ME CONFIGURE THE SOUND SETTINGS IN THE "M-AUDIO MOBILEPRE USB" DRIVER ....WTH IS M-AUDIO MOBILEPRE THE SAME THING AS M-AUDIO MOBILEPRE USB???? IF SO HOW DO I CONFIGURE THE SOUND SETTINGS IN MY COMPUTER!!!

    Contact M-Audio support, I suspect they will have further information that you need rather than this forum.

  • I've twice tried to use iTunes match. It stalls in step 2. I've rebooted my Mac computer and still stalls. Apple's taken the $25 but not delivered the service. Can I get some personal help?

    I've twice tried to use iTunes match. It stalls in step 2. I've rebooted my iMac computer and it still stalls. Apple's taken the $25 but not delivered the service. Can I get some personal help? There are 12,733 songs, a few dozen of which are not going to be in the Apple music library because they are unique to my collection. Also, some titled "Track XX" and no artist. I assume these would either not upload or else just be uploaded. But, after an overnight of step 2, the iTunes match program was still on song number 7384 or 12733 (it was on that number for over 12 hours). Looking in the music library, activating the iCloud icon and status fields, there were hundreds of songs with the status "waiting."

    Lmwilliamson wrote:
    Kernel panics:
    After taking my late 2009 15 inch macbook pro to the apple store, the genius completely erased my computer and reinstalled the Mac OS X software, but the problem still persists. 
    I also took it to my college tech support center, they tried to take the ram out and reinsert it and clean up the dust, but the problem still remains.
    I am able to use my computer in Safeboot mode (only)
    Well it could still be a software problem if you installed a third party program after the OS X wipe and install, because by booting into Safe Mode it disables certain functions of OS X and hardware. Check for updates or problems for all your third party software, include everything, including menulets, System Preference panes, hacks and so forth.
    If you restored any sort of software from backup like TimeMachine, it likely was corrupted data and now is returned.
    If the college tech support found a lot of dust clogging the rear exhaust vents behind the fans, then likely the heat damage done to the machine has already occured and can't be reversed. Video cards are usually first to go, which Safe Mode does disable the video card somewhat.
    Run through this list of fixes, it's systematic in nature, also has a Hardware Test to see what's going on
    ..Step by Step to fix your Mac
    Too bad this is occurring to a mere 4 year old machine, but dust will do that. Here is the culprit that Apple doesn't tell anyone about.

  • Hello can some please help I am trying to watch my HBO go on my apple tv I have sound not picture. I can watch my iTunes videos and youtube so I know it works. it is working

    Hello can some please help I am trying to watch my HBO go on my apple tv I have sound no picture. I can watch my iTunes videos and youtube on my airplay with my ipad and everything is updated so I know it works. But not on HBO go, Max go, showtime go.

    What you want to do does not work with an iPd running iOS 5. See the screenshot.
    The latest update for HBO GO does allow for AirPlay on Apple TV - sound and video - but only on devices running iOS 6 and Apple TV running 5.1.1 or later - according to the app description.

  • After upgrading to Yosemite I cannot share my pages document by mail as a word format - HELP please!!!

    After upgrading to Yosemite I cannot share my pages document by mail as a word format - HELP please!!!

    You don't need to go to the App Store to for support for Steam and Minecraft. You need to go to their website(s).
    You're welcome 

  • HT1338 i have apps to be updated but when i try to update them a message pops out saying "You have updates for other accounts, please sigh in with the other id". Can some one help me how can i still update the same with the new apple id ive created.

    i have apps to be updated but when i try to update them a message pops out saying "You have updates for other accounts, please sigh in with the other id". Can some one help me how can i still update the same with the new apple id ive created. As i dont have the access to the earlier id anymore.

    You cannot. The apps are assigned to that Apple ID and there is nothing you can do to change that. You could choose to download them again with the new Apple ID, any paid apps will need to be purchased again.
    Hope that helps.

Maybe you are looking for