I wonder if this can be done with a sql instead of a code pl\sql' in SQL and PL/SQL

delete

@OP,

As Frank said expected according to the sample data will be very useful.

If I understand you correct, so what follows is the output you want (Unabridged). Is this correct?

ECON 2555 three courses: [(ECON 1101 ou 101) or (won ECON 1101 with placement)] AND [(ECON 1102 ou 102) or (won ECON 1102 with placement)] AND [(MATH 1600-3999 ou 161-399 ou (Placement en MATHS 1700) or (Placement in MATH 1750) or (Placement in MATH 1800) or (Placement in MATH 2000 level))]

If so the following query would start point... just to show that this is possible in SQL (no need for PL/SQL)

There is some lack of consistency between your description and examples of data.

You said

Won ECON 1101 with investment coming from TVATTS_DESC = ECON:

However sample data contains NO any row for ECON in TVATTS_DESC

Also, I made several ASSUMPTIONS about your model and data according to the data from the sample, so this request may not work for your real cases. In any case this query should give you a good starting point (I hope).

> film format A60 outstr col

> with x as)

SELECT

AREA                 ,

TERM_CODE_EFF,

SSET                  ,

SUBSET,

SUBJ_CODE,

CRSE_NUMB_LOW,

CRSE_NUMB_HIGH,

ATTS_CODE,

TVATTS_DESC,

-case when a.subj_code is null then substr (b.tvatts_desc, 1, instr(b.tvatts_desc,':')-1) to another a.subj_code end drvsubj_code

Of

SMRACAA_TEST has,

TVATTS b

WHERE AREA = "ECON2555."

AND ATTS_CODE = TVATTS_CODE

order by Tess, subset)

, like)

Select x.*

,

case

When the tvatts_desc is not null then ' (Placement in ': substr (tvatts_desc, instr(tvatts_desc,':') + 1) | ")' »  || ' '

When the crse_numb_high is not null then subj_code | ' '|| crse_numb_low | '-' || crse_numb_high | ' '

When crse_numb_high is null and row_number() over (partition of domain, Tess order by subset) = 1

then ' ' | subj_code | ' '|| crse_numb_low | "or" | Lead (crse_numb_low) over (partition of domain, Tess order by subset)

Another null

end tvstr

x where drvsubj_code is not null

)

Select the separate area, listagg (tvstr) Group (order by null) on outstr (partition by area)

of y;

OUTSTR AREA

---------- ------------------------------------------------------------

ECON2555 ECON 1101 or ECON 101 1102 or 102MATH 1600-3999 MATH 162-39

9 (positioning in MATHEMATICS 1700) (placement in MATHEMATICS 1750) (Placeme

NT in MATHEMATICS 1800) (Placement in MATH 2000)

I hope this helps.

Tags: Database

