How can i get the maximum salary first in the order of ascending
Hi,
How can i get the maximum salary first in the order of ascending.
I need the sql query.
my output should like:
Emp_Name Salary
A 5000
SS 100
AA 300
DD 700
WW 2000
Thanks,
MuthyaM.
Here is an example :
SQL> with mytable as
2 ( select 'aa' as col1, 300 col2 from dual union all
3 select 'ss' as col1, 100 col2 from dual union all
4 select 'a' as col1, 5000 col2 from dual union all
5 select 'dd' as col1, 700 col2 from dual union all
6 select 'ww' as col1, 2000 col2 from dual )
7 select col1, col2
8 from mytable
9 order by decode(row_number() over (order by col2 desc),1,0,1),col2;
CO COL2
a 5000
ss 100
aa 300
dd 700
ww 2000
SQL>Nicolas.
Similar Messages
-
How can I get the order of my podcast to appear correctly in the store?
When I subscribe to the podcast, the order is correct. However, in the store it is not. I just published the podcast to iTunes store and pubDate matches the physical order of the <item/> tags and that's what matches the podcast when subscribed (new on top).
If you enter your podcast name in the search field, then the results page apparently shows the episodes in popularity order - it may also bring up other podcasts with a similar title and then mix up episodes from the various podcasts.
If you go to your actual Store page - click on the icon for your podcast in the Search results, or go to the URL you were given in the acceptance email - then initially the Store sorts by the numbered column at left, which should give the order of episodes in the feed. You can click on the headers for the other columns to sort by title, date, etc. - when subscribing you get pubDate order and no opportunity to change it. -
How can i get the order form to display only those fields selected by user?
Hi everyone,
I'm a newbee so please bear with me.
I would like to create an interactive form in a multi-page format. I would like to display our fifty odd products, divided into 5 different categories. The client browses through these pages then selects those that he wants to buy.
The interactive order form at the end should display only the client’s choices along with the Total purchase order.
In short, a little like a on-line catalogue and cart/basket that we see while buying online.
Now, I've created my pdf brochure, and I have the order form on page 12-13 at the end with the subtotal, Vat and Total ...all that's fine. My only problem is I want the order form to display only those items selected by the user and not the entire list of items as shown in my current order form.
Have a look at my pdf here http://www.upperside.fr/vijee/mpls09ex/EXHIBITOR%20SPECIAL%20ORDERS2010.pdf
Can someone please help me/guide me to the right resources that I need to look up to achieve my end result.
Thanks a lot in advance.
VijeeThe poster already posted at the Acrobat Users Community, Interactive Forms that sums up a client order from catalog. The sample form posted to Acrobat.com was a revision of the sample form that came with Acrobat 4.0. There are some fairly advance scripts, templates, and document level functions involved with this form.
-
How can I get the phone numbers in contacts to appear with dashes between the first 3 numbers, the next 3 numbers, and the last 4 numbers? Until very recently
it did so. Contacts on my macbook pro does show up this way. I do have a mobile me account and in the past syncing was no problem. What setting has changed?The phone number format as well as the date language and format and the time format are controlled by the Region Format setting. Go to Settings > General >International > Region Format. When you change a region format, you can go back one page (to International) and see an example of the date/time/phone number format that your selected region format will produce.
-
If I have an apple ID for myself and my wife has just got a iPhone for the first time how can she get the same apps as I have for my iPhone and iPad by getting it off my iCloud?
She can't from iCloud without setting up your iCloud account on her phone. But just sync the same apps from your iTunes Library on your computer to her phone.
Your wife should setup her own iCloud account - which is separate to the iTunes Store accounts. -
How can you get the apple tv to work in a hotel where to get on the wifi you have to still go to a website first and put in your room?
Welcome to the Apple Community.
Unfortunately the Apple TV doesn't have a web browser so you can't do that. -
How can i get the timestamp of first data at continue sample mode?
how can i get the timestamp of first data at continue sample mode?
6023e pci , and c++ code
thanks !The tangent ist the derivative of the curve in that point. You can try to use a numerical derivative vi or keep it simple an approximate with a line through the adjacent points.
Gabi
7.1 -- 2013
CLA -
How can i get the all values from the Property file to Hashtable?
how can i get the all values from the Property file to Hashtable?
ok,consider my property file name is pro.PROPERTIES
and it contain
8326=sun developer
4306=sun java developer
3943=java developer
how can i get the all keys & values from the pro.PROPERTIES to hashtable
plz help guys..............The Properties class is already a subclass of Hashtable. So if you have a Properties object, you already have a Hashtable. So all you need to do is the first part of that:Properties props = new Properties();
InputStream is = new FileInputStream("tivoli.properties");
props.load(is); -
How can I get the "text" field from the actionEvent.getSource() ?
I have some sample code:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.ArrayList;
public class JFrameTester{
public static void main( String[] args ) {
JFrame f = new JFrame("JFrame");
f.setSize( 500, 500 );
ArrayList < JButton > buttonsArr = new ArrayList < JButton > ();
buttonsArr.add( new JButton( "first" ) );
buttonsArr.add( new JButton( "second" ) );
buttonsArr.add( new JButton( "third" ) );
MyListener myListener = new MyListener();
( (JButton) buttonsArr.get( 0 ) ).addActionListener( myListener );
( (JButton) buttonsArr.get( 1 ) ).addActionListener( myListener );
( (JButton) buttonsArr.get( 2 ) ).addActionListener( myListener );
JPanel panel = new JPanel();
panel.add( buttonsArr.get( 0 ) );
panel.add( buttonsArr.get( 1 ) );
panel.add( buttonsArr.get( 2 ) );
f.getContentPane().add( BorderLayout.CENTER, panel );
f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
f.setVisible( true );
public static class MyListener implements ActionListener{
public MyListener() {}
public void actionPerformed( ActionEvent e ) {
System.out.println( "hi!! " + e.getSource() );
// I need to know a title of the button (which was clicked)...
}The output of the code is something like this:
hi! javax.swing.JButton[,140,5,60x25,alignmentX=0.0,alignmentY=0.5,
border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@1ebcda2d,
flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,
disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,
right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,
rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=first,defaultCapable=true]
I need this: "first" (from this part: "text=first" of the output above).
Does anyone know how can I get the "text" field from the e.getSource() ?System.out.println( "hi!! " + ( (JButton) e.getSource() ).getText() );I think the problem is solved..If your need is to know the text of the button, yes.
In a real-world application, no.
In a RW application, a typical need is merely to know the "logical role" of the button (i.e., the button that validates the form, regardless of whether its text is "OK" or "Save", "Go",...). Text tends to vary much more than the structure of the UI over time.
In this case you can get the source's name (+getName()+), which will be the name that you've set to the button at UI construction time. Or you can compare the source for equality with either button ( +if evt.getSource()==okButton) {...}+ ).
All in all, I think the best solution is: don't use the same ActionListener for more than one action (+i.e.+ don't add the same ActionListener to all your buttons, which leads to a big if-then-else series in your actionPerformed() ).
Eventually, if you're listening to a single button's actions, whose text change over time (e.g. "pause"/"resume" in a VCR bar), I still think it's a bad idea to rely on the text of the button - instead, this text corresponds to a logical state (resp. playing/paused), it is more maintainable to base your logic on the state - which is more resilient to the evolutions of the UI (e.g. if you happen to use 2 toggle buttons instead of one single play/pause button). -
How can I get the underlying object from the ObjectReference
Dear friends,
I think this question has been asked a couple of times. But, I am still wondering if anybody has found an answer to it. Maybe this is some common need ...
I would like to get the underlying object for which the ObjectReference is
a mirror For example, I have a class Customer in my application, and I can get an ObjectReference through JDI during runtime. But how can I get the target VM's object which is a real instance of Customer, by which I can invoke methods defined in Customer?
Thank you so much for any input!
SunnyDayI'll preface this response by admitting this far from an elegant solution, but I did write a function addressing this question, mostly as an exercise.
If passed an object with an InTextFrame property (Pgf, AFrame, Cell, Fn) that resides in an open document, the function will return the Doc object. Otherwise, it returns undefined.
function getParentDoc(testObj) {
//Get object for current page
try { var curPage = testObj.InTextFrame.FrameParent.PageFramePage; }
catch(er) {return;}
//Step backwards to first page in document
var prevPage = curPage.PagePrev;
while (prevPage.ObjectValid())
curPage = prevPage;
prevPage = prevPage.PagePrev;
//Compare with first pages of open documents
var testDoc = app.FirstOpenDoc;
while (testDoc.ObjectValid())
if (curPage.id==testDoc.FirstBodyPageInDoc.id) return testDoc;
testDoc = testDoc.NextOpenDocInSession;
return;
To your PPS: Rather than seeing the native framework grow bloated to address additional features, I would love to see Adobe and other developers publish libraries of useful functions and class extensions. -
How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size?
How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size? I would like them to open at the size they were previously resized like they used to in previous operating systems. They currently open at a very small size and the first colum is only a few letters wide necessitating a resize practically every time one wants to use it. Any help would be appreciated.
hi Prasanth,
select werks matnr from ZVSCHDRUN into table it_plant.
sort it_plant by matnr werks.
select
vbeln
posnr
matnr
werks
erdat
kbmeng
vrkme
from vbap
into table it_vbap
for all entries in it_plant
where matnr = it_plant-matnr and
werks = it_plant-werks.
and again i have to write one more select query for vbup.
am i right? -
Can I share one iTunes account for my iPad and two I phones? If so, how can I get the purchased apps and music on all three devices? How do I sync all the devices to have the same music and apps?
You can set up an iCloud account on each one (the SAME iCloud account using the same AppleID on each) and then sync via iCloud.
http://support.apple.com/kb/HT5262\
However, an iCloud backup nor sync contains purchased content - that is available for redownload from the iTunes and App stores (so no need to waste iCloud space storing it for you).
So, for purchased content, you will have to download it on each device - just use the same AppleID and download each item on each device.
Without a computer to aid the sync'ing, downloading the purchased content on each device is the only way.
P.S audiobooks cannot be re-downloaded once purchased (all other content can be), so without a computer to save, store and move the audiobook files around, you will only be able to put those on one device - the one you first purchase it on. -
I have some problems to get the App Store on my mac. Every time when I do a Software Update, there is no App Store to download.
How can I get the App Store on my Mac?
It's because I want to set OSX Lion on my MacbookPro.
Thanks!
SmettSkyAs you have 10.5.8 you need to upgrade to at least 10.6.6 to get the App Store as this was the 1st version it came with.
A workaround is to get a friend who has 10.6.6 or better to download Lion for you without installing it. You can create an App Store account on the friend's computer I think to do this. Copy the Lion installer from that computer to a USB stick or burn it to DVD and you should be able to install it on your own computer, I think. You might have to create an empty partition on your own computer first for Lion installation as I'm not sure that it will install over Leopard. -
How can I get the old Firefox back, this new one stinks
how can I get the old Firefox back, this new one stinks
Firefox is highly customizable and you may be able to customize it to meet your needs.
If you do not like the new UI, you can make Firefox 4 look and behave more like Firefox 3.6, for details see http://www.computertechtips.net/64/make-firefox-4-look-like-ff-3-6
To downgrade to Firefox 3.6 first uninstall Firefox 4, but do not select the option to "Remove my Firefox personal data". If you select that option it will delete your bookmarks, passwords and other user data.
You can then install the latest version of Firefox 3.6 available from http://www.mozilla.com/en-US/firefox/all-older.html - it will automatically use your current bookmarks, passwords etc.
To avoid possible problems with downgrading, I recommend going to your profile folder and deleting the following files if they exist - extensions.cache, extensions.rdf, extensions.ini, extensions.sqlite and localstore.rdf. Deleting these files will force Firefox to rebuild the list of installed extensions, checking their compatibility, and reset toolbar customizations.
For details of how to find your profile folder see https://support.mozilla.com/kb/Profiles -
We need the Request Restart ability when scheduling a single reoccurring job in Redwood. Most of our jobs are scheduled in CHAINs which offers the Final Status Handler on Step level, and the schedule is "paused" when a job in the CHAIN has failed ( the next instance does not populate until the OP MSG has been Replied to) , and once the OPERATOR message is replied to, the CHAIN can resume running again ( desired ) . But we need this same ability when scheduling a single job not in a CHAIN. In our testing, we set up a job with Request Restart chosen on the Error , Killed and Unknown selections on the Restart Behavior Tab. But we found when a job is scheduled say once a day at 8AM, and when it fails, an OPERATOR msg appears allowing a Restart choice ( desired), but the next day's schedule also populates ( undesired) and we do NOT want the schedule to continue on yet because we need a chance to fix the error before the next insance runs for business reasons. So how can you get the schedule of a single reoccurring job with Restart ability in Redwood to pause when it has failed...?
Hello Fran,
You can wrap the job chain in a master job chain in the first step and set the final status handler there.
You can also set the Restart Behavior to 'Stop Submit Frame', in that case you will have to resubmit the job once you are finished troubleshooting.
Regards Gerben
Maybe you are looking for
-
RDP from inside to outside using PAT?
I have several client machines( inside) that needs to have an RDP access to one server(outside) reside on customer site. The challenge is that the clinet machines can be anywhere/any subnet at any given time and will have different IP address from DH
-
ITunes only gives me the option of setting up as a new phone, or from backup?
Hi guys, I'm having an issue with my new iPhone 6 Plus and connecting it to iTunes. To cut a long story short; I received a brand new, sim free iPhone 6 Plus for Christmas, upgrading from my old 4s. I backed up the 4s to iTunes on my PC (not iCloud
-
Can't uninstall Apple Mobile Device Support inorder to connect ipod touch
Ok so I am trying to connect my Ipod touch. looks like I'm not the only one having issues. So here it goes: First of all the main problem is my iTunes doesn't see my ipod. I get a message telling me that : "iTunes required a new version of Apple Mobi
-
App No Longer Works After Creating EJB Session Bean
I am using EJB3.0 and using JDEV 11g, PS1. I have used EJB to create my entities from tables and then i created my ejb diagram. After doing that my application (i have a jspx page) that runs fine. Once I create my session bean, I am no longer able to
-
i already updated my phone and download he latest version of itunes. The Siri is turned off and the voice control appers alone and start makiing calls itself. please help me!!