Sql query question - been trying for two days

Hi guys im trying to carry out an sql query
Im using a left join to do a query, which gives me a set of results:
select COURSESTUDENT.StudentNo, COURSESTUDENT.CourseCode, COURSESTUDENT.Year, MARKS.ExamMark, MARKS.EntryNo FROM COURSESTUDENT LEFT JOIN MARKS ON COURSESTUDENT.StudentNo=MARKS.StudentNo AND COURSESTUDENT.CourseCode=MARKS.CourseCode AND COURSESTUDENT.Year=MARKS.Year
but I would like to do a select on this result but do not want to use a create view as if more than one person access this page at a time then if the servlet tries to create the view an error will occur.
I would like to do the following select statement on the results of the query above..
select * from (above) where CourseCode='ELE304' AND Year=1999;
Is this possible, im using postgres..
Please help......
thanks
tzaf

Sorry, I have never used postgres, but in several databases, the following syntax would work and provide the correct ResultSet.
select *
from (
     SELECT
         COURSESTUDENT.StudentNo,
         COURSESTUDENT.CourseCode,
         COURSESTUDENT.Year,
         MARKS.ExamMark,
         MARKS.EntryNo
     FROM
         COURSESTUDENT LEFT JOIN MARKS ON
         COURSESTUDENT.StudentNo=MARKS.StudentNo AND
         COURSESTUDENT.CourseCode=MARKS.CourseCode AND 
         COURSESTUDENT.Year=MARKS.Year
     ) A
WHERE
    CourseCode='ELE304' AND
    Year=1999

