HI, I'M PREPARING THE MARKSHEET PROGRAM IN PL/SQL WITH THE CASE BUT I FOUND SOME MISTAKE CAN SOLVE THIS ERRORS...

DECLARE

V_TOT_MARKS NUMBER CONSTANT: = 500;

V_MKS_OBT NUMBER: = 0;

NUMBER of V_FPAPER: = NVL (& FIRST_PAPER, 0);

NUMBER of V_SPAPER: = NVL (& SECOND_PAPER, 0);

NUMBER of V_TPAPER: = NVL (& THIRD_PAPER, 0);

V_4PAPER NUMBER: = NVL (& FOURTH_PAPER, 0);

V_5PAPER NUMBER: = NVL (& FIFTH_PAPER, 0);

NUMBER OF V_PER (5.2): = 0;

V_GRADE VARCHAR2 (05);

V_RES VARCHAR2 (30);

BEGIN

V_RES: = V_FPAPER > = 40 AND V_SPAPER > = 40 AND V_TPAPER > = 40 AND V_4PAPER > = 40 AND V_5PAPER > = 40;

V_MKS_OBT: = V_FPAPER + V_SPAPER + V_TPAPER + V_4PAPER + V_5PAPER;

V_PER: = TRUNC ((V_MKS_OBT / V_TOT_MARKS) * 100, 2);

V_RES: = CASE WHEN V_PER BETWEEN 95 AND 100 THEN V_GRADE 'A-1 '.

WHEN V_PER BETWEEN 85.00 AND 94.99 THEN V_GRADE "A".

WHEN V_PER BETWEEN 75.00 AND 84.99 CAN V_GRADE 'B '.

WHEN V_PER BETWEEN 40.00 AND 74.99 V_GRADE THEN 'C '.

WHEN V_PER BETWEEN 30,00 AND 39.99 V_GRADE CAN "FAIL".

END OF ANOTHER "FAILED."

DBMS_OUTPUT. PUT_LINE (' FIRST BRANDS OF PAPER: = ' |) V_FPAPER | (' / 100');

DBMS_OUTPUT. PUT_LINE ("SECOND BRANDS PAPER: = ' |") V_SPAPER | (' / 100');

DBMS_OUTPUT. PUT_LINE (' THIRD PAPER BRANDS: = ' |) V_TPAPER | (' / 100');

DBMS_OUTPUT. PUT_LINE (' FOURTH BOOK BRANDS: = ' |) V_4PAPER | (' / 100');

DBMS_OUTPUT. PUT_LINE ("BOOK MARKS FIFTH: = ' |") V_5PAPER | (' / 100');

DBMS_OUTPUT. PUT_LINE ('TOTAL POINTS: = ' |) V_MKS_OBT | » /'|| V_TOT_MARKS);

DBMS_OUTPUT. PUT_LINE (' % / GRADE: = ' |) V_PER: ' / ' | V_GRADE);

END;

/

A lot of mistakes in your block, I think that you are looking for something like this:

DECLARE
  V_TOT_MARKS CONSTANT NUMBER := 500;
  V_MKS_OBT   NUMBER          := 0;
  V_FPAPER    NUMBER          := NVL ( &FIRST_PAPER, 0 ) ;
  V_SPAPER    NUMBER          := NVL ( &SECOND_PAPER, 0 ) ;
  V_TPAPER    NUMBER          := NVL ( &THIRD_PAPER, 0 ) ;
  V_4PAPER    NUMBER          := NVL ( &FOURTH_PAPER, 0 ) ;
  V_5PAPER    NUMBER          := NVL ( &FIFTH_PAPER, 0 ) ;
  V_PER       NUMBER ( 5, 2 ) := 0;
  V_GRADE     VARCHAR2 ( 05 ) ;
  V_RES       VARCHAR2 ( 30 ) ;
