Can Anyone help to suggest the query
source table:
Origin Destination Miles
Sydney Melbourne 1000
Perth Adelaide 3000
Canberra Melbounre 700
Melbourne Sydney 1000
Brisbane Sydney 1000
Perth Darwin 4000
Sydney Brisbane 1000
Duplicate routes are to be ignored so the output is
out put:
Origin Destination Miles
Sydney Melbourne 1000
Perth Adelaide 3000
Canberra Melbounre 700
Brisbane Sydney 1000
Perth Darwin 4000
Please suggest a select query / sub query with out using any subprograms or functions/pkgs to get the out put table.
You can try this:
select distinct
greatest(ORIGIN, DESTINATION) as "City a"
,least(ORIGIN, DESTINATION) as "City b"
, DISTANCE
from MY_TABLE;
But you have to be sure that columns ORIGIN, DESTINATION from MY_TABLE have "NOT NULL" contraints, otherwise you have to deal with null values somehow (e.g. with "nvl").
Similar Messages
-
I have an IPhone 4 and downloaded 12 songs from the Itunes store on my phone. I want to burn a CD but when I go into my ITunes on my desktop which is Windows XP there are only 7 listed not the 12 I bought. Can anyone help me find the others?????
Connect iPhone, then go to iTunes > File > Transfer purchases...
-
Can anyone help me change the DOB on my sons profile for his apple I'd so I can setup family sharing? I originally put both ids in my name. He is 19 do it keeps saying needs my permission but no instructions in how to get that done? His phone was stollen once last month need to get this done ASAP to prevent future headaches. Ty
You can not change the date of birth on the account. Apple makes that clear up front when the account is created.
The only way to "fix" this is going to be for him to create a new account with the correct information. Any apps purchased with the old one will need to be re-purchased with the new account. They can not be transferred. -
Can anyone help me? The iTunes update corrupted my program. I uninstalled, and then reinstalled iTunes; only to find an error message about iTunes Helper. After several fruitless, repeat attempts, I am at a loss. Please help…
Many thanks.
With the Error 2, let's try a standalone Apple Application Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of the issue.
Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
http://www.apple.com/itunes/download/
Download and install the free trial version of WinRAR suitable for your PC (there's a 32-bit Windows version and a 64-bit Windows version):
http://www.rarlab.com/download.htm
Right-click the iTunesSetup.exe (or iTunes64Setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
Go into the folder and doubleclick the AppleApplicationSupport.msi to do a standalone AAS install.
Does it install properly for you?
If instead you get an error message during the install, let us know what it says. (Precise text, please.) -
Can anyone help me find the output option in Bridge CC?
Can anyone help me find the output option in Bridge CC?
http://helpx.adobe.com/bridge/kb/install-output-module-bridge-cc.html
-
Hey,I've got a problem on my iPad mini for a few days now?My iPad is in recovery mode at the moment and I Cannot restore my Ipad with iTunes...Can anyone help me with the solution?Each of your helps will be appreciate...Thanks for all the helps...
Follow step 1 to 6 closely to recover your iPad.
http://support.apple.com/kb/HT1808
Note: You may have to repeat the above a few times -
Can anyone help me display the calendar list using an iphone4 with iso 7.1.1? I have already tried tapping the magnifying glass and that doesn't work.
That icon allows for the calendar month to display with the appts for that month below. I want to see only the list of appointments without the month displaying. I use to be able to get that display but since the last update tapping the magnifiying glass doesn't work.
-
when I try to install this update I get the message an error has occured The operation couldn’t be completed. (NSURLErrorDomain error -3001.)(102) - can anyone help my get the update please?
There are problems with the servers. Download and install that update > http://swcdn.apple.com/content/downloads/53/02/041-8081/2jwp4wjrwygtm4lc608qy4h0 n4a9yyq37g/Safari6.0.2Mountain.pkg
-
Can anyone help me with the commands to import and restore backup from another administrative server
Dear all.
Can anyone help me with the commands to import and restore backup from another administrative serverI tried, even with code tags it looks the same since the 2500 character limit is exceeded.
Please post just the relevant parts inside tags as mentioned, and choose a descriptive subject line.
I'm locking this thread.
Thomas -
I can't find photos imported from my iPhone 4 with "Image Capture" to iPhoto anywhere... and they were deleted from the iPhone after import! Can anyone help me find the photos?
Do you know the date they were taken? Try search on that.
Regards
TD -
Can anyone help me find the free full semester labview course slides that were on the labview web site but recently disappeared. I would like to use them in my course.
The main page of the Academic section can be found here.
I think the material you are looking for is the courseware.
Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences. -
my ipod shuffle 4th gen bought today and the voice over works for naming playlist and battery percent but wont name song and artist can anyone help also is the voice over button meant to be soft when pushed ?
thanksThis document explains setting up and using VoiceOver.
http://support.apple.com/kb/ht4322
The overall settings for VoiceOver is on the shuffle's Summary screen in iTunes.
Artist name and song name - Press and release the VoiceOver button.
The playlist menu - Press and hold the VoiceOver button. -
Can anyone help me find the airplay function on my Macbook air (new)
Can anyone help me find the airplay function on my Macbook air (new)
Hi there,
I would recommend taking a look at the troubleshooting steps found in the article below.
Troubleshooting AirPlay and AirPlay Mirroring
http://support.apple.com/kb/TS4215
-Griff W. -
Can anyone help with my sound query?
Hi all
I need to load from a file a sound clip and for it to play when a button is pressed- the difficult bit is without referencing Applet.
Can anyone help?
Thanksimport java.awt.*;
import java.applet.*;
import java.awt.event.*;
import javax.swing.*;
import java.net.*;
import java.io.*;
public class JFrameTest extends JFrame implements ActionListener {
public JFrameTest() {
super("Hey");
setSize(100,100);
JButton btn = new JButton("Press to play");
btn.addActionListener( this );
getContentPane().add( btn );
public void actionPerformed( ActionEvent ae ) {
try {
URL url = new File("1.wav").toURL();
AudioClip ac = Applet.newAudioClip(url);
ac.play();
} catch (MalformedURLException e) {
e.printStackTrace();
public static void main(String[] args) {
JFrameTest f = new JFrameTest();
f.show();
}Those tab-indentations get really messed up... -
HT3986 Can anyone help me update the drivers on Bootcamp.
I use Bootcamp on my MacBook Pro (with Windows 7) for playing games and it has been working great. I recently purchased Battlefield 3 for PC and installed and it says I need to update the Nvidia drivers to a more recent patch, so I went to the website and downloaded it, but when I go to install them it says "This graphics driver could not find compatible graphics hardware". I have tried looking at a bunch of websites and can't find anything. Can anyone help me or tell me where to go to find help? It would be much appreciated!
Thanks, ZackYou can not change the date of birth on the account. Apple makes that clear up front when the account is created.
The only way to "fix" this is going to be for him to create a new account with the correct information. Any apps purchased with the old one will need to be re-purchased with the new account. They can not be transferred.
Maybe you are looking for
-
No! Java 1.5 is all different!
Ok I'm totally not impressed by the new version of java! Everything has like, changed! There's lots of new stuff we have to learn and I'm like, still learning java 1.4! Why did they have to change stuff? Java is like, totally difficult enough already
-
Hi gurus, I have one query with me,Please help me out this. I developed a report, In that I wrote so many select queries all are working fine.And also I wrote some error messages if the data is not selected. Here my doubt is if the data is not select
-
i have forgotton the password on my iphone 4 s and now the phone is disabled. How do i get it working normally?
-
Hello, I have a requirement for a report in SRM which should update the account assignment in SRM-PO with the new WBS Element / Fund. Now, I am little new to SRM programming. Could some one give me detailed steps as to what FMs do I need to use and h
-
ATV2 Video pixelated and audio skipping
I don't think this is the same as the flickering issue or the frame dropping issue discussed by others. Thus, the new thread. When streaming videos (movies or TV shows) from itunes to the ATV2 the picture will get pixelated with the missing portions