SQL to change the negative number to positive number
My apologies for the no doubt high 'thick-as-a-Board' nature of my request.Is it possible to convert a negative number by a positive value using SQL. I have a report that joins the 2 tables and I want to join the tables on a field 'amount '. Problem, is that in the 1 table QTYs are negative, and in another QTYs are positive. I know that this is in itself is a stupid thing to do, but anyway.
I was just wondering if there is a simple way to get positive number versions of numbers:
GET sampledata
WITH sampledata AS
(SELECT -345 var_num
FROM DUAL
UNION ALL
SELECT -423423
FROM DUAL
UNION ALL
SELECT -323.5
FROM DUAL)
SELECT *
FROM sampledata;
Any advice much appreciated.Thank you
Published by: jimr on February 9, 2010 12:38
Change of subject
you mean this:
SQL> ed
Wrote file afiedt.buf
1 WITH sampledata AS
2 (SELECT -345 var_num
3 FROM DUAL
4 UNION ALL
5 SELECT -423423
6 FROM DUAL
7 UNION ALL
8 SELECT -323.5
9 FROM DUAL)
10 SELECT var_num
11 , abs (var_num)
12* FROM sampledata
SQL> /
VAR_NUM ABS(VAR_NUM)
---------- ------------
-345 345
-423423 423423
-323.5 323.5
Tags: Database
Similar Questions
-
ICloud Keychain how can I change the phone number needed to verify the code text for me? The number it was sent is an old phone number of my friends that I do not have access to the.
Try this from another thread I saw.
On iOS, go to settings > iCloud > keychain and tap button to disable iCloud keychain. (you will be asked to delete or keep the passwords on device) I chose to delete...
Then turn it back on, and pop - up chose reset iCloud trousseau, on a chosen pop-up confirmation reset
In the new window pop up use iPhone password like iCloud cryptogram? has chosen the use code
Enter your secret code (4 digits) then choose country and your new phone number
Although, to "Restore the iCloud Keychain," I took to erase the data and essentially set up a new keychain. Not the case. Strangely, after essentially bypassing the security system, setting a new password and verification number, I see my cards, passwords and other data have been restored. Maybe it's all the iCloud account and this master password. Or maybe it's a bug. With Apple, we'll never know.
Also have a look here: get help using iCloud Keychain - Apple Support
-
How can I change the phone number to use Face Time?
How can I change the phone number to use Face Time?
Your phone number come from your SIM, and when you open a session and activate FaceTime. It should appear automatically. If it is not, then I would say that your FaceTime does not complete the activation process. If you go to settings > FaceTime, you see something awaiting activation or waiting for activation under the switch to turn it on?
-
How to change the serial number when the system board is replaced
How can I change the serial number of the system in the bios of a D530 SSF when replacing the motherboard?
Hello:
I suppose that if that's all you can do with this utility, then it of all you can do.
I do not think I said that the utility likely to modify or add the model number, nor asked the question originally.
You will need to contact HP technical support and have a technician HP bios with any other information you need to tattoo.
Paul
-
change the phone number in apple ID
change the phone number in apple ID
Yes
-
How can I change the phone number in apple ID
How can I change the phone number in appleid
Hi alistair290,
Welcome to the communities of Apple Support! If you want to check or change the linked phone number to your Apple ID for use in iMessage and FaceTime, you can find information and the steps in the following article useful:
Link your number of iPhone and Apple ID to use iMessage and FaceTime - Apple Support
See you soon
-
Hello
I replaced the motherboard on an HP Folio 13-2000 and im having trouble changing the serial number to match the previous motherboard
I tried the back HPSET152.exe tool and the tool wndmifit in windows that said "this motherboard is not supported.
Does anyone have any suggestions?
Thank you
Matt Davey
HP CDS engineer
Hello
These tools are available only for authorized service partners and must not be shared.
If you are an employee of HP, please HP service team for more details.
-
Change the Port number of e-mail outgoing "587" as required to use the Comcast e-mail
When my email out through Comcast did not all Comcast more, technical support told me that I had to change the number of Port for outgoing in Windows Live Mail beta 110 to 587.
Worked well, until I had a system crash.
When I reinstalled Windows Live Mail, I could fine is no longer the 'Tools' button in the status bar and by result cannot change the port number. So, I can't send emails from Comcast of Windows Live Mail.
The inbound port setting is apparently correct already, as I had no reception bad don't mail... sending mail.
I hope it will work for you. I use Windows Live Mail 2009.
If you look on the left side of the window, you will see the name of your e-mail account. (Underneath there is Inbox, drafts, sent items, etc.)
You'll want to right-click on the name of the mail account. (Right above where it says Inbox.)
Then you'll want to click on properties.
A properties box opens. You'll want to click on the tab "Advanced" on the right side of the Properties window.
The first area is the SMTP (outgoing) port number. You just want to change it in 587. -
How to change the phone number of Simulator
Hi Experts,
Please help me on how to change the phone number of blackberry Simulator.
Thanking you in advance,
In JDE:
Edit-> preferences-> Simulator-> network-> phone number
-
How to change the maximum number of specification for the search results
If there are more than 500 system specifications, system would show 'maximum number of 500 records has been exceeded' when the user is trying to use '%' to find all the specifications. How can I change the maximum number showed the result of research? Thank you!
Sorry, there is no configuration desinged to change this maximum number.
But as a temporary workaround (it is not good for your performance), you can config MaxSearchResults property to a specific number of control ctlSpecSearch in Prodika\Code\Web\gsm\BaseForms\default.aspx, such as
Please relate your performance if you config MaxSearchResults to be more than the default value of 500.
-
change the ip number of the Forms Server
I had to change the ip number of the server forms (forms 11.1.1.4 weblogic 10.3.4) on server 2008r2.
This is wrong. The weblogic administration console works fine, but forms does not work. Nothing can connect to shapes
ports. Far as I can tell in weblogic should not have to be changed, because everything was in terms of the
host name Windows which is unchanged, or the domain name that is also unchanged.
But it does not work. I tried to use the command chgiphost on webtier who is also installed and that
did not work. According to doc 1350961.1 the script went wrong in this version of the fusion. I tried the
suggested new script and that does not work either. (null/config/OPMN/opmn/opmn.xml is an invalid file)
Any ideas on things to look at would be welcome.
I thought about it. too bad, it took a week. To set up a replacement Forms Server, I tried to follow
1060058.1 who advocated in this hard coding a number ip in instructions for weblogic. Then
It dawned on me that I had done something like that in the old form server I had set up to
launch at startup of the machine. The command to do so had been deposited in the windows Task Scheduler:
c:\blahblah\bin\StartManagedWeblogic.cmd WLS_FORMS t3 / / SERVER: 7001
Was it that the number of bad ip hard coded in there somewhere? I disabled this command, restart and
has been able to start weblogic manually and... it worked. I guess the old ip number had been encrypted somewhere and this is why a search for her as a text did not. I vote for not hardcode in fabric ip numbers. Pouvez instructions
for 1060058.1 be changed to not to use IP numbers? It would be a big step for mankind oracle.
-
Hello
I chaing the naminig and the VAT number of my agency.
How can I do too change the VAT number for you invioces.
I have AdobeCreative Cloud
Hello
You will need to contact support by calling/chat for this request.
* Be sure to stay connected with your Adobe ID before accessing the link above *.
Please see Support FAQ: how to contact Adobe for support?
Hope that helps!
Kind regards
Sheena
-
How can I change the VAT number?
Hello
I would like to change the VAT number associated with my account.
There is a note with a link "contact us to change the VAT number" but the CAT is closed and there is no other options except for the forum.
It's amazing that I can't get in touch with someone in Adobe!
Do you know how to get in touch with support?
Thanks in advanceSince this is an open forum, not Adobe support... you must contact Adobe personnel to help
Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">===>
Don't forget to stay signed with your Adobe ID before accessing the link below
Creative cloud support (all creative cloud customer service problems)
-
I need to change the VAT number.
I try a lot of possibility but no result.
Someone can help me.
THX
Hello
Please see Adobe Store | Order FAQ and your online payment
You will need to contact support by calling/chat for this request.
* Be sure to stay connected with your Adobe ID before accessing the link above *.
Kind regards
Sheena
-
VCenter Service does not start after changing the port number
Hi all
Accidentally, I changed the port number for the Vcenter server from the portal of VCenter 10443 and dint realize that the Java application uses 10443 so.
Could not start the server vcenter service, because its raise an error saying 10443 port is already im currently byt used another application.
I tried to stop the Java service, in order to start the vcenter service and make changes to port again, numbers but I am unable to stop the java application.
Please, if anyone knows how to change the number of Vcenter via config port or any other way, please throw a comment... Its much appreciated.
Thank you
Nirmal
If you use the MSSQL database, locate WebService.Ports.http in the VPX_PARAMETER table and change to the correct port.
Maybe you are looking for
-
Unable to save Mac screen captures to PDF more
I used to be able to save Apple screenshots on a Mac in PDF format. I even had an app which allow me to choose the output on the fly format and also I would rename the PDF file and the location to be saved. He worked for many years (or so it seemed).
-
Re: Cannot remove Toshiba SD Memory utilities
Hello I can't delete Toshiba SD Memory utilities, and when I go to the computer and right click on any player, it's appear an error message and what he trying to uninstall itself. How can I remove it? I need to reinstall it, and then uninstall it? If
-
I forgot my apple id and password mail rescue security questions. I want to change my emai rescue and buy security questions to buy some apps
-
Passing a Document Windows 8 printer drive?
Hello, I do not know how to move a PDF from Windows 8 drive to the printer? If I download a document on Internet Player Windows 8 again and there is no option for "print document" in the drive. How do you have documents do not go to the drive autom
-
How can I keep the updates that I rejected following lists?
How can I keep the updates that I reject in the following lists of available updates?