BEGIN
  V_MKS_OBT       := V_FPAPER + V_SPAPER + V_TPAPER + V_4PAPER + V_5PAPER;
  V_PER           := TRUNC ( ( V_MKS_OBT / V_TOT_MARKS ) * 100, 2 ) ;
  select case
  WHEN V_PER BETWEEN 95 AND 100 THEN 'A-1'
  WHEN V_PER BETWEEN 85.00 AND 94.99 THEN 'A'
  WHEN V_PER BETWEEN 75.00 AND 84.99 THEN 'B'
  WHEN V_PER BETWEEN 40.00 AND 74.99 THEN 'C'
  WHEN V_PER BETWEEN 30.00 AND 39.99 THEN 'FAIL'
  ELSE 'FAIL'
  end
  INTO V_GRADE
  from dual;
  DBMS_OUTPUT.PUT_LINE ( 'FIRST  PAPER MARKS := '||V_FPAPER||'/100' ) ;
  DBMS_OUTPUT.PUT_LINE ( 'SECOND PAPER MARKS := '||V_SPAPER||'/100' ) ;
  DBMS_OUTPUT.PUT_LINE ( 'THIRD  PAPER MARKS := '||V_TPAPER||'/100' ) ;
  DBMS_OUTPUT.PUT_LINE ( 'FOURTH PAPER MARKS := '||V_4PAPER||'/100' ) ;
  DBMS_OUTPUT.PUT_LINE ( 'FIFTH  PAPER MARKS := '||V_5PAPER||'/100' ) ;
  DBMS_OUTPUT.PUT_LINE ( 'TOTAL  MARKS       := '||V_MKS_OBT||'/'||V_TOT_MARKS
  ) ;
  DBMS_OUTPUT.PUT_LINE ( 'PER% / GRADE       := '||V_PER||' / '||V_GRADE ) ;
END;
/

Tags: Database

