How to generate a value of variable "fast"? Only possible with dbms_outpu
Suppose I have defined a variable in a script from SQLplus and want it output in a quick statement.How can I do?
The following does NOT work:
accept myvar prompt "enter value ="
prompt & myvar
Here, I am invited again a second time.
What can I do else?
Is dbms_output.put_line (...) the only way?
Peter
SQL> accept myvar prompt 'Enter value='
Enter value=222
SQL> prompt you entered &myvar
you entered 222
Max
http://oracleitalia.WordPress.com
Tags: Database
Similar Questions
-
How to store the values of variable level OBIEE presentation in DB
Hi all!
We have a command prompt of dashboard which is set up to store values in variables of presentation (period start and period end dates). Is there a way to store values selected from a database? for further processing?
that is, I need to pass the variable level (report parameters) presentation to complex calculations to a PL/SQL function.
Also my requirement might be solved if I can get access to the selected values of logical column in the tab 'Business Model and mapping' definition in the BI administrator.
that is, I'll be able to define the logical column using VALUEOF (NQ_SESSION. < nom_var >)
Kind regards
Mr.MaverickHello.
1 do SQL PL/function (in the database) which has an input parameters, which number depends on number of guests and in it you'll insert these parameters into a table.
2. your report in column expression answers call this function that will do insert, the code would be like:
EVALUATE ("YOUR_FUNCTION (1%, 2%, 3%, 4%) (' as varchar (20), @{p_1}, @{p_2}, @{p_3}, @{p_4})3. Note that the function returns something and be careful on data types inside EVALUATE it.
4. notes that, in the case where some messages are not selected (all or nothing) you recognize this case as:
-case when LENGTH('@{pv_var}') > 0 then ' @{pv_var}' end else' all '.
or like this:
-case when LENGTH('@{pv_var}') is null then 'all choice"other" @{pv_var}' end; "
Kind regards
Goran
http://108obiee.blogspot.com -
How to generate a single Point (On-Demand) edge counting with relaxing break
I have problem when creating a Labview program to generate a single Point (On-Demand) edge counting with relaxing break illustrated in FIGURE 1 below. I only know how to build counter edge without relaxing break and my program is illustrated in FIG. 2 and gaskets also. Should what changes I make on my program? The DAQ card that I use is 6259 PCI/USB.
FIG1. Single edge counting with break Point (on request)
Fig.2 my program to generate the edge without relaxing break
It is resolved
-
How to generate a dynamic of variable
Hellomy version of oracle's
Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
PL/SQL Release 11.2.0.3.0 - Production
"CORE 11.2.0.3.0 Production."
AMT for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
I use following code to create a file.
Declare
Type Typ_Test_Data is Table of TEST % Rowtype;
Test_Data Typ_Test_Data;
v_delimited varchar2 (1): =' | ' ;
L_Cur Sys_Refcursor;
L_Filehandle Utl_File.File_Type;
V_File_Path Varchar2 (1000): = 'abc ';
V_Table_Name Varchar2 (32): = 'TEST ';
P_Stg_Table_Owner varchar2 (32): = 'abc ';
v_partition_name varchar2 (32): = "P201308";
V_Str Varchar2 (20000);
V_Column_Names_Str Varchar2 (20000);
V_Column_Names_Str2 Varchar2 (32000);
V_Str1 Varchar2 (20000);
Startl_fileHandle: = Utl_File.Fopen (v_file_path, '05022015.txt', 'W');
IF UTL_FILE.IS_OPEN (l_fileHandle) = FALSE
THEN
Dbms_Output.put_line ('file is not open');
On the other
dbms_output.put_line ('File_is_open');
End If;
"/ * V_Str: = ' select * from '.
|| V_Table_Name
||' Partition (')
|| V_Partition_Name
||')'; */
"V_Str: = ' select * from '.
|| V_Table_Name;
Dbms_Output.put_line (v_column_names_str2);L_Cur open for V_Str;
loop
Extraction L_Cur bulk collect into test_data limit 1000;
Because me in 1.test_data. County
Loop
V_Str1: is Test_Data (I). Emp_Id | V_Delimited | Test_Data (I). Emp_name | V_Delimited | Test_Data (I). Address;
Dbms_Output.put_line (V_Str1);
-Utl_File.Put_Line (l_fileHandle, Test_Data (I). Emp_Id | V_Delimited | Test_Data (I). Emp_name | V_Delimited | Test_Data (I). Address);
Utl_File.put_line (l_fileHandle, V_Str1);
End loop;
When the test_data output. Count = 0;
End loop;
Close L_Cur;
Utl_File.Fclose_All ();end;
/This generates files. but I want below the dynamic type declaration. so that the same code can work for different tables. We do this for data archiving,
Type Typ_Test_Data is Table of TEST % Rowtype;
IS this possible? Yes, how?
Hello
You can find an example here
Re: export csv via pl/sql: select statement?
Concerning
Marcus
-
How to send different value of variable presentation in URL GO?
Hello
I use GO URL to send presentation Variable (d_pv) to filter the other report on column 'day '...
"(a href = http://server/analytics/saw.dll?GO & path=/shared/BI%20Reports/Ki1/KPIs%20Detail%20Priority%203%20Shipped & Action = Navigate & p0 = 1 & p2 & p1 = eq ="Time". Day & p3=@{d_pv}) SHIPPED (/a)'
It works very well. But my goal is to filter the report by using the eve of the value of d_pv (for example. If the value of d_pv is ' 2010-04-27', I need to filter the others using report "(2010-04-26')"
I couldn't find to spend one day back value of presentation using variables go url.
Help, please...
Published by: bob123 on April 28, 2010 10:15I would say use TIMESTAMPADD(SQL_TSI_DAY,...,1) and use spend your variable in this column.
When you spend the day report 28/04/2010 + 1 column target, it will display the 27/04/2010 data.
-
How to generate a value of 0 if the table does not value contain?
Hello
I have a nice select gives me these results:
f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:01 36.6 01/2008
f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:02 63.4 02/2008
f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:03 73.2 03/2008
f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:04 78.6 04/2008
f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:05 98.8 05/2008
f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:06 2008-06-30.4
f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:07 23.8 07/2008
f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:08 70.8 08/2008
f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:09 14 2008-09
f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:10 60.4 10/2008
f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:11 46 11/2008
You see, the month 12 is missing, because no data exists in the table. OK, that's normal.
But I want to display the result 0 even if nothing in the table for the month 12. The result would be:
f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:01 36.6 01/2008
etc...
f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:11 46 11/2008
f? p =: 2::GET_DETAIL_REPORT:NO:P2_VALUE:12 0 2008-11
I know that I have to generate a list of values for each month and join them.
Could you please help me this?select add_months(to_date('01'||:P2_DATE_DEBUT, 'mm/yyyy'), level-1) dt from dual connect by level <= 12
It's nice select I already have.
Kind regardsSELECT 'f?p=&APP_ID.:2:&SESSION.:GET_DETAIL_REPORT:NO::P2_VALUE:' || TO_CHAR(TRUNC(date1, 'MM'), 'MM') LINK, To_CHAR(TRUNC(DATE1, 'MM'), 'MM/YYYY') valeur, sum(valeur) "Cumul" FROM PL_MF_JOUR WHERE cle = :P2_DEPT AND DATE1 BETWEEN to_date('01/01' || :P2_DATE_DEBUT || ' 00:00:00', 'DD/MM/YYYY HH24:MI:SS') AND to_date('01/01' || :P2_DATE_DEBUT || ' 23:59:59', 'DD/MM/YYYY HH24:MI:SS') +364 GROUP BY TRUNC(DATE1, 'MM') ORDER BY TRUNC(DATE1, 'MM')
Christian
PS: your help is very appreciated every time, thank you.You need to generate your calendar of 12 months and then left outer join with it.
Something like:
WITH dts as (select to_date('01/'to_char(rownum,'fm99')||'/'||:P2_DATE_DEBUT,'DD/MM/YYYY') as dt from dual connect by rownum <= 12) SELECT 'f?p=&APP_ID.:2:&SESSION.:GET_DETAIL_REPORT:NO::P2_VALUE:' || TO_CHAR(dt, 'MM') LINK, TO_CHAR(dt, 'MM/YYYY') valeur, sum(valeur) "Cumul" FROM dts LEFT OUTER JOIN PL_MF_JOUR ON (dt = TRUNC(DATE1,'MM') AND cle = :P2_DEPT AND DATE1 BETWEEN to_date('01/01' || :P2_DATE_DEBUT || ' 00:00:00', 'DD/MM/YYYY HH24:MI:SS') AND to_date('01/01' || :P2_DATE_DEBUT || ' 23:59:59', 'DD/MM/YYYY HH24:MI:SS')+364 ) GROUP BY dt ORDER BY dt
NB. Untested (obviously)
-
How to connect to _old_ Sync one and only device with the new operating system
Howdy,
I own a "device" (laptop) and have used Sync to store my bookmarks and passwords online as a way of not having to worry about backups for these courses of frequent relocations due to the OS-experiences etc.
Yesterday, my HARD drive crashed hard, so I set up another and a new OS installed (Qubes R2).
Now costs 32 FireFox that accompanies the installation won't let me not reconnect to my old data synchronization.
No other devices available (or systems USB - life) with recently synchronized data locally.
It seems to me strange _VERY_ that due to certain policies to force people to start using an account of FireFox, I must now be deprived of my current Favorites and passwords, even if I _DO_ toxic Apple bite and create an account.
WTF is the logic here?
See you soon,.
PudsyThe 'logic' is that Sync has always intended to be used to synchronize several installations of Firefox, never to be used as a 'backup service' as you did. Plus the fact that the transition to the new version of sync with Firefox accounts, started 5 months ago (for users of the Release - version and about a year for pre-release nightly testers).
You can try to install a version of Firefox 28 [or an earlier version] of Firefox and see if you can connect to synchronize to recover your data.
I do you, you can upgrade to Firefox 32 and then update your sync account.
Synchronize your bookmarks Firefox, history, passwords, etc. -
Hi all
If I run this query using a tool like developer PL/SQL (SQL window), the values are displayed as a Collection. Just click and see the results of the al.
Select
dbms_resconfig.getRepositoryResConfigPaths)
Of
Double;
I want to know how to display these values using any tool of sqlplus (with dbms_output or something like that).
How can I do? With the help of the table? Create a type?
TKSuser12083350 wrote:
I want to know how to display these values using any tool of sqlplus (with dbms_output or something like that).
SQL> select * from table(dbms_resconfig.getRepositoryResConfigPaths()) 2 / COLUMN_VALUE -------------------------------------------------------------------------------- /sys/xs/userrc.xml /sys/xs/rolesetrc.xml /sys/xs/drolerc.xml /sys/xs/rolerc.xml /sys/xs/frolerc.xml /sys/xs/xdserc.xml /sys/xs/scrc.xml 7 rows selected. SQL>
And in PL/SQL:
SQL> declare 2 v_list xdb$string_list_t := dbms_resconfig.getRepositoryResConfigPaths(); 3 begin 4 for i in 1..v_list.count loop 5 dbms_output.put_line(v_list(i)); 6 end loop; 7 end; 8 / /sys/xs/userrc.xml /sys/xs/rolesetrc.xml /sys/xs/drolerc.xml /sys/xs/rolerc.xml /sys/xs/frolerc.xml /sys/xs/xdserc.xml /sys/xs/scrc.xml PL/SQL procedure successfully completed. SQL>
SY.
Published by: Solomon Yakobson, April 24, 2010 15:04
-
How to set multiple values clustered with local variable?
Hi all
Okay, I made my way through Labview for everyone and have some basic concepts down. I can see with a cluster, if acting directly on it, you can ungroup, change values, rebundle, etc..
I try something a little more complex... and just do not know how to start on this.
I have a menu menu ring set. I created this with a typedef, with 4 values. I used this typedef 7 times, more a few LED bool, in a cluster. I made this cluster a typedef.
Therefore, in my main vi, I started designing, I put an example posted here... and inside, I have two instantiations of the typedef cluster commands selection of left and right.
I dropped in this vi, a copy of the menu ring typedef (same typedef as in clusters, values) called reset all tubes.
Now, I am trying to understand how, with an event to change the value to 'reset all the tubes'... that I can start with the left switch and change all tubes (here is the menu ring selector) to the same value as what has been selected with the ring of menu 'Reset all the tubes'.
I created a local variable for the selector on the left. It is configured to read values. (I'll be doing the same thing with the right too, but just to start with the left).
In the examples I've seen where access to a cluster, you could ungroup the cluster... browse and change the values... maybe pull out all the "hits" in a table and go through to update the values. And when you group or ungroup the bunch... you can see the values, etc., when you stretch on the block diagram.
With the local variable... I do not see to 'stretch' it as I expected... so I can access the values "tubes"... and all at the value of the 'reset all the tubes' ring menu value.
Someone can put me on the path on the best way to do... or is it a component structure I'm missing here? Am that I on the right track everything first here?
It seems pretty basic to me, but miss me just something here on the way to start...
Thank you in advance,
Cayenne
You can't do this with a for loop of how the Department is structured, but why make it so complicated? Just group the new value in the cluster, as shown below:
If you do not want to use a loop for example, consider the restructuring of your cluster. Group ring and a Boolean value in a cluster, and then unmold 7 of those in the cluster of selector. Then you can use 'cluster to the table' and 'picture of cluster' for all elements of the external cluster will be of the same type.
Also, be careful when using rings in the form of type definitions. You probably want to use an enumeration instead. The elements of a ring do not update the when you update the type definition because they are considered to be cosmetics. the elements of a definition of enumeration type update, because the elements of an enumeration are considered as part of the data type.
-
How to display the value of the variable for bottom of pl/sql
How to display the value of the variable for bottom of pl/sql
declare
V_1 number: = 10;
V_2 number: = 20;
V_3 number: = 30;
v_4 number: = 40;
v_5 number: = 50;
test varchar2 (100);
Start
I'm in 1.5
loop
test: = "v_" | I have;
dbms_output.put_line(i||) e > ' | test);
end loop;
end;
/
How to get below output:
1 > v_1
2 > v_2
3 > v_3
4 > v_4
5 > v_5
But I want to output of
1 > 10
2 > 20
3 > 30
4 > 40
5 > 50
Hello
You cannot reference variables as you did and get the value of the variable. Use pretty collection.
set serveroutput on size 2000 declare type number_table is table of number; numbers number_table := number_table(10, 20, 30, 40, 50); begin for i in numbers.first .. numbers.last loop dbms_output.put_line(i || '->' || numbers(i)); end loop; end; / anonymous block completed 1->10 2->20 3->30 4->40 5->50
See the Collections of PL/SQL and Records http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/composites.htm#LNPLS005
-
Hello community, I have a problem when creating a function. The purpose of this function is to check the table of weather gave yesterday or not. We must check this on different tables on different sachems. We are creating a function with input variables.
CREATE OR REPLACE FUNCTION IN_SCHEMA.IS_YDAYDATA_TO_TABLE
(
in_schema IN VARCHAR2,
in_tablename IN VARCHAR2,
in_datefield IN VARCHAR2,
)
RETURNS INTEGER
AS
-Declaring variables
v_is_true INTEGER.
BEGIN
SELECT
CASE
WHEN MAX (in_datefield) = TRUNC(SYSDATE-1)
THEN 1
ON THE OTHER
0
END
IN
v_is_true
Of
in_schema.in_tablename
;
RETURN v_is_true;
END;
/
When creating, I got error: [error] ORA-00942 (44:19): PL/SQL: ORA-00942: table or view does not exist
How to use the values of the input variables on the table select statement names?
Hello
Here's a way you can use dynamic SQL statements for this task:
CREATE OR REPLACE FUNCTION IS_YDAYDATA_TO_TABLE
(
in_schema IN VARCHAR2,
in_tablename IN VARCHAR2,
in_datefield IN VARCHAR2,
in_first_date DATE DEFAULT SYSDATE - 1,.
in_last_date DATE by DEFAULT NULL
)
RETURNS INTEGER
AS
-IS_YDAYDATA_TO_TABLE returns 1 if in_schema.in_tablename.in_datefield
-contains all the dates in the in_first_date of the range through included in_last_date
- and it returns 0 if there is no such lines.
-If in_last_date is omitted, the search only the data on in_first_date.
-If in_first_date is omitted, it defaults to yesterday.
-Time parts of the in_first_date and in_last_date are ignored.
-Declaring variables
sql_txt VARCHAR2 (1000);
v_is_true INTEGER.
BEGIN
sql_txt: = 'SELECT COUNT (*).
|| 'FROM ' | in_schema | '.' || in_tablename
|| 'WHERE ' | in_datefield | ' > =: d1'
|| «AND» | in_datefield | '< > >
|| 'AND ROWNUM = 1';
dbms_output.put_line (sql_txt |) '= sql_txt in IS_YDAYDATA_TO_TABLE"); -For debugging
Sql_txt EXECUTE IMMEDIATE
IN v_is_true
With the HELP of TRUNC (in_first_date) - d1
TRUNC (NVL (in_last_date
in_first_date
)
) + 1 -- d2
;
RETURN v_is_true;
END is_ydaydata_to_table;
/
DISPLAY ERRORS
If you must use dynamic SQL statements, put all the SQL statement in a single string variable, such as sql_txt in the example above. In this way, you can easily see exactly what will be executed. Comment out the call to dbms_output under test is completed.
Try to write functions that will address not only the question that you have now, but similar questions that you may have in the future. For example, now that interest you only to the verification of the data of yesterday, but later, you might want to check another day or range of days. The above function combines the convenience of a function simple (looks like yesterday data if you don't tell him otherwise) with the power of a more complex function (you can use the same function to check any day or range of days).
-
How to pass the value to the java binding to my thru ViewObject variable?
Hello
I have a class Impl, that can access my viewObject.
My View object - request
Select * from Customer_contact where OrderId =: p_OrderId;
Here is my link p_OrderId variable.
Now,.
I have a method that is exposed as a Web service, from which Impl. The functionality of this method is that it will take a "var_OrderId" (integer) as a parameter.
He must retrieve the lines of a view object, which has a query as above. Now my doubt is, how to assign this value "var_OrderId" to the link variable 'p_OrderId '.
Kindly give me the java code that I should use to retrieve the columns of my viewObject, regarding the binding variable.
Thank you
Sabarisri. N//from VORowImpl getViewObject().setNamedWhereClauseParam("p_OrderId", var_OrderId); getViewObject().executeQuery(); //form maanged bean DCIteratorBinding dciter; BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry(); dciter = (DCIteratorBinding) bindings.get("EmpView1Iterator"); dciter.getViewObject().setNamedWhereClauseParam("p_OrderId", var_OrderId); dciter.getViewObject().executeQuery();
Published by: vinod_t_krishnan on 7 Sep 2011 12:33
-
How to generate URLS with several variables of input fields?
I create an ad with four text fields labels fname, lname, city and province, and I wanted to know how to generate URLS based on the information entered in the fields. The text of the default fields to display "Name," "Last Name", "City" and "State", respectively, but if a user does not enter information in these fields, I want the URL to behave as if those who were empty, if that makes sense. Text fields are in a clip called 'input_text' and the button is titled 'send '. If any of you can provide insight, I would greatly appreciate. Thank you.
1 use the instructions to see if if the properties your textfields text meets your requirements for the creation of this url.
2. you can use the properties and methods string flash to create your url.
p.s. the + sign can be used to concatenate strings.
-
How to pass the value of the variable record type in the procedure
Hai All
My Question is
I have a table named Emp and the structure
ID Varchar2 (25)
Name varchar2 (25)
Number of salary
And now, I created a folder named Rec_Emp
Like this
Type Rec_emp is made
(Rec_Id varchar2 (25),)
rec_name varchar2 (25).
Number of Rec_salary);
rec_emp emp_record;
I created a SQL type
Now how to pass the value type in the procedure
Thanks and greetings
SrikkanthMYou are looking for something like this
create table my_emp (id integer, name varchar2(100), sal number) / create type my_emp_obj as object(id integer, name varchar2(100), sal number) / create or replace procedure insert_into_my_emp(pEmp_Obj in my_emp_obj) as begin insert into my_emp (id, name, sal) values(pEmp_obj.id, pEmp_Obj.name, pEmp_obj.sal); end; / begin insert_into_my_emp(my_emp_obj(1,'karthick',1000)); end; / select * from my_emp /
-
How to generate values null?
Hello
I have a nice select which produces this output:
Sum of the value
42 02/1997
35.6 06/1997
17.6 07/1997
97,2 08/1997
42 10/1997
71.8 11/1997
90.6 12/1997
I want to see zero if for the month, that data is not provided, this would gives this result:
Sum of the value
0 01/1997
42 02/1997
0 03/1997
0 04/1997
0 05/1997
35.6 06/1997
17.6 07/1997
97,2 08/1997
0 09/1997
42 10/1997
71.8 11/1997
90.6 12/1997
He comes to select nice I use:
SELECT TO_CHAR (titi, "MM/YYYY") value.
Toto "stacking".
DE)
with precipitation as
(
Select date1 rainfalldate, value
of evv_stpl
where clef_var = 4542
and between date1
TO_DATE ("0101" |) ""1997"|" 000000', 'DDMMYYYYHH24MISS') and to_date ("0101" |) ""1997"|" 235959', 'DDMMYYYYHH24MISS') 365
order of date1
)
Select trunc (rainfalldate, 'MM') titi, toto (toto) sum of
(select rainfalldate, value, lead (value) over (partition by order of trunc (rainfalldate) of rainfalldate),
(Value) lead over (partition by order of trunc (rainfalldate) of rainfalldate) - value toto
precipitation
)
where toto > = 0
Trunc Group (rainfalldate, 'MM')
order by trunc (rainfalldate, 'MM')
)
Data:
Insert into 'evv_stpl' ('Clef_var', 'Date1', 'Value') values (4542,' 02/1997 ', 42);
Insert into 'evv_stpl' ('Clef_var', 'Date', value) values (4542,' 06/1997 ', 35, 6);
Insert into 'evv_stpl' ('Clef_var', 'Date', value) values (4542,' 07/1997 ', 17, 6);
Insert into 'evv_stpl' ('Clef_var', 'Date', value) values (4542,' 08/1997 ', 97, 2);
Insert into 'evv_stpl' ('Clef_var', 'Date', value) values (4542, 10/1997 ', 42);
Insert into 'evv_stpl' ('Clef_var', 'Date', value) values (4542, 11/1997 ', 71, 8);
Insert into 'evv_stpl' ('Clef_var', 'Date', value) values (4542, 12/1997 ' 90, 6);
Insert into 'evv_stpl' ('Clef_var', 'Date', value) values (4542,' 01/1998 ', 1, 8);
Could you help me? I know that I have to generate a list of months and a value of zero and to join these two tables. Despite my best efforts, I could not arrive at a result. Thank you very much for your help!
Christianfor some reason, you missed the join external on your last question, when he was on your old one (the {noformat} (+) {noformat}). If you want your activation date shaped in a particular way, you need the to_char on the external final selection. Always leave the stuff of formatting until as late as possible, in this way, you have lots of information in your calculations, etc.
This should be what you are looking for:
WITH RAINFALL AS (SELECT DATE1 RAINFALLDATE, VALEUR VALUE FROM EVV_STPL WHERE CLEF_VAR = 4542 AND DATE1 BETWEEN TO_DATE('0101'||'1997'||'000000', 'DDMMYYYYHH24MISS') AND TO_DATE('0101'||'1997'||'235959', 'DDMMYYYYHH24MISS') +365 ORDER BY DATE1), MONTHS AS (SELECT ADD_MONTHS(TO_DATE('01/1997', 'mm/yyyy'), LEVEL-1) DT FROM DUAL CONNECT BY LEVEL <= 12), MY_TAB AS (SELECT TRUNC(RAINFALLDATE, 'MM') VALUE, SUM(TOTO) CUMUL FROM (SELECT RAINFALLDATE, VALUE, LEAD(VALUE) OVER (PARTITION BY TRUNC(RAINFALLDATE) ORDER BY RAINFALLDATE) - VALUE TOTO FROM RAINFALL) WHERE TOTO >= 0 GROUP BY TRUNC(RAINFALLDATE, 'MM')) SELECT TO_CHAR(MONTHS.DT, 'MM/YYYY') VALUE, NVL(MT.CUMUL, 0) CUMUL FROM MY_TAB MT, MONTHS WHERE MONTHS.DT = MT.VALUE (+) ORDER BY MONTHS.DT;
Published by: Boneist on June 26, 2009 09:41
Oops; I forgot to add the to_char in!
Maybe you are looking for
-
On the configuration of local network for M40 series
Dear Toshiba I downloaded the driver of LAN of your site and installed. I always have a problem with my network integrated port to work with my local network, despite I can use the DSL cable with the same port and internet access. the integrated netw
-
What is a very good pc image cleaner online free
I need a free on line P C cleaner which will scan my computer at home a pure TI also which will set my P C errors image
-
Snap Shot recording is not with WVC54CGA of IE8
I use WVC54CGA. I can view images from the camera with IE8. When I click on the snap shot button it goes through the movement to save the image, but it does not record. I choose the top folder or desktop, but after clicking on save button there is n
-
Display.screenshot (bitmap) returns white screen
Hi all I develop an application that uses the camera (VideoControl and player). Here I am pasting my code String encoding = "encoding = video/3gpp & mode = standard;_player = Manager.createPlayer ("capture://video?" + coding);_player. Realize(); _vid
-
Where can I download Photoshop 11
Where can I download Photoshop 11?