Similar Messages

  • I have been trying for two days to download the new icloud 4 that was offered at the same time as the new iTunes just prior to iOS8 release.

    I have been trying for two days to download the new icloud 4 that was offered at the same time as the new iTunes just prior to iOS8 release.
    I keep getting installer package error messages, I uninstalled the previous version to see if that was the problem to now find that I cant reinstall it as the new version is the only one available.
    Im using Windows 7, I'm assuming Im not the only one with this problem.
    Would a complete uninstall and reinstall of Apple software be of any benefit or is that just a cure all solution when nobody has an answer?

    @Dakotaep
    I am so sorry to hear of your experience with purchasing your new Samsung Galaxy Note 3!  This definitely should have been resolved in your first call to us.  I would be glad to review your account and ensure the Edge Agreement is corrected.  Please accept my "Follow" request and send me a direct message so I can further assist.  Thanks!
    AnthonyTa_VZW
    Follow us on Twitter VZWSupport on Twitter.

  • I am trying  to download itunes to my computer, when i hit the download button it goes directly to the screen that says now you have itunes......NOTHING HAS BEEN DOWNLOADED, i have been trying for two days to download and it is not working please help!

    I am trying to download itunes to my computer, when i hithe download button all it does is go to the "now that you have downloaded itunes" screen.....NOTHING HAS BEEN DOWNLOADED!!!!!!!!!......i have been trying for 2 days to do this, please help.....Thanks

    i have the same problem, i have a windows 7 and the little screen comes up saying statues: processing additional packages  help us

  • Sql query - been trying for two days

    Hi guys im trying to carry out an sql query
    Im using a left join to do a query, which gives me a set of results:
    select COURSESTUDENT.StudentNo, COURSESTUDENT.CourseCode, COURSESTUDENT.Year, MARKS.ExamMark, MARKS.EntryNo FROM COURSESTUDENT LEFT JOIN MARKS ON COURSESTUDENT.StudentNo=MARKS.StudentNo AND COURSESTUDENT.CourseCode=MARKS.CourseCode AND COURSESTUDENT.Year=MARKS.Year
    but I would like to do a select on this result but do not want to use a create view as if more than one person access this page at a time then if the servlet tries to create the view an error will occur.
    I would like to do the following select statement on the results of the query above..
    select * from (above) where CourseCode='ELE304' AND Year=1999;
    Is this possible, im using postgres..
    Please help......
    thanks
    tzaf

    just add "where ..." to the end of the first query.

  • Hi. I have rented and downloaded a film from the iTunes store but every time I try to play it I get the message: An unknown error occurred (-42110).  Please try again later. I've been trying for two days!

    Can anybody help me with the above question? There doesn't seem to be an email address for simple queries about services that don't work!

    Perhaps try the "Error 3001," "-42110," or "5103" section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
    iTunes: Advanced iTunes Store troubleshooting

  • My iPhone 4S won't turn on it's been off for two days now. I tried charging it but it makes a noise every 8 seconds,holding the buttons down and also plugging it to a computer. I need help on what to do or if anybody can tell me what's wrong with my phone

    My iPhone 4S won't turn on it's been off for two days now. I tried charging it but it makes a noise every 8 seconds,holding the buttons down and also plugging it to a computer. I need help on what to do or if anybody can tell me what's wrong with my phone

    Yes ive tried a different charger and it also nothing shows when i plug it in just makes a noise

  • I have been trying for three days to try and get this working , and tried a few of the forum suggestions already and this is just to try them ... so glad i haven't pais anything yet . i get the signed out loop no matter what i try

    i have been trying for three days to try and get this working , and tried a few of the forum suggestions already and this is just to try them ... so glad i haven't pais anything yet . i get the signed out loop no matter what i try

    What have you been trying for three days to try and get this working???
    Supply pertinent information for quicker answers
    The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
    Adobe product and version number
    Operating system and version number
    The full text of any error message(s)
    What you were doing when the problem occurred
    Screenshots of the problem
    Computer hardware, such as CPU; GPU; amount of RAM; etc.

  • Unable to activate photoshop C3  as helpline is not answering,I have been ringing for two days..!

    I am having real problems contacting the adobe helpline to activate my software, I have been ringing for two days and its always engaged.. Unfortunately The motherboard on  my macbook pro failed ( and it was only just over two years old, so out of its warrenty)..
    Anyhow  I cannot therefore de-activate my photoshop software on my old computer, so therefore I am unable to activate on my new computer I just brought..
    It is so frustrating as i have all the discs infront of me, but I only have four days left now to use the software that I have paid for and own..
    Does anyone know of other phone numbers I could use, as the ones I have tried on this site are always engaged, I really can't afford to go out and purchase the software again.. Has anybody else come across this problem and how did you solve it..?
    In desperation
    Tenerifedoggies

    Hi Wade,
    I thought when I received your email it was somebody directly from adobe trying to help me...! indeed it was not a wise thing to do. I have deleted the post..
    With the greatest respect I have tried calling quite a few numbers and at different times and if you have read other posts on this forum you will see that they have had similiar problems to me..
    Anyhow I have had a nice email from Tracey an adobe person and hopefully she will be able to help me out.
    Thanks again for your suggestion of an alternative number..

  • Why can't I download illustrator? I have been trying for 3 days

    I have been trying for 3 days to download illustrator & continue to receive message: "We are experiencing some issues, please try again later". Customer support line takes me to their twitter page & no one has responded to me.

    Hi Sfbtr,
    Can you provide more information? Are you downloading the app directly on the website or through the Creative Cloud desktop app?
    If it's the former, please try via the desktop app. If it's the latter, can you provide a screen cap?
    Thanks,
    Amy

  • I have downloaded Photoshop Elements 12.  When I doubleclick on icon, it says that sign in is required.  I click sign in and it says I am not connected to the internet. Please help!  I've been trying for 3 days.

    I have downloaded Photoshop Elements 12.  When I doubleclick on icon, it says that sign in is required.  I click sign in and it says I am not connected to the internet. Please help!  I've been trying for 3 days.

    Sign in, activation, or connection errors | CS5.5 and later

  • Im trying to update my iphone 3g and i keep getting error 1015 that its unable to restore it what can i do ive been trying for 3 days now

    im trying to update my iphone 3g and i keep getting error 1015 that its unable to restore it what can i do ive been trying for 3 days now

    See Here...
    https://discussions.apple.com/message/15341923#15341923
    From the  More Like This  on the right...

  • HT1918 Trying to update my credit card information and getting message TRY AGAIN LATER....when later? I've been trying for 3 days!!!

    I haven't been able to update my card information. Everytime I click done I get a message to try again later...am I doing something wrong? If not when is later? I've been trying for 3 days. Later as in a week, a month a year?

    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -Credit card https://helpx.adobe.com/utilities/credit-card.html
    or
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • I've rented several movies over AppleTV, but can not download. I get a message "An error occurred loading this content. Try again later. " i've been trying for 3 days now... anyone with similar problem?

    I've rented several movies over AppleTV, but can not download. I get a message "An error occurred loading this content. Try again later. " i've been trying for 3 days now... anyone with similar problem?

    I have the same issue, to temporarily fix it go to Settings > General > Restart.  When it restarts the movie should play.  You have to do this for each movie for the most part.

  • Have been trying for 4 days to do an update that takes 4 hours and times out everytime at 2 seconds. Any ideas why?

    Have been trying for 4 days to do and update that takes 4 hours each time. It always times out on the last 2 seconds every time. Any ideas why?

    hi u seem to know alot about ipods, would u mind helping me with a problem that i am currently havig with my menu button on the iod touch 4th generation?

  • I have been trying for two weeks to back up iCloud. I keep getting a message failure. Why??

    I have been trying for two weeks to backup iCloud and keep getting a message failure. Why? And how do I fix it?

    I agree with the Thomas, in that I think you have mucked up your settings in the AOL account. Your username should be something like - [email protected] Your password is whatever you use as the password.
    You could try deleting the account and start over again. Here is a link to a "how to set up AOL email " on the iPad. It is  4 or 5 step process and just make sure that you are entering the correct information in the correct fields in the set up. Among my 4 email accounts on my iPad, I have 2 AOL accounts. I have no problems at  all and it was really very easy to set up. There is no reason why AOL email should not work on your iPad.
    To repeat and emphasize - Just make sure that you are entering the correct information in the appropriate fields as I think that's where you are making your mistakes.
    If I had my choice, I would probably chuck the AOL accounts as well, but I have all the spam filters set as high as I can on the server, and it has cut down tremendously on the spam. Unfortunately - we set up AOL accounts at my workplace years ago and I really hesitate to change them now, so I continue on with these, but like I said, they work fine and they were very easy to set up.
    http://convert-dvd-ipad.com/dvdipad/set-aol-email-account-ipad-manually/

Maybe you are looking for