What would be the exact query to get above outout?

Hi
i hav table like:
name phys chem math
ram 80 73 71
sham 75 73 85
jadu 72 82 73
got?
answer would be like:
ram phys 80
sham math 85
jadu chem 82
what would be the exact query to get above outout?

Table: HighestMarks
Stname          Phy     math     Chem
Aseet          50     64     90
Rabi          80     96     34
Pravat          57     95     90
Sankar          80     60     45
Query:
select t1.stname, decode(t2.m_p,t1.phy,'phys',decode(t2.m_c,t1.chem,'chem','math')) subject
,decode(t2.m_p,t1.phy,phy,decode(t2.m_c,t1.chem,chem,math)) marks
from HighestMARKS t1,
select max(phy) m_p, max(chem) m_c, max(math) m_m from HighestMARKS t1
) t2
where t1.phy=t2.m_p
or t1.math = t2.m_m
or t1.chem = t2.m_c
Error:
1.     if a single person secure highest marks in two subjects(Pravat secure highest mark in Math and Chem) then this query shows 2 subjects .It does not show the highest mark in Math
Stname Subjects Marks
Aseet     chem     90
Rabi     phys     80
Pravat     chem     90
Sankar     phys     80
But if 2 person secures same highest mark then this query returns results.

Similar Messages

  • Can I still buy photoshop cs6 from the adobe website, or do I have to find it somewhere else, and what would be the best place to get it?

    Im looking to get adobe Photoshop cs6, but with Adobe pushing the Creative Cloud, can I even get the program from the website? If not, where would be the best place to buy it?

    As John says, they don't make it easy to find.  CS6 is now almost 3 versions back with no more updates being rolled out for it.
    As an alternative to purchase, you might want to consider the Photography Plan which includes PS CC and LightRoom for $9.99 per month.  At least, that way you'll be eligible for updates as soon as they become available.
    Creative Cloud Photography plan : Adobe Creative Cloud
    Nancy O.

  • I want to get good wifi in my house . I currently have a time warner modem/router separate from my phone modem but my upstairs does not get good reception. What would be the best way to get the best wifi if I started from scratch

    I have a combination modem/router from time warner that is separate from my phone line but I get bad reception on my apple tv an ipads upstairs in my house. I would like to fix this and want to know the best way to go about it . Whether getting two modems and routers or just one base station. Please help

    It is possible to extend a WiFI network using Apple's Airport Express, Airport Extreme Base Station, or even a Time Capsule. However  the router that is creating the network (the one you have downstairs) must be configurable to permit another WiFi device to extend the network. All Apple WiFi routers can be configured that way, but there are many third party WiFi routers that cannot. The two routers can be connected wirlessly or by ethernet. From your description I suspect ethernet would be prefereable if yoiu had a good way of routing the cable.

  • Had a windows computer with my element 7.  Now just bought a Mac OSX   version 10.9.2 what would be the best photoshop elements for this machine.  I did download elements 12 from Apple store but kept getting incompatible message when trying to open a phot

    I thought elements were simple but maybe it is just me.  Having problems moving photos from iphoto to elements

    Duplicate post; see:
    had a windows computer with my element 7.  Now just bought a Mac OSX   version 10.9.2 what would be the best photoshop elements for this machine.  I did download elements 12 from Apple store but kept getting incompatible message when trying to open a phot

  • How do I get an SVG file to the same color profile as my illustrator file (U.S. Web Coated (SWOP) v2 and what would be the correct color profile for printing on a shirt?

    How do I get an SVG file to the same color profile as my illustrator file (U.S. Web Coated (SWOP) v2 and what would be the correct color profile for printing on a shirt?
    Thank you.

    dadanas wrote:
    Hi Simcah, I have a similar problem. Have you found out any solution?
    thanks, dan
    You need to ask the printing service provider. Dealing with color totally depends on the printing process involved and of course the machines used.

  • TS3988 i want to delete my iCloud account and get a new one. but i can not delete as it says that my iphone is being restored. could anyone tell me what would be the solution to my problem. i will be thankful to you..

    i want to delete my iCloud account and get a new one. but i can not delete as it says that my iphone is being restored. could anyone tell me what would be the solution to my problem. i will be thankful to you..

    You can go to icloud.com, open Mail, click on the gear shaped icon on the upper right and choose preferences, go to the Vacation tab and set up an auto response saying that the account is no longer in use.  Then go to Settings>iCloud and turn Mail to Off on your device and stop using the account.
    Incoming email to the account will receive your vacation auto response, and eventually the mailbox will fill up and no longer receive mail at all.

  • My back glass is broken where can i get it replaced and what would be the cost i am from India Bangalore

    hi
    today when i was takeing a walk accidently i broke my iphone 4 back panel can i get it replaced by apple showrooms in India Bangalore and what would be the cost ,kindly help
    Eaaj Rajput

    http://support.apple.com/kb/index?page=servicefaq&geo=United_Kingdom&product=iph one
    Pick India from drop down menu

  • I want to add event to the Icalendar threw caldav4j jar classes . Can I do that what would be the event request URL

    I want to add / retrieve event to the Icalendar threw caldav4j jar classes . Can I do that what would be the event request URL
    Retrieve Events :
    HttpClient http = new HttpClient();
        http.getState().setCredentials(new AuthScope("p06-caldav.icloud.com", 443,"https"), credentials);  
        http.getParams().setAuthenticationPreemptive(true);  
        HostConfiguration hostconfig = http.getHostConfiguration();
        hostconfig.setHost("p06-caldav.icloud.com");
        hostconfig.setHost("p06-caldav.icloud.com", 443, "https");
    CalendarCalDAVReportMethod method = factory1.createCalendarCalDAVReportMethod();
    method.setPath("/1809484432/calendars/");
      <C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav">
    <D:prop xmlns:D="DAV:">
    <D:getetag/>
    <D:allprop/>
    <C:calendar-data>
    <C:comp name="VCALENDAR">
    <C:comp name="VEVENT"/>
    </C:comp>
    </C:calendar-data>
    </D:prop>
    <C:filter>
    <C:comp-filter name="VCALENDAR"/>
    </C:filter>
    </C:calendar-query>
    But Iam getting bad request . Can any body help me out on this

    Still no luck...nor many helpful comments.
    THis is what the top of my iTunes U screen looks like when I am in my course. I cannot see anything on the right hand side to click on that takes me to an edit page.
    The following is taken from Penn State University related to drop boxes:
    None of the stuff they refer to is on my screen - neither this one or any others.
    Again, any help would be most appreciated.

  • Does Adobe Reader for iOS have the ability to open inbedded links to additional PDF docs?  If not, then what would be the best way to use these already created PDF's?

    Does Adobe Reader for iOS have the ability to open inbedded links created with Acrobat Standard to additional PDF docs?  If not, then what would be the best way to use these already created PDF's on an I Pad?

    driddy61,
    As of June 2014, none of the Adobe Reader mobile products support the hyperlink action for opening a separate PDF document.
    Adobe Reader for iOS
    Adobe Reader for Android
    Adobe Reader Touch for Windows 8
    In addition, the Reader mobile products do not open multiple windows/documents simultaneously, which would make the navigation between PDF documents nearly impossible. (Once a hyperlink takes you to a different PDF document, you have no way to go back to the original PDF document.)
    The only Adobe Reader product that fulfills your department's requirements is Adobe Reader XI (mostly for Windows/Mac desktop/laptop computers).  Acrobat Pro and Standard are paid products.
    Because you are in search of a less expensive device for your department, you could get a Windows tablet instead of a Windows desktop/laptop computer. Microsoft Surface Pro (that you've mentioned in your previous reply) is just one example.  You can also find other less expensive Windows tablets.
    Tablets
    However, please keep in mind that there are two different types of Windows tablets running two different operating systems.
    (a) A Windows tablet with an Intel-based processor running Windows 8.1 Pro
    Example: Surface Pro 3
    You can install and run traditional desktop apps (e.g. Adobe Reader XI) and new Windows Store apps ("Modern" or "Metro-style" apps).
    (b) A Windows tablet with an ARM-based processor running Windows RT 8.1
    Example: Surface 2
    You can only install and run Windows Store apps (e.g. Adobe Reader Touch) but not traditional desktop apps like Adobe Reader XI.
    In general, type (b) tablets are more affordable than type (a) tablets.  However, if you want to run Adobe Reader XI, you do need to check the technical specification of each tablet and make sure the following conditions are met.
    Processor: Intel
    Operating system:  Windows 8/8.1 or Windows 8/8.1 Pro, not RT
    Hope this helps you choose the right device for your department.  Please let us know if you have any questions about system requirements or supported features in the Adobe Reader products.

  • With SO MUCH photo editing software available, what would be the best for me if I am a digital camera newby? I do not need Photoshop CC! I do not want to spend $700 bucks! My camera is a Nikon D90. Please help.

    With SO MUCH photo editing software available, what would be the best for me if I am a digital camera newby? I do not need Photoshop CC! I do not want to spend $700 bucks! My camera is a Nikon D90. Please help.

    Where did you come up with the $700 figure?
    Photography plan - $9.99/month or $119/year - Creative Cloud Photography plan : Adobe Creative Cloud
    Single App - $19.99/month
    Complete plan - $49.99/month or $599/yr - Creative Cloud free trial & plans : Adobe Creative Cloud
    Ah - If you wish to cancel early yeah $74.99 which would total for the year at $899.88. But that final total would be if you canceled in the 12th month but if you plan on keeping it that long might as well go for the annual contract. Then cancel at the end of the term limit if you need to.
    If you are not sure what to get, Either Elements as was suggested by Peru Bob or the photography plan.

  • What would be the reason for sql server agent [MSSQLSERVER] service terminated unexpectedly?

    What would be the reason for sql server agent [MSSQLSERVER] service terminated unexpectedly?
    only below details found in error log
    07:26:44.170 spid60      
    FILESTREAM: effective level = 3, configured level = 3, file system access share name = 'MSSQLSERVER'.
    07:26:45.720 spid51      
    Configuration option 'Agent XPs' changed from 0 to 1. Run the RECONFIGURE statement to install.
    07:26:45.730 spid51      
    FILESTREAM: effective level = 3, configured level = 3, file system access share name = 'MSSQLSERVER'.
    07:28:57.840 spid64      
    Configuration option 'Agent XPs' changed from 1 to 0. Run the RECONFIGURE statement to install.
    07:28:57.840 spid64      
    FILESTREAM: effective level = 3, configured level = 3, file system access share name = 'MSSQLSERVER'.
    and below error on agent log
    2014-01-01 07:26:28 - ? [131] SQLSERVERAGENT service stopping due to a stop request from a user, process, or the OS...
    2014-01-01 07:26:43 - + [188] Scheduler engine timed out (after 15 seconds) waiting for 1 jobs(s) to stop
    2014-01-01 07:26:44 - + [098] SQLServerAgent terminated (forcefully)
    Rahul

    What would be the reason for sql server agent [MSSQLSERVER] service terminated unexpectedly?
    only below details found in error log
    07:26:44.170 spid60      
    FILESTREAM: effective level = 3, configured level = 3, file system access share name = 'MSSQLSERVER'.
    07:26:45.720 spid51      
    Configuration option 'Agent XPs' changed from 0 to 1. Run the RECONFIGURE statement to install.
    07:26:45.730 spid51      
    FILESTREAM: effective level = 3, configured level = 3, file system access share name = 'MSSQLSERVER'.
    07:28:57.840 spid64      
    Configuration option 'Agent XPs' changed from 1 to 0. Run the RECONFIGURE statement to install.
    07:28:57.840 spid64      
    FILESTREAM: effective level = 3, configured level = 3, file system access share name = 'MSSQLSERVER'.
    and below error on agent log
    2014-01-01 07:26:28 - ? [131] SQLSERVERAGENT service stopping due to a stop request from a user, process, or the OS...
    2014-01-01 07:26:43 - + [188] Scheduler engine timed out (after 15 seconds) waiting for 1 jobs(s) to stop
    2014-01-01 07:26:44 - + [098] SQLServerAgent terminated (forcefully)
    Rahul
    Can you post the output of below query
    select @@version.
    If you are using SQl server express edition ,SQL server agent feature is not available.It seems from errorlog that you can start it but actually you cannot.But first confirm what is version and edition of your SQL server
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • What would be the simplest way to view and take control over the internet?

    Hi All:
    Can some one tell me what would be the best and simplest way to connect from my laptop to another laptop through the internet?
    I have DYNdns running on the second laptop and have a host name assigned to that system for it to update the IP since the system uses different internet connections. The services that I would like to be able to have are the viewing and controlling of the system. I've read some where in this NG that if I have a copy of ARD admin. installed on that system also, it would be one way to do it... can some one verify this and please let me know if there are any specific settings I need to have on either one of the systems.
    I can connect to the second laptop while in my home network with no problem and perform all tasks. when trying to connect through the internet.. the system shows offline .
    Both systems are identical in hardware an software, Intel 2.16, 2G's RAM, OS X ver 10.5.2 all up to date and ARD 3.2
    Yes, I'm new to ARD and yes I'm searching the NG and the net. but I figure it doesn't hurt to ask since time is limited.
    All help greatly appreciated ..
    TIA
    Oscar A.

    To be able to connect to a workstation from outside it's network, the ports that ARD uses must be open on both ends of the connection. ARD uses ports 3283 and 5900 so those must be open.
    If your workstations get their addresses from an NAT device rather than being "real", the ports also need to be forwarded in the router to the workstation's internal IP address. ARD uses port 3283 for the reporting and updating function, so if your Macs are getting their IP addresses through NAT, since you can only forward a port to a single workstation, you can only get reports, push package/files to etc. for a single workstation.
    ARD uses the VNC protocol for observation and control, though, and there are a range of IP addresses for that protocol, starting with 5900. ARD uses 5900 by default, so that port would be forwarded to the first workstation. You would, I believe, need to install VNC servers on the systems (since the ARD client cannot listen on any port other than 5900 while VNC servers can be set for other ports such as 5901, 5902, etc. You would then forward 5901 to the second workstation (and on to 5902, 5903, etc.). You can then use the following information:
    Remote Desktop 2: How to specify a port number for a VNC client
    to connect.
    The only other options are: 1) to run the ARD administrator on a workstation on the network, and then take control of that system from outside, either via VNC or another copy of ARD, or 2) set up a virtual private network (VPN) so that when you connect from outside, your admin system is officially part of the local network.
    Hope this helps.

  • BSM Auditing - what would be the Audit_id ?

    Hi all,
    Please tell me what would be the audit_id in the following scenario.
    I have two nodes, say Node1 and Node2
    On Node1_
    I have created a role called “*audit_role*”
    I have assigned “audit_role” to user called “test” on Node1.
    These are the contents of the /etc/user_attr
    root::::auths=solaris.*,solaris.grant;profiles=Web Console Management,All;lock_after_retries=no;min_label=admin_low;clearance=admin_high
    audit_role::::type=role;defaultpriv=basic,dtrace_kernel,dtrace_proc,proc_owner,dtrace_user
    test::::type=normal;roles=audit_role
    On Node2_
    I have logged in to Node2 as a user called *“user1”*.
    Now audit_id on Node2 would be “*user1”*.
    After this I have logged in to user “*test”* on same node(Node2) using the command “*su*”.
         Now If login to the Node1 as role “*audit_role*” what would be the audit_id on the Node1.
         #*Ssh –l audit_role Node1*
         After successful login on Node1 as “audit_role”, if some action were carried out with this login what would be the audit_id on Node1 for these actions? Whether it would be “user1” or “test”?
    please do reply if post is not clear.
    thanks,
    Rajeshwar

    Regarding your function hanging, that seems to be because your loop never ends. Also the inner query is missing a WHERE clause:
    Select Translate(comnt_rec.comment_text,'%#$^',' ') into repvalue from test_comnt;  <-- How many rows will this bring back?However I don't think you meant to query the test_comnt table at all - it looks as though you just wanted to assign the result of the TRANSLATE expression (btw please, TRANSLATE() or translate() but not Translate() - the parser doesn't care but it drives me nuts), in which case just
    repvalue := translate(comnt_rec.comment_text,'%#$^',' ');or even include the expression in the cursor itself and save yourself the trouble.
    Another thing that drives me nuts, although not the rest of the world apparently, is the name "c1" for a cursor. Why don't you name your variables "v1", "v2" etc? If you had two cursors would you seriously name the second one "c2"?
    While I'm at it, what kind of a name is "test_comnt"?

  • Shuffle 4th gen.+ Version Mac OS X 10.4.11. What would be the best solution?

    I am getting new Shuffle 4th Generation, but my Macbook is Version Mac OS X 10.4.11.
    What would be the best solution to make them to work together?

    Purchase and install a copy of Mac OS X 10.5 Leopard and upgrade it to 10.5.8.  You can still find retail copies of Leopard online at Amazon, eBay, and third party resellers sites. 
    However, before doing that, verify that your Mac can indeed run Leopard by meeting the following hardware requirements.
    Requirements for Mac OS X v10.5
    B-rock

  • What would be the SQL statement?

    What would be the SQL statement to pull data from the current week that the data was queried, regardless of what day of the current week that you queried the data?

    WHERE Date_Col >= TRUNC(SYSDATE, 'DY')
    Note that the first day of the week depends on national settings:
    SQL> alter session set nls_territory = 'AMERICA';
    Session altered.
    SQL> SELECT TRUNC(SYSDATE, 'DY') FROM DUAL;
    TRUNC(SYS
    20-JAN-08
    SQL> alter session set nls_territory = 'GERMANY';
    Session altered.
    SQL> SELECT TRUNC(SYSDATE, 'DY') FROM DUAL;
    TRUNC(SY
    21.01.08Regards,
    Dima

Maybe you are looking for

  • How can i get Mac to read a certain type of file?

    i will cut to the chase i have some files from a voice recorder on a WINDOWS pc i stick a 512 mb flash drive in the windows pc's usb slot now i got the files on the flash drive i stick the flash drive into the Mac Minis Usb slot it shows the files bu

  • Question about multiple ipods on one computer

    I set up my own ipod nano on my computer and I have been using it without problems for some time. Now someone else in my family got the same ipod nano. I do not know how to set up this new ipod. Do i use the same software already on my computer? Do i

  • Error in deploying the application

    Hi, I have an ear file. I am not getting any error when I deploy on one server but the same ear file when I deploy on other server, I am getting following error. Can anyone help me on this please [2009-08-17 11:24:11,525] [main] ERROR - Parse Error a

  • SCCM console connection problem to SMS provider

    I have installed sccm in the bolw deisgn for the lack of Cluster test environment. It is just to test SCCM HA. SQL 2008 and SCCM 2012 Site server in two separate physical box(win 2008) and installed additional sms provider to another windows 2003 box

  • To revoke your sharing invite with this user, please use the Manage shared projects dialog box.

    How do I remove someone from the shared project dialog box? And how to install Adobe Story on my desktop without getting an error message?