Please help me: problem hard charting to Apex 4

Hi guys, it's me again!

I'm having a hard time creating a chart in the apex oracle 4.0. I wish it were a graphic flash with a trendline.

The trend line is not very important right now, my problem is in the construction of the SQL query to generate this table. I'm wondeing if you could help.

A quick overview of what it is supposed to do: children in a school to pass the exams for different academic courses. A student could write multiple reviews for the same course. Each of these reviews may contain one or several "Sections" (think of the Section A, Section B, etc.). Each section has its own amount of 'points' that contributes to the maximum overall score of the review. Pretty simple. Now the total scores of these reviews are all added to make a maximum score in a whole topic. Performance of the student in each course must be represented on the Board in a series, while the average score for an entire class is represented in another series. This bar graph to compare the overall performance of the student with the average performance of her entire class.

Simply put, I ask the creating a chart bars flash that compares the maximum scores for each course with another. Once I know how to do this, it is pretty easy to figure out the rest. Now to explain my structure of database in detail:

The course called "mathematics degree" for example, are stored in a table named COURSE. Its title is stored in a field called "COURSETITLE. The primary key of the table RACE is called "COURSEID".

Each course can be delivered to several groups of class at a time. To manage this relationship, I have a table called COURSEOFFERING that allows to record multiple instances of the same class, each instance being delivered to another group of students. The primary key of the table COURSEOFFERING is called 'COLD '.

A review takes place in what concerns a COURSEOFFERING (and not a course, as a group of classes do not have to write the same examinations as the other class includes will). Exams are stored in a table called REVIEW. The primary key of the table is 'EXID. Of course, there is a foreign key called 'COLD' that references the primary key of the table COURSEOFFERING.

Now each review contains sections. These sections have their maximum point scores. The primary key of the table of SECTIONS is called 'SECID '. The field that stores the value of point of each section is called 'POINTS '.

So if we have for example a review on "Mathematics in Cambridge" which is given to the class of Grade a pretty good mention, and it contains the Section has a value of 20 points and Section b which is worth 30 points, you have a review that is worth 50 points. If another review as it is worth 100 points when you add up the value of its sections, the maximum possible in mathematics from Cambridge to the honours class rank is 150. Similarly, the Grade One Special Ed class can have a different maximum possible score, according to reviews that they write to you.

I created a function compiled successfully, and it DOES not work with the data (I tried to do a region of PL/SQL out of it and the display of some of the results). It returns the maximum value that is possible on a subject that takes in the ID of the COURSEOFFERING table as an argument which is titled v_coid. I don't know how to make a chart that shows the result of this function from the TITLE of the COURSE offered.

create or replace function "MAXCOMARKS"
(v_coid in NUMBER)
return NUMBER
is
l_sum number;
l_exid number;
l_cotitle varchar2(50);
exam_rec exam%rowtype;
sections_rec sections%rowtype;
cursor c1 IS SELECT * FROM EXAM WHERE COID = v_coid;
cursor c2 IS SELECT * FROM SECTIONS WHERE EXID = l_exid;

BEGIN

l_sum :=0;
SELECT coursetitle INTO l_cotitle FROM COURSE WHERE courseid= (SELECT courseid from COURSEOFFERING where coid = v_coid);
FOR exam_rec in c1
LOOP
    l_exid := exam_rec.exid;
    FOR sections_rec in c2
       LOOP
          l_sum := l_sum + sections_rec.points;
       END LOOP;
END LOOP;

return l_sum; 

END;
Note that the l_cotitle stores the title of the course, these marks are for. It is not returned, or printed or anything in this function, but I need that she either label X for each result in the series.

Please help me, he had me conduit nut to do such a simple little thing.

