PLEASE HELP, i'm running out of time, .......sample data included..!!

Hi, i need some help.
my query is:
SELECT CANTEACH.LECTURERID, LECTURER.SURNAME, LECTURER.FORENAME, MODPART.MODPARTID, MODPART.MODPARTDESC, MODUL.MODULNAME, MODUL.MODULEVEL
FROM CANTEACH, LECTURER, MODPART, MODUL
WHERE CANTEACH.LECTURERID = LECTURER.LECTURERID
AND MODPART.MODULID = CANTEACH.MODULID
AND MODPART.MODPARTID = CANTEACH.MODPARTID
AND MODPART.MODULID = MODUL.MODULID
<----------------------------------------------->
AND CANTEACH.LECTURERID = 'L'
OR CANTEACH.LECTURERID = 'P'
AND NOT CANTEACH.LECTURERID= ('L','P')
<-------------------------------------------------------------->
this was my first guess, i know it's wrong, thought i might be able to work it out from the errors, but no luck, I need help on this one.
i'm trying to ask the db, which lecturer can teach 'only' L OR P but not both togther.
thanks in advance
Jd.
Edited by: user10952460 on 15-Apr-2009 12:33
Edited by: user10952460 on 15-Apr-2009 13:33

SORRY ABOUT THIS, I'M NEW TO FOURMS. HERE IS WHAT YOU WANT..
INSERT INTO MODUL VALUES ('C100','INF SYS','1');
INSERT INTO MODUL VALUES ('C101','PROG 1','1');
INSERT INTO MODUL VALUES ('C102','VP1','1');
INSERT INTO MODUL VALUES ('C103','BUS COMP','1');
INSERT INTO MODUL VALUES ('C104','PROG 2','1');
INSERT INTO MODUL VALUES ('C200','DATABASE','2');
INSERT INTO MODUL VALUES ('C201','SYS ANAL','2');
INSERT INTO MODUL VALUES ('C202','VP2','2');
INSERT INTO MODUL VALUES ('C203','HCI','2');
INSERT INTO MODUL VALUES ('C204','OO PROG','2');
INSERT INTO MODPART VALUES ('C100','L','LECTURE');
INSERT INTO MODPART VALUES ('C101','L','LECTURE');
INSERT INTO MODPART VALUES ('C102','L','LECTURE');
INSERT INTO MODPART VALUES ('C103','L','LECTURE');
INSERT INTO MODPART VALUES ('C103','P','PRACTICAL');
INSERT INTO MODPART VALUES ('C104','L','LECTURE');
INSERT INTO MODPART VALUES ('C200','L','LECTURE');
INSERT INTO MODPART VALUES ('C201','L','LECTURE');
INSERT INTO MODPART VALUES ('C202','L','LECTURE');
INSERT INTO MODPART VALUES ('C202','P','PRACTICAL');
INSERT INTO LECTURER VALUES('JBW1','WILLIAMSON','JIM','DES6');
INSERT INTO LECTURER VALUES('PKL3','LAGER','PETER','DES6');
INSERT INTO LECTURER VALUES('AJD2','DEWHURST','AMANDA','DES6');
INSERT INTO LECTURER VALUES('RAC1','CAMPBELL','ROB','DES6');
INSERT INTO LECTURER VALUES('CAB2','BRIERLY','CLAIRE','DES6');
INSERT INTO LECTURER VALUES('PRC3','CARLISLE','PHIL','AEW3');
INSERT INTO LECTURER VALUES('CTN3','NOON','COLIN','DES6');
INSERT INTO LECTURER VALUES('AFI1','ISHERWOOD','ADAM','AEW3');
INSERT INTO LECTURER VALUES('MWS4','STANHOPE','MARTIN','DES6');
INSERT INTO LECTURER VALUES('EJK3','KEENE','EDWIN','AEW3');
INSERT INTO canteach VALUES ('C100','L','JBW1');
INSERT INTO canteach VALUES ('C101','L','JBW1');
INSERT INTO canteach VALUES ('C102','L','PKL3');
INSERT INTO canteach VALUES ('C103','L','PKL3');
INSERT INTO canteach VALUES ('C103','P','PKL3');
INSERT INTO canteach VALUES ('C104','L','JBW1');
INSERT INTO canteach VALUES ('C200','L','PKL3');
INSERT INTO canteach VALUES ('C201','L','PKL3');
INSERT INTO canteach VALUES ('C202','L','JBW1');
INSERT INTO canteach VALUES ('C202','P','PKL3');
If you want the whole thing just ket me know, thanks again
ohh and here's the table and data dic..
CREATE TABLE LECTURER (
LECTURERID CHAR(4),
SURNAME CHAR(10),
FORENAME CHAR(10),
BOSSID     CHAR(4)
CREATE TABLE CANTEACH (
MODULID CHAR(4),
MODPARTID CHAR(1),
LECTURERID CHAR(4)
CREATE TABLE MODUL (
MODULID CHAR(4),
MODULNAME CHAR(10),
MODULEVEL CHAR(1)
CREATE TABLE MODPART (
MODULID CHAR(4),
MODPARTID CHAR(1),
MODPARTDESC CHAR(10)
Jd.
Edited by: user10952460 on 15-Apr-2009 12:12

Similar Messages

  • Need some help... running out of time

    Hope everyone is well... I have a G5 dual 2.5 running 10.3.9... running final cut 5.0.4... I am having a **** of a time being able to capture my hd media... some days it works and some days it dosen't. deviceses used: sony hd cameras hdr-fx1 to shoot, to capture sony hdv/dv video play back deck. modle hvr-m15u if that helps... i use the easy set up for hdv and when I (apple8) "log and capture". it tells me "Device is not connected or the capture preset and decice control preset are not setup correctly. you may still log offline clips." "This might also happen if your play dv footage in an hdv device"... i'm at a loss and need to get this video done by tomorrow.
    i appreciate the time
    Ryan
    My only guess is that I have overstock on dv tapes and i have been using those insted of buying the so-called hd tapes

    Just a couple comments-
    I use regular Sony miniDV tapes in my FX1 to capture HDV footage, so that probably isn't the problem.
    I capture with my FX1. Have you tried to see if that works? That might tell you if your deck is the problem.
    I also use OS 10.4.9 and FCP6, so don't know how those older versions play with the FX1.
    Sharon

  • Please help with cancellation! running out of time

    i really really need to cancel my purchase of illustrator, my first month is about to be over and i am running out of time! i can't seem to be able to do it according to the proper steps, because it does not appear in my plans or downloaded items. all that appears is a free creative cloud plan which does not have the option of cancellation. according to my bank, adobe has charged me for the first month of the package, so i don't know why it does not appear in my packages. please help as soon as possible. is there no way to contact adobe other than these forums?

    Jessie,
    You may open a chat here,
    Creative Cloud support (all Creative Cloud customer service issues, chat open between 5AM and 7PM PST/PDT on workdays)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html
    or use Adobe phone Support here,
    http://helpx.adobe.com/adobe-connect/adobe-connect-phone-numbers.html
    It is 1:30 PM over there now (PST).

  • NEED Help Running Out Of Time+++Q:Opening a PSD file in Illustrator Question???

    Hello everyone!!! Hope everyone is staying dry and warm!!!
    I have some artwork im doing for screen printing and a friend has been sending me some artwork to work on. The problem we are having is some of the artwork will open in Illustrator or CorelX4 and stay editable but then he will send me some that when I open in Illustrator it gives me this message and then will not be editable:
                           """This document has greater than 8-bit depth it will be imported as an 8-bit flat composite""""
    Can anyone tell us why this is happening??? I have researched this with no answers so far??? He is using PSD2 and Im usin PSD4 and Illustrator4
    Please help!!!!! Running out of time for this artwork to be completed.
    Thanks
    Bobby

    Photoshop is capable of saving files that are 16 or 32 bit depth. This has to do with the amount of colors that are accessable. The message you are seeing is telling you that it will convert the file back to 8 bit color space for you. This bit depth is talking about per channel, not over all. So a cmyk file would have 8 bits for cyan, 8 for megenta, 8 for yellow and 8 for black. Having a higher amount of bits per channel, photoshop is then capable of doing things like smoother gradients, retreiving data from raw images to produce an image that shows more highlights and shadows without the clipping and so forth.
    Most basic monitors are only 8 bit, same goes for most printers. So unless you need to access the extra color depth, you should be fine in 8 bit. If you don't want to see this message, just tell your friend to send the images at 8 bit.

  • TS1717 I got this message every time i connect my iphone to itunes.. said 'iTunes was unable to load provider data from Sync Services. Reconnect or try again later.' so please help me to solve out this problem..

    I got this message every time i connect my iphone to itunes.. said 'iTunes was unable to load provider data from Sync Services. Reconnect or try again later.' so please help me to solve out this problem..

    In the course of your troubleshooting to date, have you also worked through the following document?
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert

  • My phone has gone into recovery mode on its own.  says to connect to itunes.  i have restored it 10 times and it does nothing please help me i am out of the country and desparate

    my phone has gone into recovery mode on its own.  says to connect to itunes.  i have restored it 10 times and it does nothing please help me i am out of the country and desparate

    Open iTunes on computer. Connect iPhone to computer. If the iPhone is recognized in Recovery Mode, then Restore the Firmware. If not recognized, then hold both Home and Power Buttons until the iPhone is recognized in Recovery Mode. Usually takes about 20 seconds of holding both buttons. Restore the iPhone Firmware.

  • I have rented a movie on iTunes and it says I'm running out of time to watch but it is not downloading the movie can someone help

    I have rented a movie on iTunes and it says I'm running out of time to watch but it is not downloading the movie can someone help

    It does take some time for a movie to download, could it still be downloading ? Also the rental tab is only there when you have rented a movie. If all else fails talk to iTunes support, they have helped me in the past.

  • Please help me to come out of this dilemma.

    Hi
    I am in dilemma.
    Recently i have joined a new organization which is a world leader in its field . The company name is very popular around the globe. But the thing is its almost 4 months , and as an Oracle DBA , i am not getting chance to work on something interesting / challenging . The thing is , i studied the environment here and i think most of my work involves only preparing DB docs , attending meeting and raising support tickets once a while. So very minimal technical work.
    To be honest, in last 4 years of my career i haven't worked in such a large organization before so during interview i didn't ask for type of work ,and i just wanted to join this organization as it will have a dramatic impact when i mention the name in my resume . I do not want to quit this organization so early because it will have a bad impression . Also , i think speaking to my bosses will not work because they cant help it in any way .
    I am happy with every thing else here , but i want to leave this company for doing something challenging as an Oracle DBA , but want to stay here because every thing else is damn good and also when i switch to a new company after 2 years , people will be dying to hire me ;) , am i contradicting ?
    Please help me to come out of this dilemma.
    Thanks

    Well, joining a big company from a small company and then leaving it just in few days would actually backfire. Next hiring people would think that since you were in capable to handle the workload in a big company(because you never worked in such environment before), you were thrown out. You won't be able to justify your reason that you left because you didnt' find enough challenge there because it can be completely blown away by a simple counter that how did you know that there was no challenging work there as you never stayed there even for a year too! So IMO, you would do more harm for you than anything good be quitting now. Its a mistake not to ask about the work but you have committed it already . What you should n't do is to do add another one and that is to leave the company now.
    Since you are not having much work, why don't you use it learn more about the company, its various works, other divisons and above all, to learn oracle database in your spare time. There is no place where you would be given challenges for your sake. If there is work it would come to you else you would be remaining free. You are working as a normal dba I believe not in support or something like that for you, every time, a new issue ticket is ready. If you have spare time with you, use it wisely to understand how things are working , both in your organization and with oralce db. Spend time doing trainings and learn more about the product, complete at least and then leave.
    Just my 2 cents.
    Aman....

  • The enter key is not working in firefox but it has working fine in chrome and IE so please help me to rid out from this.

    The enter key is not working in firefox but it has working fine in chrome and IE so please help me to rid out from this.

    Hello gokulaan, '''try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • In my mac i dont create icloud keychain but it is asking password please help me to get out of this problem

    In my mac book pro i don't create icloud keychain. But it is asking password.Please help me to get out of this problem.In OS X Mavericks

    Hi, nportillo,
    The next time you attempt to reach Skype Customer Service, try again using a different web browser and choosing a different path through the various drop-down menu options presented.  Do not choose the obvious - you have already established that path is not working.  Also, look to approve a pop-up dialogue box which would connect you to start an instant message chat with a customer service agent. If you have pop-ups blocked in your browser settings, this will also impede reaching an agent.
    Skype is aware of problems reaching their customer service unit via the website, however people are getting through.  I have flagged your report for follow-up by those to whom I report.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • HT202159 I am unable to download and always asking password after entering the password  also asking same question please help  me to sort out  this problem.

    I am unable to download and always asking the password it's ok for the once and it's asking more and no results only repeating the same so I am unable to download please help me to sort out this problem and my request please sort out from your side  or let me guide .

    Thanks Eric for responding.
    I checked and it does not appear in the Applications folder.
    I tried yesterday on an ethernet connection with a download speed of 2 Mbps but, unfortunately the connection died(It happened from the ISP end, which is out of my control) in between after which there was no trace of the download that happened for so long(till the internet connection death). 
    One more serious query which I am unable to understand. If the internet connection, dies in the midst of the download is in progress why is it so that the state does not persist and one has to restart the entire process again. Is there no solution for this?
    I tried so many times and its the same case after some amount of download it vanishes. So many unsuccessful attempts. I am ****** off now. Is it not possible to see Mavericks? Why does different machines of Apple behave differently? Somewhere it goes smoothly and somewhere like my mine. Why did not Apple release a non apple store version? Is this not a bad sign of letting the users struggle when something is being offered for free?
    The reason I asked as whether we can download the .app of Mavericks is that, there are so many applications that I have downloaded web and have installed. All that works fine. Can't we do the same here? You download a copy of Mavericks installer application and upload it for me in Google drive or like online storage places which can be downloaded and used by me? Help me understand.
    Thanks again.

  • Please help before I pull out the rest of my hair!!

    Hi,
    I have been trying very hard to understand what the problem I
    have been having is. Basically I am loading an external XML file
    into my FLEX app. I have add/update/delete functions that basically
    alter the existing XML tree. Everything is altered fine, as when I
    use Alert.show() to view the altered XML it is exactly how I wanted
    it. When it is altered I have it sent using http service to a PHP
    script that simply overwrites the existing file with the new
    altered XML. However, it seems that it will not send the XML,
    although it will send other values. I have tried copying the output
    XML and placing it in the PHP file and it works fine. There is
    definately something going wrong when sending the formatted XML to
    the PHP script. I have tried many combinations of .toString() and
    .toXMLString(). It seems complex XML will not work, as I have only
    had problems with this technique using the Rich Text Editor and
    with complex XML , such as the following structure...
    <blogs>
    <blog>
    <date></date>
    <title></title>
    <content></content>
    <comments>
    <comment>
    <name></name>
    <date></date>
    <title />
    <content></content>
    </comment>
    <comment>
    <name></name>
    <date></date>
    <title />
    <content></content>
    </comment>
    </comments>
    </blog>
    </blogs>
    My Flex page looks like this:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Box xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="100%" height="100%" creationComplete="sendXML()">
    <mx:Script>
    <![CDATA[
    //Import
    import mx.controls.Alert;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.http.HTTPService;
    import mx.collections.XMLListCollection;
    //Objects
    private var sendRequest:HTTPService= new HTTPService();
    private var updateRequest:HTTPService= new HTTPService();
    private var variables:Object= new Object();
    private var requestXML:XML= new XML();
    private var requestList:XMLList= new XMLList();
    [Bindable] private var requestData:XMLListCollection= new
    XMLListCollection();
    //Bindable
    [Bindable] private var blog_date:Date;
    [Bindable] private var blog_title:String;
    [Bindable] private var blog_content:String;
    [Bindable] private var blog_ID:int= 0;
    [Bindable] private var blog_total:int;
    //Accessors
    //Methods
    private function sendXML():void {
    sendRequest.url= "XML/blog.xml";
    sendRequest.resultFormat= "e4x";
    sendRequest.send();
    sendRequest.addEventListener(ResultEvent.RESULT, loadXML);
    private function loadXML(event:ResultEvent):void {
    requestXML= event.result as XML;
    blog_total= requestXML.blog.length();
    display();
    private function display():void {
    blog_title= requestXML.blog[blog_ID].title;
    //blog_date= requestXML.blog[blog_ID].date;
    blog_content= requestXML.blog[blog_ID].content;
    private function next():void {
    if(blog_ID+1== blog_total){
    Alert.show("No more blogs");
    }else{
    blog_ID++;
    display();
    private function previous():void {
    if(blog_ID >0){
    blog_ID--;
    display();
    }else{
    Alert.show("No more blogs");
    private function addBlog():void {
    blog_date= input_date.selectedDate;
    blog_title= input_title.text;
    blog_content= input_blog.text;
    requestXML.prependChild(<blog><date>{blog_date}</date><title>{blog_title}</title><content >{blog_content}</content><comments><comment
    /></comments></blog>);
    updateXML();
    public function editBlog():void {
    requestXML.blog[blog_ID].title= input_title.text;
    requestXML.blog[blog_ID].date= input_date.selectedDate;
    requestXML.blog[blog_ID].content= input_blog.text;
    updateXML();
    public function deleteBlog():void {
    delete requestXML.blog[blog_ID];
    updateXML();
    private function updateXML():void {
    variables.action= "edit_blog";
    variables.xmlString= requestXML;
    updateRequest.url= "PHP/actions.php";
    updateRequest.send(variables);
    updateRequest.addEventListener(ResultEvent.RESULT,
    updateComplete);
    private function updateComplete(event:ResultEvent):void {
    Alert.show("Blog Updated");
    display();
    ]]>
    </mx:Script>
    <mx:Label text="Title:" />
    <mx:TextInput id="input_title" text="{blog_title}"/>
    <mx:Label text="Date:" />
    <mx:DateChooser id="input_date"
    selectedDate="{blog_date}" />
    <mx:Label text="Blog:" />
    <mx:RichTextEditor id="input_blog" width="700"
    height="400" text="{blog_content}" title="Displaying Blog
    {blog_ID+1} of {blog_total}" />
    <mx:ApplicationControlBar width="820">
    <mx:Button label="Previous Blog" click="previous()" />
    <mx:Spacer width="100%" />
    <mx:Button label="Add Blog" click="addBlog()" />
    <mx:Button label="Edit Blog" click="editBlog()" />
    <mx:Button label="Delete Blog" click="deleteBlog()" />
    <mx:Spacer width="100%" />
    <mx:Button label="Next Blog" click="next()" />
    </mx:ApplicationControlBar>
    </mx:Box>
    Please help, I have wasted so much time trying to figure this
    out!! There must be some formatting issue I am unaware of that is
    preventing Complex XML from being passed to the PHP when simpler
    XML works fine...
    Thanks in advance
    Jesse

    How come I always solve my problems write after finally
    posting, when I try for days!!
    The reason all along was because I was using GET instead of
    POST! GET apparently can't handle the amount of characters, and I
    never use GET, yet the one time I decide to it sets me back about
    10 hours!!!

  • TS4268 Please help, I can't find face time and Siri icon on my mini ipad? Just bought it I have the IMessage icon and is able to use it.

    Please help, I can't find face time and Siri icon on my mini ipad? Just bought it I have the IMessage icon and is able to use it.

    There is no Siri "icon". You access Siri using the Home button. But you may need to turn it on: Settings App > General > Siri. http://support.apple.com/kb/HT4992
    Same for the FaceTime function (but if it is ON, there will be an icon): Settings App > FaceTime > [turn it on and set you Apple ID. http://support.apple.com/kb/HT4319

  • My 4th generation ipod touch is not turning off when i hold the wake button for few seconds the Voice Control Function Starts Automatically.Please help me to get out of this problem.

    My 4th generation ipod touch is not turning off when i hold the wake button for few seconds the Voice Control Function Starts Automatically.Please help me to get out of this problem.

    Sorry i mistakenly made this question. It was alright. No Problem At ALL

  • Well, i was on my laptop now and all of a sudden a pop up message appeared and said "your download is complete" so i went to go check it out and it was 'MacProtector'. i cant delete it and it keeps opening unwanted web pages, please help me sort this out?

    Well, i was on my laptop now and all of a sudden a pop up message appeared and said "your download is complete" so i went to go check it out and it was 'MacProtector'. i cant delete it and it keeps opening unwanted web pages, please help me sort this out someone?

    Refer to:  http://cantalktech.com/2011/05/08/mac-protector/.

Maybe you are looking for

  • It just works... You've got to be kidding

    The following is an example of how Apple really hasn’t got their Intel machines and OS right when it comes to the much advertised feature of also being able to run Windows. If you are not interested in running Windows on an Apple machine, you may as

  • JNI, invocation API

    Hi, I would like to start with JNI. I read the JNI-Tutorial and didn't find the file: jni.h. Where can I get it? I would like to write an invocation API. A VC-program should call a java-function. Does anybody know, where to find the demo-code (c and

  • No songs available from iCloud in iTunes 10.

    The iCloud icon above is just continual, moving diagonal lines.  I now have no acces to songs in my iCloud. What gives?

  • Know the Last column of the table

    Hello  i use vb.net with excel I have a table with a spreadsheet, I want to know the Last column of the table  please help me ??

  • Nikon 10-24 Lens Correction

    I just discovered Lightroom's lens correction presets for specific lenses. While many of my Nikon lenses are listed, my latest lens (the Nikon 10-24mm f/3.5-4.5G ED) is not listed. It's one of Nikon's newest lenses. I'd like to be able to quickly cor