Swapping the values .. please help
Hi,
I have a table called emp_sal_details, in which I do have empno, ename, curr_sal (current month salary), prev_sal (previous month salary) as colulmns .. What my programmer did was, he has put current month salary into previous month salary column and previous month salary into current month salary ( I mean the values), now with sql statement, I want to SWAP the values .. how can I do that that too without creating any interim table or any other table? Apart from SQL, can we also use PL/SQL here ?? If so, how
Regards
Message was edited by:
user463477
You can do that with a single update stmt.
Please this exercise as a clue and apply same logic for ur table(s).
create table t11(c1 number,c2 number);
insert into t11 values(1,2); commit;
update t11 set c1=c2, c2=c1;
select * from t11
output:
c1 c2
2 1
Cheers
Ravikanth
Similar Messages
-
i have one of the old macbooks and wish to hook it up to my tv. do i need a mini dvi to hdmi adapter plus a 3 rca phono lead with a jack for the sound. please help as im useless at this stuff. cheers
First we need to know which one of the 9 different models of MacBook you have. To see which model you have go to the Apple in the upper left corner and select About This Mac, then click on More Info (and then System Report if you’re running 10.7 Lion). When System Profiler comes up check the Model Identifier and post it back here.
The Late 2008 model 5,1 Aluminum Unibody and the Late 2009 model 6,1 and Mid 2010 model 7,1 White Unibody have a Mini DisplayPort. The Early 2006 model 1,1 through Early 2008 model 4,1s plus the Early and Mid 2009 model 5,2s have Mini-DVI ports. Each would take a different adapter to connect with the TV. -
I erased an iphone on find my iphone , so i wanted to know what happened and I erased my without a sim card and now I says I cant go on it until i put in a sim card. Did i ruin the phone please help thanks.
You did not ruin the phone, you will need a sim card to activate the phone and then connect the phone to itunes and do a restore from back up.
http://support.apple.com/kb/HT1414 -
HiHi can you please help me to fix my iPhone 5 when I update it to the iOS 6.1.2 my carrier signal indicator states searching all the time please help me what to do
Hi Samantha,
Are you aware that if you restore your ipad that you will lose all data from your ipad and very difficult to get it back unless you had previously made a back-up of your data on itunes or in the cloud. and that would be on the computer you set those up on. (There are some independent apps out there that might help restore data but I don't have any experience with them...)
Also, I think if you restore on another computer you're supposed to have administrator rights and have the latest itunes update. And I think if you sync (if restoring is considered syncing with another computer, you'll be locked out of your computer or a new one.)
I don't know if there is a way for you to safely eject your ipad from your mom's laptop and find another way, but please read this
http://support.apple.com/kb/ts1275
Also, I suggest you start a new post and title it something like First, stuck on update and now on Restore on another computer. Please HELP! And then tell the story of your problem that you originally included and your follow-up efforts to restore given a suggestion on previous post (though I think you SHOULD AVOID RSTORE if you can.) And refer them to your original post
https://discussions.apple.com/message/22050045?ac_cid=tw123456#22050045
Hope this helps and if you can get back to your ios before the upgrade, stay with it. I hope it all works out for you.
FYI - If it's a new or refurb bought within the past year you might be able to have it replaced by Apple. -
My iPHONE 5 wifi is NOT working when am 3 feet away from router while my iPhone 4s has full signal all the time.Please help.
The problem would seem to be in the firewall in your router. Have you tried disabling it? I assume you've updated the router firmware, right? Consider bypassing the ISP provided router (using it as a modem only) and unsing another device such as an Aiport Express.
-
my ipad 1 loses wifi connections when it goes to sleep. have to go into settings to reconnect. Does this all the time. please help.
my ipad 1 loses wifi connections when it goes to sleep. have to go into settings to reconnect. Does this all the time. please help.
-
Im having problem setting up my Hotmail account, it used to work fine until few days ago. It says ive entered an incorrect username or password which i can sign in fine with them details if i use laptop or safari through the phone, Please help..
I Sugges you to log into your hotmail acc and go to security and password change bit, then you will see two-step verification.. turn that off and you will be able to set it up on your iPhone/iPad or even Mac.
Give your phone a restart before trying to set it up. Thanks -
accidentally removed from,sharing and permissions the admin user,and now i do not when i find the home icon at my computer i do not have permmission,and the mac does not works properly,lots of question mark at the dock ,please help
I'm going to assume that since you deleted your hard drive and all its files, you had a backup, yes? If the backup has an OS (bootable clone), then you can boot into it by holding down the option key when you start up you iMac and choose the backup drive. Then use Carbon Copy Cloner or Super Duper to copy the files back to your iMac.
-
Greetings from the Croatian, please help me, I applied, create an account, but they keep telling me to confirm the account with your support, and we simply do not succeed, do not let me go to the store, or iTunes, so I can not download application, please tell me where I'm wrong, thanks a lot
Novo! Držite pritisnutu tipku Shift, kliknite i povucite riječi prema gore kako biste ih preuredili. Ukloni
Google Prevoditelj za tvrtke:Translator ToolkitPrevoditelj web-lokacijaGlobalna tražilica tržišta
Isključi neposredan prijevodO usluzi Google PrevoditeljMobilni uređajiPrivatnostPomo -
Good morning There is a stop at the camera Please help me When you turn on the camera Shut down automatically
I'm in iraqAdobe Reader is free. It always has been.
You have obviously downloaded and installed Acrobat (30 day trial version) and the trial period has expired.
You need to uninstall Acrobat (using the Control Panel and Add/Remove Programs or Programs and Features [Vista/7])
Then run the Windows Installer Cleanup Utility http://support.microsoft.com/kb/290301
to completely remove the Acrobat installer files.
Then download Reader 9, install it, and go about reading PDFs for free.
EDIT: Please, please please.... do NOT post a phone number in the forums.
You're inviting trouble if you do.
Not everyone who reads these pages is here to help fellow Adobe product users.
Message was edited by: Mac+Win=Me -
After installed mavericks i cannot sign in to my facetime and i messages. i tried it 100 times, but it is showing couldn't sign in check your network and try again. there is no problem with my network. if anyone knows the solution please help me .
Hi,
What version of the OS did you upgrade from ?
Anything before OS X 10.8.2 may have an issue if the Logic/Mother board has been replaced and the Serial Number not "flashed" back to it.
In the Apple Icon menu use the About this Mac item.
In the new panel click twice on the line that tells you the current OS level
It will change to the Build number (and alternative count to the OS versions) and then the Serial Number.
If it is missing you need to get it replaced.
(It is supposed to be done on Repair or Refurbishment).
An Apple Store or Apple Authorised Service Provider as the best choices.
There are apps you can download (They are Mac Model specific) but needs careful typing as it is a once only trip.
8:56 pm Sunday; November 24, 2013
iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
Couple of iPhones and an iPad
Message was edited by: Ralph Johns (UK) -
I keep getting the "Something went wrong" message on my Droid Razr HD also. I looked in my Settings, and I don't have a Cloud app - I have a Cloud Print app with nothing cached. This is making it nearly impossible to use the phone - please help! So far, this website has only made things more difficult.
The details you're providing are very helpful, Maj_Dad. With airplane mode enabled,
there would be no message because that disables celluar data. I would recommend
tying that mode with WiFi to see if it still happens. It sounds like this issue
has something to do with one of the applications on the device.
JoeL_VZW
Follow us on Twitter www.twitter.com/vzwsupport -
What is the easiest way to restore my ipod back to factory specs. It has a red circle with a red x in the middle,please help me to fix my ipod, until now i can't use my ipod..i tried all the procedures in Restore ipod from disk mode but still not working, please help me...
If you are unable to get the iPod into Disk Mode to try and restore it, it's a very good indication, as mentioned in the article, that the iPod's hard drive is damaged and in need of replacement either by Apple or a third party repair company.
B-rock -
I have just bought a MacBook Air OS X,10,7.2 from a friend but she has forgotten her password. any clues how to reset the password, please help. I can't personalise my MacBook until I reset it.
http://osxdaily.com/2011/08/24/reset-mac-os-x-10-7-lion-password/
-
this is,we've encountered the following issues.
installer failed to initialize.this could be due to a missing file.please download adobe support advisor to detected the problem.
please,help me!Hi there Mylenium, is there any way you can help me? My cs6 is doing all kinds weird things lately. The liquifying too stopped working completely, when I try to work with the actions, it starts flickering and changing opacity in color by itself. It starts flickering and is completely out of whack! I tried uninstalling and reinstalling and still no luck. I tried getting in touch with adobe and no luck with that neither! Is there anyway you might be able to help?
Maybe you are looking for
-
Restore needed but wont restore HELP PLEASE
my iphone keeps saying restore needed, iphone can not make calls or recieve calls restore on itunes phone says no service all the time, but iphone will not restore on itunes loads half way then stops, ive even tryed to restore settings on my phone ma
-
Os x 10.8.3 bootcamp reverse scroll direction
I just installed 10.8.3 on my retina and the new windows 8 driver with a fresh bootcamp install. Good news is the bluetooth works to keyboard and trackpad, both my external thunderbolt monitors work, the resolution is now correct at 2880x1880. Only
-
File transfer to K-1 from Linux Mint
Hi, I've had my K-1 for just two days now and it's prompted me for updates 5 or 6 time What's with that? It seems that at least one of these bumped me up to Android 3.2. Right now my main issue is that when I plug the usb cable to my laptop to transf
-
How to persist updated DataGridTemplateColumn value
I am new to WPF and facing some issues with datagrid . My ViewModel has an ObservableCollection Report Of class T_Reports. //EF generated code public partial class T_Reports public int ReportID { get; set; } public string ReportName
-
I Pod classic 160 gb Battery Problem
Right my problem is that my battery went low with the message 'connect to power' so i connected it to a usb power adapter,it says it's charging and the menu comes and u can play music when its connected,ive had it on charge on the usb power adapter f