Sorry if this is long... :(
-C

Yes, the 'function of PL/SQL returning a SQL command' can be used to produce this type of query (or practically any other type, as long as the PL/SQL function returns valid SQL). I tend to limit the use of the "functions of PL/SQL that return requests" to the reports and charts that really need, which usually means a situation where the query must be built dynamically.

In any case, I'm glad I could help.

Tobias

Tags: Database

Similar Questions

  • PLEASE HELP STILL PROBLEM

    Hello guys

    I have a big problem which has already weeks and I can't solve. I want a bluray disc. I did a project in first Pro CC. A video project that takes almost 2 hours. I marked all the chapters and I exported. I also created my whole menu in photoshop. So I opened the CALLBACK to get the BLURAY. I did all of the correct procedure. Burned to a disc. The project works very well. The problem is when I put ALL PLAY and I want to jump the line, the function does not work. IE the video runs faster, but it does not track jump to another. I made 25 tracks. I can't jump from the track to another track. What I would do. Please help me. I provide this project today.



    Thank you


    Julio



    There are chapters on your timeline yet? Is the timeline of an entire video?

  • Please help [installation problem]

    Hello

    I recently had some work on my Mac mini. The hard drive had to be cleaned in order to complete the repair. I have the

    Rear PC, but my apps are all gone. Im having trouble re install my apps to my creative suite. Can someone please advise?

    You install programs exactly in the same way you did the 1st time... Put your disc in the drive, and enter your serial number when asked

    .

    Download & install instructions https://forums.adobe.com/thread/2003339 can help

    -includes a way to go to a page to download the Adobe programs if you do not have a disk or drive

    -you will need to enter your original serial number during the installation for non-Cloud programs

    -Cloud desktop http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html

    -Cloud Getting Started https://helpx.adobe.com/creative-cloud.html

    -Membership questions and problems https://forums.adobe.com/thread/1146459

    - or kglad links in response to #1 here can help https://forums.adobe.com/thread/2081216

    -except, now more direct http://prodesigntools.com/adobe-cc-no-more-direct-download-links.html

    Also go to https://forums.adobe.com/community/creative_cloud/creative_cloud_faq

  • Please help, Virus problem, have 2 Trojan horses that I cannot remove

    I have windows XP 32 bit. A few days ago I couldn't open microsoft Web sites unless I was in safe mode. My Virgin Media anti virus keeps turning it off yourself and when I try to run microsoft virus analysis the computer just turns off. I ran Malwarebytes and it found 2 trogans with the name of microsoft in them. but when I tried to reboot the computer the problem is still there. Help, please

    Try to download and run a full system scan with:

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    If defective, then try using Windows Defender offline connection and create a bootable scanner:

    http://cyberdefend.WordPress.com/2012/01/07/boot-Windows-for-scan/

    http://Windows.Microsoft.com/en-us/Windows/what-is-Windows-Defender-offline

  • Please help, audio problem with XW6600 and NVS 315

    Greetings:

    I just buy a renovated, XW6600 Xeon dual processor, 8 GB of RAM, Windows 7 Professional 64 bit system.  The PC comes with a nVidia NVS 290 graphics card.  Everything works fine and the speaker in the motherboard Jack produces sounds.  However, when I change the NVS 290 with a NVS 315 (it is a HP 720837-001 replacement part), the sound stops working.  The speaker in the systray icon has a red circle with an "x" in it.  If I right click on the speaker, the playback device, it shows two TV as icon one above the other with a red arrow pointing down and a description on the righ side saying "Digital Audio (HDMI) high definition Audio Device not connected.   I have the same result in 64-bit Windows 8.1.  The problem is resolved, if I reinstall the NVS 290.  For both cards, I use the latest version of the nVidia Driver and driver HP.  Am I missing something?

    Any help to solve this problem is greatly appreciated.

    First of all, you want to be sure to load the latest version of the BIOS on this xw6600.  It is from the end of 2012.

    I met this problem several times... do not know if these suggestions will help, but I think that your experience may be related to previous losses audio when the latest drivers are loaded that contain "pilot high-resolution audio" in the game of video driver.

    The current Quadro NVS 315 W7 64 bit graphics drivers Quadro ODE 320.92, which work well in my xw6400, xw6600 and xw8400 workstations running several types of cards Quadro FX and NVS.  If you have used the standard installer downloaded and used the standard "recommended" install that he threw into about 5 pieces, that only one you really need (selected by default single main driver in a custom installation).  That's all I use now, throughout my nVidia installs, and I also check the clean install box on the last page before loading begins in the custom installation path that I go down.   So, to charge fees, I first uninstall anything nVidia via the control panel and then hunt around on drive C for nVidia remains in the trash.  This includes any folder with nVidia in its title, including temporarily enable Show hidden files and folders in the tab views in the Folder Options Control Panel.  I then reboot and finally make this unit "clean install" - checked - technical of custom installation.

    Try this approach first... it's easier.  You might have luck, and audio can return.

    One of the elements that was installed in the "recommended" non-custom installation was a driver of nVidia high-resolution audio.  This seems to conflict with / replace the RealTek driver who was using your audio RealTek chipset on the motherboard.  I discovered that there is a part of BIOS for those workstations which is usually hidden, but sometimes becomes visible with installing drivers high-resolution audio.  F10 in the BIOS, go to the Advanced tab, down for the terminal Options and check if rebalanced Audio appears just above monitor follow-up.  If he was not hidden by the nVidia high-resolution audio driver load then it will virtually always disable status.  Change to activate, F10 to save the change and BIOS don't forget to save changes on exit and F10 again when BIOS asks.

    We got exactly that occur as a result of installing the drivers nVidia GeForce to a GeForce GTX 650 Ti BOOST on a xw8400 and I saw that happen with these latest nVidia Quadro driver packages, too.

    This is the second best method to solve the problem, if it works.

    Another approach is to save your current BIOS settings via replicated in the BIOS Setup, load into my settings to clone xw6600 (attached) and see if the sound comes back like that.  Sometimes integrated Audio remains hidden when we F10 in the BIOS, but my clone settings was set correctly even though the option remains hidden.  You can open the attached CPQSETUP. TXT file with Notepad and Find allows you to do a search for "audio"... the second shot will be the Audio integrated, one.  Note that it is configured to allow this clone... He usually lies in a status of disable, otherwise.

    You can edit it with Notepad, except that, and charge that the version of your original settings of the BIOS using replicated Configuration changed if you want to use this technique with other types of work, such as the xw8600 workstations.  You will always find this entry via this method, even though it is hidden when you look directly into the BIOS, so it's a good thing to know.

    It is the third most easy.

    Fourth... you start dinking autour with drivers in Device Manager.

    Replicated configuration function of the BIOS with a USB, it is very easy to save your original BIOS settings, try another set of settings and return to your original if you wish.  The clone CPQSETUP. TXT file can be edited by hand (with caution) to convert a Disable to activate, for example, saved and then downloaded into your BIOS firmware.  If you want to try attached BIOS xw6600 clone settings make sure to change off the coast of the "xw66002" so that only CPQSETUP. TXT is on your USB... Replicated configuration works which with a file named exactly that.

    I posted here a few days on exactly the configuration of the workstation this clone has been optimized dethrone archive on it.

    Finally, please post back with your findings because it has become a more common problem, and the more data we have here: it is likely, we will find the fastest solution boilerplate.

  • Regional settings please help ADF problem

    I use ADF to develop a multilingual application
    I have a problem with the locale in dialog boxes

    In the index page, I placed two buttons, one for English and one for Arabic, I used the following code
    FacesContext ctx = FacesContext.getCurrentInstance ();
    UIViewRoot uiRoot = ctx.getViewRoot ();
    Locale locale = new local ("ar");
    (local) uiRoot.setLocale;

    works quite well with normal JSF navigation with false redirection
    but when you use the dialog box (Ex: dialog: FAQ), it does not work.
    I tried to put the local tag property of view in the JSF dialog box to be an attribute of the managed bean, but it doesn't also

    Help, please

    I don't see this error, but you could do more defensive custom page lifecycle code by changing lines 37-47, of CustomFacesPageLifecycle.java of:

          for (ControlBinding cb : (List)lfContext.getBindingContainer().getControlBindings()) {
            if (cb instanceof JUCtrlListBinding) {
              JUCtrlListBinding lb = (JUCtrlListBinding)cb;
              // If the list has a translatable null value
              if (lb.hasNullValue()) {
                // Force the list of values for the list binding to be recalculated
                // so that the null value text will be in the new locale.
                ((JUCtrlListBinding)cb).setValueList(null);
              }
            }
          }
    

    to do this instead:

          if (lfContext.getBindingContainer() != null) {
          for (ControlBinding cb : (List)lfContext.getBindingContainer().getControlBindings()) {
            if (cb instanceof JUCtrlListBinding) {
              JUCtrlListBinding lb = (JUCtrlListBinding)cb;
              // If the list has a translatable null value
              if (lb.hasNullValue()) {
                // Force the list of values for the list binding to be recalculated
                // so that the null value text will be in the new locale.
                ((JUCtrlListBinding)cb).setValueList(null);
              }
            }
          }
        }
    

    I'm not used to work in a locale from right to left, myself, not sure if who will present other problems.

    I just wanted you to see an example of a solution of two local which you can change if all goes well then if necessary to ensure that it works for specific local both, you need to press.

  • Please help - sound problem

    After reformatting my laptop and re install xp pro everything works but my sound, first suggesting I want to renew my sound card drivers or the same update my BIOS I would like to mention that I have already taken these stept, the microphone works but I have no sound coming out of the laptop...

    Any ideas?

    [Edited by: admin April 2 05 15:40]

    Hello theodd1out

    If you have two partitions, you can install the operating system one comes first by using the installation in Expert mode. In this case, all data on the second partition will be backed up. If you are using a Standard installation in this case all partitions and data will be deleted. In this case it will be created a partition and OS will be installed.

    Fenriz is the best solution to preinstall the device using the recovery CD. In this case the unit will be clean installed. Otherwise, remove the sound card in Device Manager, detect the new hardware. Reinstall the sound card and the modem driver again. If two devices are recognized and installed correctly, check the properties of audio devices and all the settings there. In the future if you have any problems, please describe the situation better. If you write, I have no sound is not easy to say what can be the problem.

    Good bye

  • Please help backup problem

    Hi all!  Please forgive my English.

    Log Dryrun

    dryrun - Pastebin.com

    Debug log

    http://pastebin.com/vkVT2jGD

    ESXi: 5.5

    Backup data store type: local

    I don't know why backup impossible. How to solve this problem?

    Thank you

    Well, I know what is happening now. Just tested the fix in my lab and pushed the changes to github. You can see the changes here https://github.com/lamw/ghettoVCB/commit/32487120adcf8a01b7e1ab73baa711fcc9a93bc0 or just download the latest version. Let me know if you still have questions

  • We bought a license for adobe Photoshop cs5 and the machine, we have installed this app is having hardware problem then we moved this hard drive on another machine and now there are registration conflicts, and we couldn't save it please, help us to solve

    We bought a license for adobe Photoshop cs5 and the machine, we have installed this app is having hardware problem then we moved this hard drive on another machine and now there are registration conflicts, and we couldn't save it please help us solve this problem.

    Most likely, you will need to contact Adobe to reset your license.

    Contact the customer service

  • Hi people I have some hard drive problems, please help :)

    Hi guys, I just bought a Sata HDD internal 2 TB, but I do not see it in 'my computer', but when I go to computer management I see, I tried to do something with it, but an error pops up, I treid deleting and creating a new partition, but just before the end, I get this error : "The operation failed to complete because the disk management console view is not updated.  Refresh the view by using the refresh task.  If the problem persists close the disk management console, then restart disk management or restart the computer. "Please help. TNX

    Did you try to restart and try again as he proposed?  Assuming that you I had two ideas.  First of all, if your system is not aware of Windows updates, I would now.  Secondly, I have had good success called Easeus Partition Master that you can download from http://easeus.com .  I see they have a page for a free version 9.1 for users running the environments of 32 and 64 bit to http://www.partition-tool.com/personal.htm .

    I hope this helps.  Good luck.

  • My hard drive will not be displayed in the Finder, please help!

    I tried several options to try to solve my problem, but it is not good. I have an external hard drive Seagate 2 to. I used it for about 6 months, but one day it just does not appear in the Finder more. I checked in disk utility and it shows up there, but it is labeled as "Uninitialized 2 TB Windows NT specifien". It seems strange, that it now says Windows when I used it fine on my Mac in the past. It won't let me hit mount either. Please help me.

    Thank you.

    Did you have the Seagate utilities or any installed third-party NTFS software? The drive has never been formatted to support OS X?

    Connect the external drive and OS X Terminal, after the release of

    diskutil list

  • My hard drive and the Extras have plenty of space. Yet several times each and every day, I'm getting flashed "virtual memory minimum insufficient..." Virtual memory pagefile... "Any joy? Please help if you can. Thank you. Cecilia.

    Question

    I have another type of problem with Firefox

    Description

    My hard drive and the Extras have plenty of space. Yet several times each and every day, I'm getting flashed "virtual memory minimum insufficient..." Virtual memory pagefile... "Any joy? Please help if you can. Thank you. Cecilia.

    This has happened

    Each time Firefox opened

    Only a few weeks ago, (tried everything)

    Troubleshooting information

    ?

    Version of Firefox

    3.6.3

    Operating system

    Windows XP

    User Agent

    Mozilla/5.0 (Windows; U; Windows NT 5.1; en - us; RV:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)

    Plugins installed

    • -Adobe PDF plugin for Firefox and Netscape
    • Default plugin
    • Shockwave Flash 10.0 r45
    • Windows Presentation Foundation (WPF) plugin for Mozilla browsers
    • Java plug-in 1.6.0_07 for Netscape Navigator (DLL Helper)
    • Npdsplay dll
    • DRM Netscape Plugin store
    • DRM Netscape Object network

    Read about virtual memory here: http://www.ehow.com/windows-xp-virtual-memory/

  • HP starts not problems of serval please help

    Hello, when I try to turn on my computer it shows the following error:
    Windows has encountered a problem communicating with a device connected to your computer, this error can be caused by unplugging a removable storage device, such as a usb external drive when the appliance is used, either by a defective as a hard disk hardware or the cd-rom drive which is a failure. Make sure that all removable storage is properly connected, and then restart your computer. If you continue to receive this error message, contact the manufacturer of the equipment.
    Status: 0xc00000e9
    Info: an unexpected i/o error has occurred

    My laptop is a pavilion dv6
    Please help me because I paid a lot for this laptop

    It will work unless you use HP Recovery Discs to install Windows. For those who use the hard disk must be at least as large a capacity. A retail disk can be used on the ssd.

  • Windows XP SP3 Professional Edition problems with the Live Essentials tried almost EVERYTHING please help...

    I am running Windows XP Professional Edition and have tried almost way possible from almost all of the codes, so that it can install. He always tells me a different code almost as something it must not 'dismantling' MSE. I am not certified has + by all means! But I do not know when you searched for sites Microsoft etc., you are looking for better & learn yourself. But I'm at the point where I say "I wanted I had saved the old Version of the WLE who worked great." Just to give you a clue, which hopefully will help me can govern this list I've done on:

    1. search and read questions from other people who were identical and followed step by step, when I received him seemed to be more common error Code. He said to download update Windows Cleanup Utility and remove everything said Microsoft Live in there. I did this and it just via a different error Code

    2 I tried to download directly the WLE "integer" and install it

    3 I am the admin. and always "Ran under" admin

    4 I watched the system requirements & everything I had was compatible, even if I n "t SQL, but went and downloaded and installed, it

    5 I ran in safe mode, and keep in mind that I do every time a cleaning in the place where there is no trace of even the new WLE Installer, b/c I read learned that you cannot leave this trace.

    6 and to be honest, I do all this work b/c I think WLE possesses one of the in my opinion, best photo library it y a. quick, simple, but still has all of the improvements that I use direct mail and really liked the MS Outlook 07 connector is what I have right now.

    7 I've never seen a free software that is so sensitive that it need to go through all these steps

    -Thoughts on any other reasons to help, I would take even the older edition if I could find it, but as soon as I eliminated and did a cleanup & reinstall my hard drive, it hit me. I forgot to record the show and then, think it is free I'll get it online but it has been updated and I need help which is much smarter than me, I will not STOP until I know what and why. BTW, it is not a problem with a firewall or anything b/c I disabled Norton and am MSE tent which was / is child's play, it's not dirty space, but it does the job and it's great and that's why I want the photo gallery for the least and Sync Mail to Outlook.  As I have said that I have nothing else, I know to do, I even tried on another computer running the exact same OPS than mine. And it's the same way. ??? Please help me to get someone...

    Thank you very much in advance for any help other than that described previously, or if someone from Microsoft could remotely help me if it is possible.

    -CM-

    Hmm. check that you can start the Windows Installer service and it is enabled.

    1. Click Start > run...
    2. Type cmd /K net start MSIServer
    3. Press enter and monitor messages in the window of the console open.

    If the service is started successfully, then download the offline version of the WLE from here and try to install it. Select all items to install because they are dependent on each other.
    Download the new log file, if it fails to install again.

  • I had a "Blue screen" problem, please help me!

    Well, I don't really know the source but it happened several times already, here are the details of the error:

    Signature of the problem
    Problem event name: BlueScreen
    OS version: 6.0.6001.2.1.0.768.2
    Locale ID: 2057

    Files helping to describe the problem (some files may be is no longer available)
    Mini091109 - 01.dmp
    SysData. XML
    Version.txt

    See a temporary copy of these files
    WARNING: If a virus or other security threat caused the problem, open a copy of file can harm your computer.

    Additional information about the problem
    BCCode: 1000008e
    BCP1: C0000005
    BCP2: 8A90628F
    BCP3: 9CCAEDB0
    BCP4: 00000000
    OS version: 6_0_6001
    Service Pack: 1_0
    Product: 768_1
    Information about the server: 7ec0ad43-82ec-418c-af58-c7d4e1d1d9e8

    copied and pasted this information of view problem history in Control Panel and it was the biggest mistake, what happened is that the PC I use suddenly gets a blue screen with big writings saying something like she stops by unexpected error. After rebooting, it says "Windows has recovered from unexpected shutdown" and gives me a chance to see solutions on the net, but the work does'nt. Fortunately, I don't have an error for hours, but I'm afraid it may happen again. Please help me.

    My laptop has:
    AMD Athlon processor
    1 GB of RAM
    1.60 Ghz
    ATI Radeon X 1250
    Windows Vista
    120 GB hard drive (33 GB free now)

    I think that the mistake occurred whenever I might have too many applications open, especially in the section of the status bar, that I can't do it, please help me!
    Thank you.

    Hello

    Think the drivers - do all.

    Could be a nuisance pilot. Update your drivers manually looking at system manufacturer and
    Sites of the manufacturer of the device.

    This is my generic how updates of appropriate driver:

    For drivers, visit manufacturer of emergency system and of the manufacturer of the device that are the most common.
    Control Panel - Device Manager - Display Adapter - note the brand and complete model of your
    video card - double - tab of the driver - write version information. Now click on UPdate Driver (this
    cannot do anything as MS is far behind the certification of drivers) - then do a right click - Uninstall - REBOOT
    This will refresh the driver stack.

    Repeat this for network - card (NIC), Wifi network, sound, mouse, and keyboard if 3rd party with their
    own the software and drivers and all other main drivers that you have.

    Now go to the site of the manufacturer of system (Dell, HP, Toshiba as examples) (restoration) and then of the manufacturer of the device
    (Realtek, Intel, Nvidia, ATI, for example) and get their latest versions. (Look for the BIOS, Chipset and software)
    updates on the site of the manufacturer of the system here.)

    Download - SAVE - go to where you put them - right click - RUN AD ADMIN - REBOOT after each installation.

    Always check in the Device Manager - tab drivers version you install actually shows up. This
    because some restore drivers before the most recent is installed (particularly that audio drivers) so install a
    pilot - reboot - check that it is installed and repeat if necessary.

    Repeat to the manufacturers - BTW on device at the DO NOT RUN THEIR SCANNER - manually check by model.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    If you update the drivers manually, then it's a good idea to disable the facilities of driver in the Windows updates,
    This leaves ONE of Windows updates, but it will not install the drivers who are generally older and cause
    questions. If updates offers a new driver and then hide it (right click on it) and then go look for new ones
    manually if you wish.

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    Hope these helps.

    Rob - bicycle - Mark Twain said it is good.

Maybe you are looking for