How to type the symbol of the square in sql?
Hello everyoneCould someone tell how to tap the square symbol (raise to) in SQL. IE, how to type the formula of cumulative interest in sql:
P * (1 + r/4) increase to 4
Thank you
Gerard
interest is devoted to the:
compound_interest = P (1 + i) n
M is the final amount, including principal.
P is the principal amount.
i is the interest rate per year.
n is the number of years invested.
for example
-----
If compound interest is 5% then 5/100 = 0.05
P = $ 100
n = 5 years
SELECT 100 * POWER ( (1 + 0.05), 5) compound_interest FROM DUAL;
output: 127.62815625
See you soon,.
Manik
Tags: Database
Similar Questions
-
How to type the symbol hashtag on iPad using the Apple pro keyboard?
When I hold SHIFT and press 3, I get a sign £.
Thank you
Go to settings > general > keyboard > keyboards > keyboard hardware and make sure that it is set in the United States or ABC and not the British.
-
How to find the square root of a number/variable
I have a number within a variable.
How to find the square root of the variable?
for example:
xxyy var = 57;
I want to find the square root of 57;
use:
trace (Math.sqrt (xxyy));
-
How to type rupee symbol in the HP dv6 laptop.
Hello
See this link.
-
How to type the hash and symbols
Hi all
Hope someone can help me here. Here is the story:
My Macbook Pro was stolen recently / 2009. I replaced it with a Macbook Pro Retina early 2015 model bought on Ebay UK.
When he arrived, I discovered that he has a U.S. keyboard, rather than a UK keyboard. In fact, I use a French AZERTY keyboard, so it makes no difference to me, I thought it would be simple just to set it on a French keyboard in system preferences, like I did with my old UK Macbook Pro model. It is indeed easy, so I bought a silicone keyboard cover so that it now looks like a QWERTY keyboard - well.
However, I can not type the symbol or the symbol of the hashtag.
I have two Apple keyboards with my iMac, a USB keypad with digital, wireless one. Both are original Apple keyboards purchased in France. Both have the to and hashtag at the top left just below the ESC key.
However, if I hit this key on the Macbook Pro I get < and >, which is in fact exactly what is shown on the cover of Silicon.
I can't just work how to type and # (I copied and pasted to add here)
I even tried to go to the System Preferences/keyboard/text tab, where omw is used as an example to write "on my way". I tried to adjust to produce aa and hh to produce #, but none of these shortcuts not work either!
I rarely need to use < or > and regularly need to use and #, so really this button to do what he does on a normal keyboard AZERTY French Apple.
Is it possible that I can do this?
If not, are there keyboard shortcuts for a US value entered French keyboard? I searched online, but none of the suggestions work.
Thanks in advance for any advice that anyone can offer.
Heather
System Preferences > keyboard > keyboard component...
... check the box that says Viewer keyboard Show [√] [and others] in the menu bar
Close and save the changes if requested.
Go to the menu bar and search the new symbol that looks like a small window with a clover inside key.
Choose Show Keyboard Viewer.
Now, a replica of the tiny keyboard appears on the screen. Hold down the modifier (shift, option, control) keys and it will show you which can generate each key.
-
How to type the circumflex on the consonants
Hi guys.
I would like to know how to type cyrcumflex emphasis on consonants, since I am using some statistical formulas. I found the method to put it right on the vowels.
Thank you all.
Go to Preferences-> keyboard-> Input Sources system
Add extended US keyboard.
Check-> show the Menu entry in the Menu bar and move automatically to the input of a document source
The application must be "Unicode aware. In the menu bar, select extended US. For example typing these consonants
Ŝ ŵ ŷ ĵ m̂ n̂ ẑ ĉ ĝ
Press alt + 6, release, then press the corresponding
-
How to type the third character
Several T500 keys have three characters on them. I know how to make the default character and uppercase characters, but may not know how to get the character down to the left of the key. Seems like a stupid question! Thank you.
All,
The keys you mention are part of the integrated numeric keypad on the * series 20 and earlier versions. Press Fn + scroll stop to activate.
I hope this helps.
-
How to call the OFA PL/SQL procedure.
Hello
I'll call the pl/sql stored procedure of the OAF page (AM). the procedure is content parameter 3 IN 1 OUT parameter. all the parameters of character type is integer.
I put the output parameter and it's returning the value, but I don't have how to configure the setting IN because the settings IN, I need to convert the INT data type number in java.
Please help me.
int in_parm1 = 0;
Number in_param;
Request_id number;
request_id = new Number (0);
getDBTransaction () .commit ();
TXN OADBTransaction = getOADBTransaction();
int l_user_id = txn.getUserId ();
int l_resp_id = txn.getResponsibilityId ();
int l_resp_appl_id = txn.getResponsibilityApplicationId ();
Number of ln_user_id = new Number (l_user_id);
Number of ln_resp_id = new Number (l_resp_id);
Number of ln_resp_appl_id = new Number (l_resp_appl_id);
CallableStatement cs = txn.createCallableStatement ("start oaf_request(:1,:2,:3,:4); end; ", 1) ;
Try
{
System.out.println ("run ahead");
cs.registerOutParameter (3, Types.VARCHAR, 0, 100);
cs.registerOutParameter(1,in_param);
cs.registerOutParameter(4,Types.NUMERIC);
DSI Execute();
in_parm1 = cs.getInt (4);
request_id = new Number (in_parm1);
System.out.println ("Request ID" + in_parm1);
System.out.println ("run after");
DSI Close();
System.out.println ("result");
}
catch (System.Exception e)
{
throw OAException.wrapperException (e);
}I would tell you to go through the "appeal of PL/SQL procedures and functions" Section in the User Guide.
Example and the details are there reference.Thank you
-
How to skip the installation of SQL Express 2005 and using SQL Express 2008 instead?
I have SQL Express 2008 is installed and you want to use instead of SQL Express 2005.
How to configure the installation of Lookout as he ignores the installation of SQL Express 2005?
Are there other measures that must be taken so that Lookout can work properly with SQL Express 2008?
Thank you.
OK - it worked.
However, for 64-bit installations, I had to use the WOW of SQL Express 2008 versions, because, the Citadel is a 32-bit database and installation of 64-bit native versions would not allow an upgrade of the Citadel of Instance.
Thank you.
-
Hi all
I can view the blocked sql using sql_txt to this:
Select distinct s1.username | » @'|| S1.machine | "(INST =' | s1.inst_id |) ' SID = ' | S1.SID |')
blocks ' | S2. UserName | '@' || S2.machine | ' (INST =' | s1.inst_id |') SID =' | S2.SID |') '
LIKE blocking_status, s2.program, s3.sql_id, s3.sql_text gv$ lock l1, gv$ session s1, gv$ lock l2, gv$ session s2, s3 in v$ sql
where s1.sid = l1.sid
and s2.sid = l2.sid
and l1.block = 1
and l2.request > 0
and l1.id1 = l2.id1
and l2.id2 = l2.id2
and s2.sql_id = s3.sql_id;
But I can view the blocker sql
Can you help me how to get the sql_txt hang?
I try to review the program that is:
Select s1.sid, s1.serial #, s1.inst_id, s1. SQL_ID gv$ lock l1, gv$ session s1, gv$ lock l2, gv$ session s2, s3 in v$ sql
where s1.sid = l1.sid
and s2.sid = l2.sid
and l1.block = 1
and l2.request > 0
and l1.id1 = l2.id1
and l2.id2 = l2.id2
and s2.sql_id = s3.sql_id;
INST_ID SELECT SQL_ID SID, SERIAL #.
---------- ---------- ---------- -------------
1-148-88
But s1.sql_id is null. where do I get it?
Thank you
It occurred in the past. You can't find it in the past.
If you enable this, you might find the SQL code in the future.
Hemant K Collette
-
How to print the transaction validation sql?
All,
With the help of Studio Edition Version 11.1.1.3.0.
I got a violation of primary key constraint that I can't quite understand. I can insert fine lines and everything looks very much like the page refreshes, but when I sign, I get the error. I would like to know what is committed to the database. I understand the problems normal display when your association is not composite: http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcadveo.htm#CEGJAFCF, but in my case, this one is.
How to print the SQL that is generated when getDBtransaction.commit () is called?
That should tell me why I get a command validation error (if that is what it is).
Thank you
Will beAdd - Djbo.debugoutput = console for the properties of the project
-
How to convert the number to SQL?
How can I convert the number in SQL?
The problem is that I use .NET and the Oraclenumber seems to be too big.
Number of database - what I get when I select
-----------'12'--------------------------------------'12'
-12, 1-12, 10' <-this 0 should not be there
-----------'12,12'-----------------------------------'12,12'
-12, 123'---12, 1230' <-this 0 should not be there
-----------'12,1234'-------------------------------- '12,1234'
I don't know why this happens?
Now, I tried to select with to_char (COLUMN1), but when I have values like "' 0,15 ' in the base, I get in select ', 15' when I convert with to_char?"
Anyone know a solution?
Kind regards
Simon
Edited by: user3654758 the 30.09.2010 02:02with mytable as
(select 12 n of all the double union)
Select 12.1 in union double all the
Select 12.12 in union double all the
Select 12.123 in all the double union
Select double 12.1234)
Select case when trunc (n) = n then
TO_CHAR (n, 'FM9999999999999999999')
on the other
TO_CHAR (n, 'FM9999999999999999999D9999999')
end
FROM MyTable;Edited by: hartmutm the 30.09.2010 02:21
I changed it a bit, because you have a problem with the separator decimal escape in the previous code.
-
How to specify the instance in SQL * more command line?
Hello
I'm learning to Oracle. I currently have 2 instances of database running. I wanted to connect to one of the bodies and used the following command from the command line:
When I run the command above, SQL * more ask me the password. I do not understand why he asks me the password because I provided on the command line.sqlplus system as sysdba/abc123@ocp11gsid where 1234 is the password for the system user in the ocp11gsys instance.
What is the correct command line, so he asks me the password? (without defining the variable ORACLE_SID of environment - basically, I want to know how to specify the user, his password and sid, all in the sqlplus command line, without being prompted to enter the password that I mentioned.)
Thank you for your help,
John.John,
This is how it works.
E:\Documents and Settings\aristadba>sqlplus system/oracle as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Mon Aug 2 22:49:25 2010 Copyright (c) 1982, 2010, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL>
And now it ask the password,
E:\Documents and Settings\aristadba>sqlplus system as sysdba/oracle SQL*Plus: Release 11.2.0.1.0 Production on Mon Aug 2 22:50:42 2010 Copyright (c) 1982, 2010, Oracle. All rights reserved. Enter password: Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL>
Spot the difference?
The user name and password must unite. What you are to provide the password with the role where it will not be considered.
Update
I missed that part,What is the correct command line, so he asks me the password? (without defining the variable ORACLE_SID of environment - basically, I want to know how to specify the user, his password and sid, all in the sqlplus command line, without being prompted to enter the password that I mentioned.)
The only thing that you can specify is the user name and password. The SID must be defined by you, either explicitly using the export or oraenv command if you are on the local system and do not use the TNS to connect to the instance. If you use the TNS, then an appropriate entry should be there which would connect to the required database.
HTH
Aman...Published by: Aman... on August 2, 2010 22:54
-
How to make the output of Sql Plus with an error Code
Dear members,
How can I define sql more exit with an error code.
We have a simultaneous host program. The executable is a shell script for this program. This sql script Shell script request which in turn gives call to a custom database package that I built.
The flow rate is:
-> SQL-> CUSTOM PACKAGE SCRIPT SHELL SCRIPT
Custom package has two PARAMETERS of the error indicator and the error message. If something fails in the package these two PARAMETERS is returned with a value.
So my sql script code looks like this:
WHENEVER SQLERROR EXIT 251
WHEN the OSERROR EXIT 251
Set serveroutput size 1000000
set linesize 32767
set verify off
set the position
Set feedback off
DECLARE
x_error_message VARCHAR2 (1000);
x_sql_message VARCHAR2 (1000);
x_exception EXCEPTION;
e_value NUMBER;
BEGIN
dbms_output.put_line ('Inside sql file');
XXpackage.xxproc (x_error_message, x_sql_message);
IF (x_error_message IS NOT NULL) AND (x_sql_message IS NOT NULL) THEN
RAISE x_exception;
END IF;
EXCEPTION
WHEN X_EXCEPTION THEN
e_value: = 1;
DBMS_OUTPUT. Put_line (' Exit Code: ' | e_value);
DBMS_OUTPUT. Put_line ('X_EXCEPTION: EXCEPTION IN SCRIPT xpoext04a.sql :'||) SQLERRM);
DBMS_OUTPUT. Put_line ('x_error_message is: ' | x_error_message);
DBMS_OUTPUT. Put_line ('x_sql_message is: ' | x_sql_message);
DBMS_OUTPUT. PUT_LINE (' ERROR IS: ' |) SQLERRM);
WHILE OTHERS THEN
e_value: = 252;
DBMS_OUTPUT. Put_line (' Exit Code: ' | e_value);
DBMS_OUTPUT. Put_line (' OTHER: EXCEPTION IN SCRIPT xpoext04a.sql :'||) SQLERRM);
DBMS_OUTPUT. Put_line ('x_error_message is: ' | x_error_message);
DBMS_OUTPUT. Put_line ('x_sql_message is: ' | x_sql_message);
DBMS_OUTPUT. PUT_LINE (' ERROR IS: ' |) SQLERRM);
END;
*/*
output
*/*
As you can see from above, if the two PARAMETERS have value, then it goes to an exception.
My problem is that if it goes with the exception of X_EXCEPTION, the sql is not come away with a mistake. I mean sql is not treat this case like a sqlerror.
How can do us more sql dating a sqlerror so that the host program must fail.
Thank you
Sandeep
Published by: user340 on July 28, 2009 12:51
Published by: user340 on July 28, 2009 12:57the plu sql is not come away with a mistake. I mean sql is not treat this case like a sqlerror.
This is because there is no error. You handled the exception.
You can try adding a STIMULUS; at the end of your exception section. This re-triggers the exception so sql liked to see it.
-
How to get the create view sql statement
I have a technical problem
There is a view in the database, for example "topstudentsview" and sql statement is ' select * student where scores > 90;
My question is how to get the sql statement of the view. I want to get the sql statement in the topstudentsview
Is the equivalent in MS Sql
sp_helptext 'topstudentsview '.
How in Oracle?
Thank youuser10182401 wrote:
My question is how to get the sql statement of the view.Simple answer: use a tool. Almost every development tool will give you an option for this requirement.
In Oracle SQL Developer (free), it's as simple as:
Connect to the database with the user and click on "views".
Select the appropriate view, and then click the SQL tab.
Maybe you are looking for
-
My wife and I have just updated our iPhones (his is a 6s, mine is a 6 s +) to IOS 9.3.2 Mine works fine, but hers doesn't have a speaker sound. Works great with wired headphones or bluetooth headset connected, but no noise regular of the enclosure. T
-
Angel losenord for servers 'time Capsule '.
JAG city ansluta en MacBook Air up to Time Capsule (fjärde generation) och skulle min "Ange losenord for servers 'Time Capsule' sa att den blir tillganglig for Time Machine. Men losenordet jag angav som jag har stallt for Time Capsule fungera inte mi
-
Im trying to uninstall Microsoft Office Click-to-Run 2010 (beta), it will not uninstall in my computer.
-
HP Deskjet 1512: configuration
Oh no! I just bought the HP Deskjet 1512 and he says I have to install the printing software to set up the printer. It's on a drive and my laptop is not a hard drive. Did I download the credentials of printer so I can get this part of the printer sta
-
Laer jet pritner p4015n support windows Server 2008
Laer p4015n pritner jet does support the operating system windows Server 2008 32-bit & 64-bit?