Similar Questions

  • Salvation; I instaled a new Windows XP Home edition on my computer hp laptop, but it's not conect to the internet through my wireless card.how can solve this?

    Salvation; I instaled a new Windows XP Home edition on my computer hp laptop, but it's not conect to the internet through my wireless card.how can solve this?

    Did you use the recovery process HP plant or install using a different operating system disk? If the latter, you need to install the drivers for all your hardware, including drivers for wireless network cards. You will get only the pilot specific support for your laptop model HP Web site tech.

    If by "wireless card" you mean that you have a 3G USB modem through your cell phone provider, contact the cell phone provider for help with that. MS - MVP - Elephant Boy computers - don't panic!

  • the windows XP from my laptop IBM + enter in standby mode without anything in the regular workplace? any idea what can cause this problem? virus? installation program?

    the windows XP from my laptop IBM + enter in standby mode without anything in the regular workplace? any idea what can cause this problem? virus? installation program?

    Hello

    · Were there any changes made on the computer before the show?

    You can check the link: how to solve the problems of hibernation and standby in Windows XP: http://support.microsoft.com/kb/907477

  • Cannot access the kuller or the bookhouse inside the adobe programs, they say I am disconnected (e) the cloud, but I'm registered, what can I do?

    Cannot access the kuller or the bookhouse inside the adobe programs, they say I am disconnected (e) the cloud, but I'm registered, what can I do?

    Taylor the last update the cloud did, I can't access any library, no kuller, the cloud in illustrator I didn't say soul sighed, but I am enrolled in the cloud, I can download programs, what is wrong. ? Help

    OK - In Illustrator get to HELP.   Sign in with your username there.  Restart Illustrator.   That's the question is!  Hope this helps

  • my freezer scandisk to 0% at the start of the computer. someone please tell me how to solve this problem

    my freezer scandisk to 0% at the start of the computer. someone please tell me how to solve this problem, and for this reason, I can't use my computer for other things as well. It is now very slow and do not file load. as adobe flashplayer doesn't load on google crome more please help me with this. I have windows xp sp2

    Yes, install xp3, the patch is only for hp AND amd pc, install from the link and then navigate to the microsoft updates and a priority scan, install, then do a custom scan and install rootkit updates, it will be a long process that you are behind in security updates , \\

    clean the pc then do the following:

    Shenan Stanley tips: will probably want to clean this machine...

     

    Search for malware:

    Download, install, execute, update and perform analyses complete system with the two following applications:

    ·                                 MalwareBytes (FREE)

    ·                                 SuperAntiSpyware (FREE)

    Remove anything they find. Reboot when necessary. (You can uninstall one or both when finished.)

    Search online with eSet Online Scanner.

    The less you have to run all the time, most things you want to run will perform:

    Use Autoruns to understand this all starts when your computer's / when you log in. Look for whatever it is you do not know usingGoogle (or ask here.) You can hopefully figure out if there are things from when your computer does (or connect) you don't not need and then configure them (through their own built-in mechanisms is the preferred method) so they do not - start using your resources without reason.

    You can download and use Process Explorer to see exactly what is taking your time processor/CPU and memory. This can help you to identify applications that you might want to consider alternatives for and get rid of all together.

    Do a house cleaning and the dust of this hard drive:

    You can free up disk space (will also help get rid of the things that you do not use) through the following steps:

    Windows XP should take between 4.5 and 9 GB * with * an Office suite, editing Photo software, alternative Internet browser (s), various Internet plugins and a host of other things installed.

    If you are comfortable with the stability of your system, you can delete the uninstall of patches which has installed Windows XP...
    http://www3.TELUS.NET/dandemar/spack.htm
    (Especially of interest here - #4)
    (Variant: http://www.dougknox.com/xp/utils/xp_hotfix_backup.htm )

    You can run disk - integrated into Windows XP - cleanup to erase everything except your last restore point and yet more 'free '... files cleaning

    How to use disk cleanup
    http://support.Microsoft.com/kb/310312

    You can disable hibernation if it is enabled and you do not...

    When you Hibernate your computer, Windows saves the contents of the system memory in the hiberfil.sys file. As a result, the size of the hiberfil.sys file will always be equal to the amount of physical memory in your system. If you don't use the Hibernate feature and want to reclaim the space used by Windows for the hiberfil.sys file, perform the following steps:

    -Start the Control Panel Power Options applet (go to start, settings, Control Panel, and then click Power Options).
    -Select the Hibernate tab, uncheck "Activate the hibernation", and then click OK. Although you might think otherwise, selecting never under "Hibernate" option on the power management tab does not delete the hiberfil.sys file.
    -Windows remove the "Hibernate" option on the power management tab and delete the hiberfil.sys file.

    You can control the amount of space your system restore can use...

    1. Click Start, right click my computer and then click Properties.
    2. click on the System Restore tab.
    3. highlight one of your readers (or C: If you only) and click on the button "settings".
    4 change the percentage of disk space you want to allow... I suggest moving the slider until you have about 1 GB (1024 MB or close to that...)
    5. click on OK. Then click OK again.

    You can control the amount of space used may or may not temporary Internet files...

    Empty the temporary Internet files and reduce the size, that it stores a size between 64 MB and 128 MB...

    -Open a copy of Microsoft Internet Explorer.
    -Select TOOLS - Internet Options.
    -On the general tab in the section 'Temporary Internet files', follow these steps:
    -Click on 'Delete the Cookies' (click OK)
    -Click on "Settings" and change the "amount of disk space to use: ' something between 64 MB and 128 MB. (There may be many more now.)
    -Click OK.
    -Click on 'Delete files', then select "Delete all offline content" (the box), and then click OK. (If you had a LOT, it can take 2 to 10 minutes or more).
    -Once it's done, click OK, close Internet Explorer, open Internet Explorer.

    You can use an application that scans your system for the log files and temporary files and use it to get rid of those who:

    CCleaner (free!)
    http://www.CCleaner.com/
    (just disk cleanup - do not play with the part of the registry for the moment)

    Other ways to free up space...

    SequoiaView
    http://www.win.Tue.nl/SequoiaView/

    JDiskReport
    http://www.jgoodies.com/freeware/JDiskReport/index.html

    Those who can help you discover visually where all space is used. Then, you can determine what to do.

    After that - you want to check any physical errors and fix everything for efficient access"

    CHKDSK
    How to scan your disks for errors* will take time and a reboot.

    Defragment
    How to defragment your hard drives* will take time

    Cleaning the components of update on your Windows XP computer

    While probably not 100% necessary-, it is probably a good idea at this time to ensure that you continue to get the updates you need. This will help you ensure that your system update is ready to do it for you.

    Download and run the MSRT tool manually:
    http://www.Microsoft.com/security/malwareremove/default.mspx
    (Ignore the details and download the tool to download and save to your desktop, run it.)

    Reset.

    Download/install the latest program Windows installation (for your operating system):
    (Windows XP 32-bit: WindowsXP-KB942288-v3 - x 86 .exe )
    (Download and save it to your desktop, run it.)

    Reset.

    and...

    Download the latest version of Windows Update (x 86) agent here:
    http://go.Microsoft.com/fwlink/?LinkId=91237
    ... and save it to the root of your C:\ drive. After you register on theroot of the C:\ drive, follow these steps:

    Close all Internet Explorer Windows and other applications.

    AutoScan--> RUN and type:
    %SystemDrive%\windowsupdateagent30-x86.exe /WUFORCE
    --> Click OK.

    (If asked, select 'Run'). --> Click on NEXT--> select 'I agree' and click NEXT--> where he completed the installation, click "Finish"...

    Reset.

    Now reset your Windows with this FixIt components update (you * NOT * use the aggressive version):
    How to reset the Windows Update components?

    Reset.

    Now that your system is generally free of malicious software (assuming you have an AntiVirus application), you've cleaned the "additional applications" that could be running and picking up your precious memory and the processor, you have authorized out of valuable and makes disk space as there are no problems with the drive itself and your Windows Update components are updates and should work fine - it is only only one other thing youpouvez wish to make:

    Get and install the hardware device last drivers for your system hardware/system manufacturers support and/or download web site.

  • some mistakingly media player music files have been deleted, that I pulled from the trash, but there are some still missing. Is it possible to recover them? -If so, how?

    My windows media player mp3 music files have been deleted by mistake, they are also missing from the 'My music' file too.  I got some of them to the "basket", but there are some still missing were not in the bin.

    Is it possible to recover the rest of the files and put back them in 'my music '?

    Have you tried to do a search. MP3 to see if
    files could be somewhere else on your hard drive?

    See the following article:

    (308895) how to search for files and folders in Windows XP
    http://support.Microsoft.com/kb/308895

    There are programs of software designed to recover the
    deleted files. The following freeware is an example...
    a Google search will find more.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Recuva downloads (versions)
    http://www.Piriform.com/Recuva/builds

    Best bet would be a Portable version on a memory
    card or a Flash drive. (reduces the risk of crushing
    deleted files)

    Introduction of Recuva (tutorials)
    http://www.Piriform.com/docs/Recuva/introducing-Recuva

    Recuva - indicating what to look for
    http://www.Piriform.com/docs/Recuva/using-Recuva/advanced-mode/specifying-what-to-search-for

    The following article can be also worth a visit:

    How to recover files deleted with free software
    http://Lifehacker.com/393084/how-to-recover-deleted-files-with-free-software

    Good luck.

  • IPod Classic 160GB - stays corrupt, tried everything I can find online. I was told if I can find the manual restore of Apple file, that can solve my problem, anyone know where I can get this file?

    IPod Classic 160GB - stays corrupt, tried everything I can find online. STIL reformatted to Fat32, says that it is corrupted. Windows 10. I was told if I can find the manual restore of Apple file, that can solve my problem, anyone know where I can get this file?

    See corrupted iPod Classic. What are the stats from HARD drive?

    TT2

  • I rented the movie legend and there is no subtitles appear even when I click on the option. You can solve this problem or give my money back me?

    I rented the movie legend and there is no subtitles appear even when I click on the option. You can solve this problem or give my money back me?

    You do not discuss Apple here. This is a user to user support forum. You must contact the support of iTunes for your question. http://www.Apple.com/EMEA/support/iTunes/contact.html

  • I am now on iOS 9.2 Game Center still does not work. When I open the app it freezes on a blank page. When I open the Game Center in the settings, it freezes and then crashes. Please Apple can solve this problem of Game Center iOS 9.2.

    I am on iOS 9.2 and Game Center still does not work. When I open the app it freezes on a blank page. When I open the Game Center in the Middle it hangs just. For this reason, I can't back up my data on my games. Please Apple can solve this problem of iOS 9.2.

    Hello Vaishnav,

    Thank you for using communities of Apple Support.

    I see that you are having problems with Game Center on your iPhone. I have a number of things for you to try.

    First force quit Game Center.

    1. Press the Home button twice quickly. You will see small glimpses of your applications recently used.
    2. Swipe to the left to find the Game Center app to close.
    3. Swipe up on the preview of the Game Center to close.

    Force an app to close the iOS

    If this does not work, then the next step would be a restoration. I recommend restore like new, without backup restore and everything first. If it works there, you can restore the backup.

    Use iTunes to restore your iPhone, iPad or iPod to factory settings

    Best regards.

  • Hi, I put the web filtering to the general, but there are some * site that always appears. Please notify

    Hi, I put the web filtering to the general, but there are some * site that always appears. Please notify

    Hi EddyMoe,

    You have encountered this problem because the site is not popular enough, or the content of Web site changes frequently that it has not been classified as an adult site. Security checks family with service of content classification to determine the category of the site. For more information about how Family Safety determines the web content, please refer to this article. To avoid this, you must change your level of web filter to Allow list only. To do this, follow these steps:

    1. connecting the account parent in http://fss.live.com
    2. under the child's name, click change settings
    3. Select the Web filtering.
    4 adjust the slider for web filters in list only or to your preferred configuration.
    5. click on Save.

    6. click onWeb filtering lists.
    7. Enter the web address that you want to allow in the box and click allow.
    8. click on Save.

    Finally, please always remember to update the family safety filter so you can have the latest parental control settings.

    Thank you!

  • my stepson took an old pc to his new place in another city, it's password protected and we don't remember the password how we can solve this problem?

    my stepson took an old pc to his new place in another city, it's password protected and we don't remember the password how we can solve this problem?

    Keep passwords secure - Microsoft on passwords strategy
    http://support.Microsoft.com/kb/189126

  • Spam emails are sent to all my contacts from scratch as if the email was from me. How to solve this problem?

    Spam emails are sent to all my contacts from scratch as if the email was from me. How to solve this problem?

    original title: Spam e-mails

    What do you mean by "archived" contacts?  If they are not contacts that are currently available to you, then there is no way that your PC could be sending mail to them.

    It's the easiest thing to send an email from any address you like in the world.  This is not an indication that your e-mail account has been compromsed.  He could have, but changing your mail server access password can prevent this.  The usual cause of people receiving messages that look as if they're from your is because your address was used as the address of sending junk e-mail.  It is very common and does not mean that your PC or any PC, you never hit sends the mail.  It is something that you can only order if your mailbox has been compromised.

  • does not recognize the flash drive. I get a code 28, pilot not available and the code 19 registry damaged. How to solve this problem?

    Original title: Pny flash drive problems

    I used my flash drives on my pc with xp as os without problem. I then took the same flash drive for my laptop with the windows operating system 7, I opened the files. Then I went to the computer with xp, and the pc does not recognize the flash drive. I get a code 28, pilot not available and the code 19 registry damaged. How to solve this problem?

    Hello

    Do you see these error codes in Device Manager?

    Plug the flash drive and run the Fixit of the article below and check out them.
    Hardware devices do not work or are not detected in Windows
    http://support.Microsoft.com/mats/hardware_device_problems/

    See also the section below, which might be useful in solving the problems of USB devices.
    Advanced troubleshooting tips for General USB for Windows XP problems
    http://support.Microsoft.com/kb/310575

  • my Media Player shows no music, or rip music of the inserted disc. What can solve this problem

    my Media Player shows no music, or rip music of the inserted disc. What can solve this problem

    Hey Lucky,

    You can try the steps in the follwoign and check if it helps.

    Method 1:

    You can try to rebuild the media player library, and then try to extract again

    This problem can occur if the media library is corrupt. Rebuild the library and check if this solves the problem.

    Follow these steps:

    a. exit Windows Media Player.

    b. Click Start, run, type %LOCALAPPDATA%\Microsoft\Media Player and then click OK.

    c. Select all files in the folder and then click on Delete on the file menu.

    Note: You don't have to remove the folders that are in this folder.

    d. restart Windows Media Player.

    Note: Windows Media Player automatically rebuilds the database.

    If this does not resolve the problem, disable the Windows Media Player database cache files. To do this, follow these steps:

    a. exit Windows Media Player.

    b. Click Start, click Run, type % LOCALAPPDATA%\Microsoft and then click OK.

    c. Select the Media Player folder, and then click on Delete on the file menu.

    d. restart Windows Media Player.

    Method 2:

    You can also try to change rip settings and check.

    For more information, you can consult the following article:

    Change settings for ripping

  • my hp 530notebook, shows the market password? Is it far from solving this problem?

    My computer hp laptop 530, shows the market password? Is it far from solving this problem?

    Hello

    It seems to be a BIOS password problem you are having with your CV.

    I'm sorry, but Microsoft forbids any help given in these Forums for lost or forgotten passwords; which is what your question is.

    Microsoft tips for BIOS password problems are to contact the manufacturer; in this case HP:

    http://WWW8.HP.com/us/en/contact-HP/contact.html

    Or ask in the Forums of HP Support:

    http://h30434.www3.HP.com/

    See you soon.

Maybe you are looking for