Similar Questions

  • I have a lightroom stand-alone version 6 on my desk and want to install on my laptop. Any advice on if/how this can be done?

    I've recently updated on a Canon 5 d R to see that Lightroom 5 did not recognize the files. I bought and installed Adobe a stand-alone Lightroom 6 on my desktop and this version works fine with the new camera. I want to install a copy of Lightroom 6 on my laptop, so that I can use it when traveling. However, I was not able to know how to proceed, despite a lifetime of research on Adobe's Web site. Does anyone know how (or if) this can be done?

    The server may be busy. Try again later. Or download the trial of creative cloud and serialize as a standalone application.

    How to convert a trial CC 6 Lightroom Lightroom

  • Secondary keys composite and ethical, can be done with a single field?

    I'm sure that this cannot be done, and I think that know why.  But I ask the question if I missed something.

    Assuming the following:

    @Entity

    public class {Parent}

    @PrimaryKey

    Private long id;

    }

    @Entity

    public class {child

    @SecondaryKey(relate = Relationship.ONE_TO_ONE)

    private key of ChildKey;

    }

    @Persistent

    public class ChildKey {}

    @KeyField (1)

    parentId long private;

    @KeyField (2)

    private String name;

    }

    Is it possible to transform the 'parentId' ChildKey field a relatedEntity to the Parent object?

    It seems that if I do a field duplicate children like that?

    @SecondaryKey (refer = Relationship.MANY_TO_ONE, relatedEntity = Parent.class)

    parentId long private;

    In my case the foreign key field is always the first field in the ChildKey so it is easy to find in the index to check.

    I looked around, but I'm starting to think that it is impossible.

    Thank you.

    You are right.  You will need to reproduce the field.

    -mark

  • I need to change a number of bookmarks (in a simple way) and wonder if it can be done simply, other than to change the properties of each one, one by one?

    A site has been moved. I have a lot of bookmarks pointing to the site, with added information for each of them. Is there a way I can edit these bookmarks, simply by changing the common information, without having to do it one by one.

    IE: I can change the bookmarks in the form:
    www.oldname.com/uniquestuff to www.newname.com/uniquestuff in a fast and effective way.

    You can use a text editor to modify the most recent backup of JSON and do a search and replace for this URL.

    A JSON backup is a long line without any line break, if you need an editor that is capable of managing such a file.

  • Why you ask me to upgrade to explore * when you say then it can be done with Windows XP I have?

    Why you ask me to upgrade to Explorer 8, knowing that it is impossible as long as I have Windows XP?

    Why you ask me to upgrade to Explorer 8, knowing that it is impossible as long as I have Windows XP?

    A fully patched Windows XP running Internet Explorer 8 very well.  Internet Explorer 9 - not so much.

    I assume you mean 'Microsoft' with your 'you' All Inclusive?  Welcome to the forum in the world of base, peer-to-peer/to volunteer users * organized * by Microsoft servers.  You probably don't talk to anyone from Microsoft here.

  • What can be done with a loose seal around the screen?

    The thin seal around my mac pro screen has come loose.  What is the solution to be tied?

    Just what Mac Pro model you have?

    You have posted in the forum Office Mac Pro and the office is not equipped with a screen

  • If I chose my iphone to backup to the cloud and the wifi when charging. This will be done with the smart case tied as he is still technically in charge?

    The smart case means that my iphone is being backed up to the cloud 24/7?

    I don't think so, I think that the Smart case gives you just the biggest autonomy.

  • Can anyone help with 0x8009001d windows standalone installer error code does not not usually leave my Windows Manager of development I am using windows vista 32

    messages error 0x8009001d every time I try to download then says windows standalone installation does not

    Quote your full version of Windows (for example, WinXP SP3;) Vista 64 - bit SP2; Win7 RC. Win7) when you post in a forum or a newsgroup. Please do it in your next reply.

    Try to do a reset:

    How to reset the Windows Update components?
       http://support.Microsoft.com/kb/971058 ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • I got this message window on my laptop "unexpected http response status code 12029" the other week and once again this day my email page fair hungs upward

    a reminder was told that if I got this message again just contact your team support or a group

    Hello
     
    1. when exactly you get this error message?
    2. using Internet Explorer or email client?
     
    We did some research on this question, unfortunately could not find any information on the error message for Windows.

    This error occurs only if there is a problem with the e-mail service provider or if there are problems connecting to the server. If you use Google or Yahoo or any other service provider email, then please contact their support for more support team.
     
    Kind regards
    Syed
    Answers from Microsoft supports the engineer.

  • Using java script with QML, save a text in a variable of java script and showing in a label

    I'm trying to find a way to take a text entered by the user into a text field and display it in a label using java script. The trickiest part is I want to be seen in the label after restarting the application.
    Any idea?
    Should I use a JS file with functions. If so, what are best practices?

    Thanks in advance!

    This example uses a little bit of C++, I'm not sure if this can be done with purely JS

    in your text box or label apply onTextChanged you probably want to have a Setup button to activate & deactivate the area of text, or if they delete it, the text of the label would be erased

    . QML

    TextArea {
        id: myTextArea
        onTextChanged: {
            myTextArea.text = myLabel.text;
            //you could also apply ^ to a button's onClicked function etc
            App.saveValueFor("mySavedText" myTextArea.text);
        }
    }
    Label {
        id: myLabel
        text: App.getValueFor("mySavedText", "");
    }
    

    App.saveValueFor (); QSettings uses will have to be reset in your ApplicationUI.cpp & .h

    .cpp

    App is obtained by setting a context property

    qml->setContextProperty("App", this);
    
    QString App::getValueFor(const QString &objectName, const QString &defaultValue)
    {
        QSettings settings;
    
        // If no value has been saved, return the default value.
        if (settings.value(objectName).isNull()) {
            return defaultValue;
        }
    
        // Otherwise, return the value stored in the settings object.
        return settings.value(objectName).toString();
    }
    
    void App::saveValueFor(const QString &objectName, const QString &inputValue)
    {
        // A new value is saved to the application settings object.
        QSettings settings;
        settings.setValue(objectName, QVariant(inputValue));
    
    }
    

    all

    public:
    
        Q_INVOKABLE
        QString getValueFor(const QString &objectName, const QString &defaultValue);
    
        Q_INVOKABLE
        void saveValueFor(const QString &objectName, const QString &inputValue);
    

    You'll also need to slect the permission of files shared in the descriptor for QSettings bar to work

  • Is it possible to connect with FACEBOOK Customer / Tech Support? I got my ID stolen FB and I can't connect with a living soul!

    Is it possible to connect with FACEBOOK Customer / Tech Support? I got my FB ID stolen and I can't connect with a living soul! I'm really tired of FACEBOOK and ZUCKERBERG, boasts getting its 1 billionth Member, meanwhile, its members have problems with scams, hackers, even FACEBOOK is now BANNING people for the addition of family and friends! This must be a scam any seriously! Im sick of him, he turned my whole as for social networks. If it wasn't for the fact that I have almost all of my family in Europe and around the world all in one place, I would certainly remove my account. The problem with that is if you delete your FACEBOOK PROFILE, you don't actually remove them. FB keeps them because they are the property of Facebook the minute climb you the post! This information is in the conditions of joining Facebook, but not on the registration page! that is wrong with this picture. THEY HAVE NO SUPPORT, NO CUSTOMER SUPPORT, IT IS Y HAS NO PHONE NUMBER YOU CAN CALL TO REPORT YOUR STOLEN ID AND NOW I HAVE TO ALL RUN IT AROUND TO TRY TO FIND A CYBER CRIME UNIT WHO WILL HELP ME! How can the other thing, I know if Mytechgurus.com is a legitimate business. As I've been hacked and my ID stolen (curiously enough all what's happened just as I was banned from Facebook to add a friend, I've not seen in 36 years.) They have deleted my friendship with her and banned me for 7 days)! Facebook. MyTechGurus.com have charged me $700.00 for 2 pc for serivce of 24/7 for 2 years. Granted they have always been there in the last 6 weeks to help with all the problems that the pirate had created. They've phoned while I had a technician remote access online help with verbal information as it was a huge problem. but I put it back now because a governing body here in Australia called SCAM WATCH who is supposed to tell you who is a scam and is not was good enough to tell me that they are there only to report a scam, they can not physically tell you if one of them is actually a scam or not! I was left to literally chasing my own tail! HE IS THERE ANYONE TO HELP ME AT ALL!

    Hello

    Sorry, we can not help except at the point you in the right direction.

    The Microsoft Community is a site of support of peer reviewed for Windows
    and some Microsoft Products and has absolutely no connection or influence
    with Facebook.

    Rob - SpiritX

  • File 'Install' Windows XP is 30 + concert and the system is almost out of space, how this can be fixed?

    I added memory to a Windows XP Pro machine and concluded that the system was almost out of space!  After investigating this problem found the installation in the folder windows file was more than 30 gig by itself, the files in this folder back to the initial installation of Windows.  How to clean this file?

    I added memory to a Windows XP Pro machine and concluded that the system was almost out of space!  After investigating this problem found the installation in the folder windows file was more than 30 gig by itself, the files in this folder back to the initial installation of Windows.  How to clean this file?

    You say that a "report" is 30 GB?  Or a folder containing files?

    Maybe overkill - but unless you have less than 1 GB of memory (live RAM) of the system, the upgrade of memory was probably exaggerated too with WIndows XP.  ;-)

    Search for malware:

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

    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.

    If you want, come back and let us know a bit more information on your system - particularly the brand / model of the system, you have - and maybe someone here can guide you to the place s x of law to this end. This isn't 100% necessary - but I'd be willing to bet that you would gain some performance and features in making this part.

  • I get a message that my D: drive is almost full. What can be done to free up space.

    I get the message that my D: drive is almost full. What can be done to free up space? Basket contains 0 files to remove and clean disk and defragmentation do not produce results. Help, please!

     
    Saturday, November 27, 2010, 10:48:08 + 0000, US Popeye wrote:
     
    > I get the message that my D: drive is almost full. What can be done to free up space? Basket contains 0 files to remove and clean disk and defragmentation do not produce results. Help, please!
     
     
    Is this a computer supplied by the manufacturer with Windows
    pre-installed?
     
    If so, D: is probably a recovery disk partition. This is where
    to allow you to reinstall Windows if it is necessary. It comes
    full (or almost full) and you should be sure never to write anything
    for her, or remove what either of him.
     

    Ken Blake (MS-MVP)

  • BlackBerry smartphones can not synchronize with the USB cable plugged into charge pod

    Hello

    I read on the web site of shopblackberry.com, in the details of charge pod ( http://www.shopblackberry.com/_blackberryaccessories/cgi-bin/pd.cgi?frompage=category&page=product_d... ) that the pod can handset with charger travel or data cable for charge and/or sync with a BlackBerry smartphone. So, my question is related on a problem or a misunderstanding of me to this description.

    I want to know if we could recharge and synchronize the BlackBerry via USB cable or is only responsible for the BlackBerry when connected that way. My second question is, is it possible to synchronize the BlackBerry with the USB cable plugged into the pod or not?

    Because I got a request from one of my users about the fact that his BlackBerry 9000 can not synchronize when it is on his group.

    Thank you very much!

    Hello

    It's a loading dock. It is useful, because just drag you your "BOLD" in there and it will load (just like the 8300 Curve).
    If you want to synchronize, you can plug a usb on the side of the appliance cord. This can be done while the machine is in its dock, where the description.

    I have the same crib, but for the 8300. It's really worth buying. I'm happy with it every day.

  • Too many antivirus applications can cause problems with degradation of my computer?

    Applications of Internet protection

    =======================

    Since upgrading my Dell Inspiron 530 from Vista 32 WIN7 32 originated in the month of August, I found these programs within my OS System.

    It is almost certain that some conflicts here have asked my useful apps.

    Firefox no longer works. Chrome has flaws also. Gmail has somewhat lost its useful features.

    You have opinions, the following need to be uninstalled? Which, if any, should be the priority?

    Are there other applications known to cause harm like this?

    ============

    AVG safe search

    Glary Utilities

    McAfee

    Norton Internet Security

    PC Antivirus

    PC Cleaner Pro (PC cleaners)

    PC utility Tools

    Windows Defender

    + 1 first get rid of McAfee and Norton. Both are known to block things silently and bogged down machines with their heavy use of resources and analysis of this and that.

    Ditch then PC Cleaner Pro.  A little harsh work that many have trouble getting out of their machine.  If you want to use a 'clean' the CCleaner program test.
    If PC Antivirus are the same people who unload as well?
    Wire removal PC Cleaner Pro-

    Avoid leaving one of these utilities register "cleans" however.  Registry cleaning is a return to slow machines and the small HARD drives and RAM and can do more harm than good.
    The main reasons which need cleaning can be done with the occasional defragmentation and Windows disk cleanup (after installation of software or games, is a good time) drive hard (SSDS do not need defragmentation).
    You can manually delete the files in the Temp folder in your.
    The user-App Data-Local folder if you like. Other than that, just keep the machine erase useless files and uninstall unused software using programs and features and your machine should run smoothly.

    Also go to the System Configuration - type msconfig into the start menu search bar or in
    the 'Run' - command and go to the Startup tab.  Clear the check box next to all programs
    which need not be loaded when you start in Windows.

    You could decrease the other "bloatwares' so - Glary Utilities and PC utility Tools that they can be useful, but mostly they just make tweaks that you can do it manually the applications the Panel configuration or places like your taskbar and start menu"Properties ".

    AVG is OK, but MS Security Essentials has grown in popularity (I always use Avast), as
    is Malwarbytes (often as a crossroads/backup reference and does not work all the time).
    The threat of the new wave is rootkits. Rootkits is difficult (impossible?) to AV to detect, so
    you need something like BitDefender Rescue Disk for detection of rootkits. This is performed from a
    CD/DVD or a bootable flash drive.
    Sophos Anti-rootkit will run Windows, but it is not as effective as BitDefender.
    Note that there are legitimate programs that work in the same way as rootkits (eg. - SecureRom).

    I currently Avast resident and have Spybot Search and Destroy and Malwarebytes installed to use to cross reference analyses. I have no problems with these installed three at the same time.

    .

Maybe you are looking for

  • Cannot search web sites unless I have reset firefox whenever I want to use firefox

    Whenever I open firefox and try and perform a search on any web site, Firefox stops working unless I have reset firefox. I don't want to do every time, it does specify that when firefox upgraded to 20.0.1

  • HP Deskjet 2540: Enlarge/reduce the size of the document during scanning.

    Is it possible to enlarge/reduce size of document on the Deskjet 2540? My wife uses this function to its sewing patterns. If not able, could someone please recommend software? Thank you Tom

  • Language of billing is wrong

    I live in the Dutch part of Belgium (Flanders), but I get my information in French. Moreover, I get also some advertising/news on my xbox one in French. In fact, most people in Belgium speak Dutch Belgium, so I'm tired of doing all my stuff billing a

  • Problem installing LifeCam VX-2000

    A few months ago, my roommate bought a Webcam LifeCam VX-2000, he used it to Skype and msn, and I wanted to use it as well, so I installed the cd on my laptop and started using it too. now my friend left and he took the webcam as well, and so I went

  • Use DX80 camera with laptop?

    Can I do the DX80 camera act as a webcam on a laptop please? I guess that the USB cable is used. Reason for some portable computers do not have a webcam, and others are closed and with their base. Thank you Tym