OK thanks every body
I think
select round(dbms_random.value(0,1),2) from dual
is interesting
I wanted to have 1 among the infinited solution
of radom generated vaue between 0 and 1
Hi all,
How can I get radom value
from dbms_random where I can get the upper limit
say I have 0 to 1 as possible values
0,
....
0.00000000000001
.....
0.00000000000002
...
0.99999999999999
...
1
how can I obtain values from 0 to 1 randomly ?
0 <= values <=1
Thnks a lot
I fond a workaroun in SQL and which doesn't use dynamic SQl
update table_A f set debt_ccy =(select ccy_code from table_b s
where s.ticker=f.ticker
and debt_ccy is null)
where debt_ccy is null
and...
when I try this I got en error
1 declare
2 hold_sql varchar2(2000);
3 begin
4 select 'update table_A set CCy_CODE = '''||ccy_code||''' where debt_ccy is null
5 and ticker='''||ticker||''' from
6 table_A f,table_b s
7 where
8 f.ticker=s.ticker
9 and...
Hi every body,
I want to change this sql code
select 'update TABLE_A
set DEBT_CCy='''||ccy_code||'''
where debt_ccy is null
and ticker='''||f.ticker||''';'
from
TABLE_A f,TABLE_B s
where
f.ticker=s.ticker
and debt_ccy is null;
into pl/sql execute immediate
how can I do ?
Thanks
I found an old syntax
that works
but I want now to have the ANSI one ;-)
select d.procedure_name,d.table_name,b.rows_inserted,decode (b.status,null,'MUST BE CHECKED',b.status) status
from UTIL_BATCH_DESC D , UTIL_STATUS_BATCH B
where d.procedure_name =b.PROCEDURE_NAME(+)
and...
HI all
I have 2 tables
one which contents all the jobs to be done every night
and a second which contains the jobs which have really been executed.
CREATE TABLE UTIL_STATUS_BATCH
(
PROCEDURE_NAME VARCHAR2(1024 BYTE) NULL,
INFO_DATE DATE...
Hi all,
I am under Oacle 10G R1
I can use PL/sql sql
How can I compare 2 consecutive rows in a table
and show the result, I want to check the value > 0
this is the list
A1 110
A2 112
A3 112.3
A4 112.4
A5 112.5
A11 113
A12 113.2
A21 114
A23 106
A31 118
A33 120
A34 122
A35 123
A36 124
A37...
Hi Mufasa,
Thanks very much, your response is really what I needed
In fact with Oracle, there are a lot of tools now, external table, pipelined, clob ...
and in 11g we have pivot
And last, your responses were done very quicky
Hi,
Thanks very much for this reply
but I have 2 problemS
the RAW datas are separated by "|" not by carriage return
so it in fact like this
15/09/2008 10:00:00:15/09/2008 10:01:00:15/09/2008 10:02:00:15/09/2008 10:03:00:15/09/2008 10:04:00|...
HI all,
Do your data come always in 6-minute time intervals? Or are the intervals variable in number?
The interval is minute , it is in 6 minutes here as an example, in reality it is from a day work like 8:00:00 to 19:00:00, and we try to get minutelly datas.
Are you allowed to create...
Hi all,
I have datas like this , they come from a 3 party tool
not from an oracle table
15/09/2008 10:00:00:15/09/2008 10:01:00:15/09/2008 10:02:00:15/09/2008 10:03:00:15/09/2008 10:04:00:15/09/2008 10:05:00
44.22:44.2:44.165:44.175:44.17:44.2
44.24:44.21:44.2:44.19:44.235:44.21...
hi all,
I want to send mail with demomail from orale SAMPLE
http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/mailexample_sql.txt
I want to send an html file in the body
like this
DECLARE
conn utl_smtp.connection;
vInHandle utl_file.file_type;
vNewLine VARCHAR2(25000)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.