What Is Analyst Function in Oracle 9i
Dear Experts
Please tell me What Is Analyst Function in Oracle 9i
The documentation on analytic functions is pretty good.
Justin
Similar Messages
-
What are deterministic functions in oracle.??
Hi,
Can anyone give me any information regarding deterministic functions?
ThanksI am not sure I understand what you are saying here. If you declare a function to be deterministic, then yes, Oracle may cache the results of the call and reuse the cached result when it sees another call to the function with the same parameters.
However, given that value is different in your third rowm, it appears that you may have two different function calls here.
Another thing to note is that you can declare any function to be deterministic, and Oracle will believe you. It does not make any attempt to decide whether you are correct or not.
SQL> CREATE FUNCTION determ (p_num IN NUMBER) RETURN NUMBER
2 DETERMINISTIC AS
3 BEGIN
4 RETURN p_num * DBMS_RANDOM.VALUE();
5 END;
6 /
Function created.
SQL> CREATE FUNCTION nondeterm (p_num IN NUMBER) RETURN NUMBER AS
2 BEGIN
3 RETURN p_num * DBMS_RANDOM.VALUE();
4 END;
5 /
Function created.
SQL> SELECT num, determ(num)
2 FROM (SELECT rownum num FROM all_objects
3 WHERE rownum <= 5
4 UNION ALL
5 SELECT rownum num FROM all_objects
6 WHERE rownum <= 5);
NUM DETERM(NUM)
1 .808346096
2 1.24224706
3 2.55670491
4 .814681413
5 3.10128137
1 .117673406
2 1.24224706
3 2.55670491
4 .814681413
5 3.10128137
10 rows selected.
SQL> SELECT num, nondeterm(num)
2 FROM (SELECT rownum num FROM all_objects
3 WHERE rownum <= 5
4 UNION ALL
5 SELECT rownum num FROM all_objects
6 WHERE rownum <= 5);
NUM NONDETERM(NUM)
1 .536325578
2 1.6236528
3 .628491757
4 2.6261965
5 4.09006466
1 .419011544
2 1.01745468
3 2.76301772
4 2.32793484
5 3.72438691So, the deterministic version did cache the function result (I'm not sure why it did not cache 1), but the non-deterministic version was called once for each row.
John -
What is the function of _xdb and _xpt services in oracle 10g database.
what is the function of xdb and xpt services in oracle 10g database.?
Hi,
If you are troubleshooting check the below link too:
Issues installing. Listener not working
Best regards,
Rafi.
http://rafioracledba.blogspot.com/ -
Subpartition with MOD Function in Oracle 11g
Hi All,
Can we create Subpartition based on MOD Function in Oracle 11g ?Hi!
What are you refering with "MTS"? Anybody knows a term like this (except MultiThreaded Server). -
Function in oracle to find number of occurances of a character in a string
hi,
is there any function in oracle to find the number of ocurrances of a character in a string ?
or is there any simple way of doing the same, rather than writting many lines of code as my program is already very complex.
MariaHi Maria,
I don't know of such a function in Oracle, but maybe you could use this:
length(search_string) - length(replace(search_string, character_to_be_found))
For example: select length('Hello') - length ( replace('Hello', 'l')) from dual;
Hope this is what you're looking for
Danny -
Use T-SQL functions in ORACLE too, so you can write one script version that works in SYBASE, SQLSERVER and ORACLE when need to use the following functions:
ceiling, charindex, dateadd, datediff, datename, datepart, day, db_id, db_name, getdate, host_id, host_name, left, len, month, replicate, right, space, str, str_replace, stuff, substring, suser_id, suser_name, user_id, user_name and year.
The file [comp_tsql_ORA_schema.txt|http://forums.databasejournal.com/attachment.php?attachmentid=564&d=1258547015] creates the tablespace and schema to put the objects, and the file [comp_tsql_ORA.txt|http://forums.databasejournal.com/attachment.php?attachmentid=569&d=1259256898] creates the functions into the new schema. They will be avaliable for any schema of the oracle instance.
Hope this help!
Any suggestion please contact.
aklein2003
Edited by: user1958693 on 26/11/2009 10:16jgarry wrote:
J2EE beta released around 1999. Religious programming wars far preceded that. Here's but [one example|http://groups.google.com/group/comp.lang.lisp/browse_thread/thread/1c50bc13e9302f00/34bb8f3ac77e2388?q=programming+language+religion#34bb8f3ac77e2388] from a quick google. I'm no longer convinced that elegance is a desirable trait for a language. So call me a heretic.
Ever tried XLISP? :-)
It's different. Back then it was simply the language itself. And it was not really a religious kind of battle, but more a mine-is-bigger-and-better-than-yours one.
With Java, it is all about The Acrhitecture and the blessed language of Java. ;-)
I wouldn't so much blame J2EE believers for that. I think there is a fundamental complexity to web type paradigms that hasn't been described in a precise and encompassing enough manner to enable correct project planning.The basic problem is that the database is treated as a persistent storage layer only. A bit bucket. And that is exactly what a database is not.
But as it is used that, loads of database features now need to be duplicated in the application layer. Which is done. Very poorly.
Heck, I've even been told that J2EE's 3-tier architecture is not client server. Such ignorance is really unbelievable. Or is it pure stupidity?Until you just made me look it up, I would have thought that too, I'm sure I saw client/server defined as two-tier in the last century. But I have much more stupid misdefinitions to deal with on a daily basis, simply from the multiplicity of paradigms. I tend to retreat into my shell. Hehehe. Know that feeling... These days I rather run away, or set shields to full power, than try to get in yet another frustrating, fruitless and futile discussion with a Java head about the wonders of the J2EE architecture. Or trying to explain that this "new" architecture is predated with what we used in the 80's on mainframe systems with transaction monitors, block devices (the 80's web browsers) and databases - which software layer for software layer was almost identical to "+The Great Architecture+" of today. (and we did it without buzzwords too) ;-)
Client-server is a software architecture and in essence describes 3 basic software components. The User Interface (UI), the Application (APP) and the Database (DB). And there are various ways to put these components together in a client-server architecture. The mistake that the Java fanbois make is thinking that client-server means having the client as the UI and APP as a single component (so-called fat client) and then the DB component as the server.
There are numerous versions of these - including the APP component being a server component (as we now these days more commonly used in over the web).
My beef with the J2EE "+religion+" always has been that client-server is client-server. The fundamentals stay the same. -
How to create SSWA plsql function in Oracle Apps of HTML call .html
Hello Team,
I am working on Oracle Apps 11i (11.5.10.2)
I want to know , what is the process to create a , "SSWA plsql function" in Oracle Apps of type "HTML" and html call tab.
How to create that Function and how to attach the PL/SQL code to these functions.
How it works.
Please help me to understand this concept from basics.
Kind RegardsHi;
Please review:
how to setup a forms function in R12 to launch an URL?
http://www.trutek.com/serendipity/index.php?/archives/15-An-Example-of-How-to-Create-Custom-Functions,-Menus,-and-Responsibilities.html
Regard
Helios -
Need Assistance for VBA function in oracle how to implement
My very respected and Senior, regards,
Sir, hope you will in best of health and wealth by the grace of God,
Sir, i have a request problem as i m very junior against you and you have passed this time before many years ago as i m standing where. Sir i m a very junior developer of oracle and have a problem putting on your desk with the hope that you can help my as a boss.
Sir me have to calculate yield of Bond using oracle form
i have tried my best and tired
there is a formulae in excel which give the Yield() when we provide the parameters
and i need the excel formulae or the oracle calculation code of PLSQL for this.
How can i get yield when i have price, coupon rate, frequency, issue and maturity of the coupon , coupon period , next coming coupon , and others detail.
or tell me how to use EXCEL VBA for this problem ,
thnx n regards,
yours student, junior developer youngest brother
Faraz
How can I get the solution using Excel VBA function with oracle
so that move values to excel calculate them and copy the result from excel to oracle formsHi,
for the Hex-Number-conversion see:
[url http://psoug.org/snippet/Convert-Hex-to-Decimal-Decimal-to-Hex_78.htm] self-defined Conversion-Functions
What number format do you have? YYYMMDD
Or is there a Date corresponding to 1 and a number n represent the date n-1 days after day 1?
Please describe further.
Bye
stratmo -
Numeric functions in Oracle Text
Hi
Do we have numeric functions in Oracle Text, if not what we have to do for filtering/searching numeric fields
Thanx
Harithere are no numeric functions. You search numeric information by exact string match.
-
Conversion of Informix functions to Oracle
Hi,
Can anyone help me in the conversion of the following informix functions to Oracle
dtcvasc()
rftmtdate()
deccvasc()
rdefmtdate()
dttoasc()
rtoday()
These functions exists in ESQL/c(informix). Please help in converting the aboue functions to oracle .
regards,
gopuCan you explain what these functions do? There are probably Oracle analogs already.
Justin -
Find Menus & Function In oracle apps
Hello Experts,
I am searching for the menus and function in oracle apps to enable/disabled the functionality for a specific responsibility.
Is there any way through which we can find a function or menus in a effective way.
Thanks,
Atul RamtekeI am searching for the menus and function in oracle apps to enable/disabled the functionality for a specific responsibility.
Is there any way through which we can find a function or menus in a effective way.What do you mean? You can get the menu attached to the responsibility from query it from System Administrator responsibility and find all the functions/submenus which are attached to it.
If you want to get the same from the backend, please see:
Checking Functions Associated with a User Menu or a Responsibility [ID 948512.1]
https://forums.oracle.com/forums/search.jspa?threadID=&q=Menu+AND+Tree+AND+Query&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Thanks,
Hussein -
Recursive functions in Oracle SQL.
OK,
Here is the pivot problem. Only this time were on an Oracle 11.1.0.7.0.
I've created a table called:
CREATE TABLE STAGING.MY_TAB_COLS
TABLE_NAME VARCHAR2(30 BYTE),
COLUMN_NAME VARCHAR2(30 BYTE)
)And I've put the following data into it:
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAEADP1', 'SSN_SOURCE');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAEADP1', 'FIRST_NAME_SOURCE');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAEADP1', 'LAST_NAME_SOURCE');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAEADP1', 'DOB_SOURCE');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAEADP1', 'EMP_SSN_SOURCE');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAEADP1', 'EMP_FIRST_NAME_SOURCE');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAEADP1', 'EMP_LAST_NAME_SOURCE');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAEADP1', 'EMP_DOB_SOURCE');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAEADP1', 'MPI');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAEADP1', 'SSN_STANDARDIZED');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAEADP1', 'FIRST_NAME_A_STANDARDIZED');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAEADP1', 'FIRST_NAME_B_STANDARDIZED');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAEADP1', 'LAST_NAME_A_STANDARDIZED');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAEADP1', 'LAST_NAME_B_STANDARDIZED');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAEADP1', 'EMP_SSN_STANDARDIZED');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAEADP1', 'EMP_FIRST_NAME_A_STANDARDIZED');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAEADP1', 'EMP_FIRST_NAME_B_STANDARDIZED');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAEADP1', 'EMP_LAST_NAME_A_STANDARDIZED');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAEADP1', 'EMP_LAST_NAME_B_STANDARDIZED');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAMAET1', 'MPI_OLD');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAMAET1', 'EMPLOYEE_SSN_SOURCE');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAMAET1', 'EMPLOYEE_LAST_NAME_SOURCE');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAMAET1', 'EMPLOYEE_FIRST_NAME_SOURCE');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAMAET1', 'EMPLOYEE_DOB');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAMAET1', 'PATIENT_SSN');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAMAET1', 'PATIENT_LAST_NAME_SOURCE');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAMAET1', 'PATIENT_FIRST_NAME_SOURCE');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAMAET1', 'PATIENT_DOB');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAMAET1', 'EMPLOYEE_NON_SSN_ID');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAMAET1', 'EMPLOYEE_SSN_STANDARDIZED');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAMAET1', 'PATIENT_FIRST_NAME_A_STD');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAMAET1', 'PATIENT_FIRST_NAME_B_STD');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAMAET1', 'PATIENT_LAST_NAME_A_STD');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAMAET1', 'PATIENT_LAST_NAME_B_STD');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAMAET1', 'EMPLOYEE_FIRST_NAME_A_STD');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAMAET1', 'EMPLOYEE_FIRST_NAME_B_STD');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAMAET1', 'EMPLOYEE_LAST_NAME_A_STD');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAMAET1', 'EMPLOYEE_LAST_NAME_B_STD');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAMAET1', 'PATIENT_SSN_STANDARDIZED');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAMAET1', 'MPI');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAPMED1', 'EMPLOYEE_SSN');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAPMED1', 'EMPLOYEE_FIRST_NAME');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAPMED1', 'EMPLOYEE_LAST_NAME');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAPMED1', 'EMPLOYEE_DATE_OF_BIRTH');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAPMED1', 'PATIENT_SSN');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAPMED1', 'PATIENT_FIRST_NAME_SOURCE');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAPMED1', 'PATIENT_LAST_NAME_SOURCE');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAPMED1', 'PATIENT_DOB');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAPMED1', 'PRESCRIBER_LAST_NAME');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAPMED1', 'MPI');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAPMED1', 'PATIENT_FIRST_NAME_A_STD');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAPMED1', 'PATIENT_FIRST_NAME_B_STD');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAPMED1', 'PATIENT_LAST_NAME_A_STD');
Insert into STAGING.MY_TAB_COLS
(TABLE_NAME, COLUMN_NAME)
Values
('AAPMED1', 'PATIENT_LAST_NAME_B_STD');My task for this problem is pretty straight forward.
Using the ALL_TAB_COLS table I want to list out certain fields for each table name specified.
All the tables have fields that are similar. I just want these table names to go across the top.
And the field names to list out under each table.
So you would have something like:
AAEADP1 AAMAET1 AAPMED1
SSN_SOURCE MPI_OLD EMPLOYEE_SSN
FIRST_NAME_SOURCE EMPLOYEE_SSN_SOURCE EMPLOYEE_FIRST_NAME
LAST_NAME_SOURCE EMPLOYEE_LAST_NAME_SOURCE EMPLOYEE_LAST_NAME
DOB_SOURCE EMPLOYEE_FIRST_NAME_SOURCE EMPLOYEE_DATE_OF_BIRTH
EMP_SSN_SOURCE EMPLOYEE_DOB PATIENT_SSN
EMP_FIRST_NAME_SOURCE PATIENT_SSN PATIENT_FIRST_NAME_SOURCE
EMP_LAST_NAME_SOURCE PATIENT_LAST_NAME_SOURCE PATIENT_LAST_NAME_SOURCE
EMP_DOB_SOURCE PATIENT_FIRST_NAME_SOURCE PATIENT_DOB
MPI PATIENT_DOB PRESCRIBER_LAST_NAME
SSN_STANDARDIZED EMPLOYEE_NON_SSN_ID MPI
FIRST_NAME_A_STANDARDIZED EMPLOYEE_SSN_STANDARDIZED PATIENT_FIRST_NAME_A_STD
FIRST_NAME_B_STANDARDIZED PATIENT_FIRST_NAME_A_STD PATIENT_FIRST_NAME_B_STD
LAST_NAME_A_STANDARDIZED PATIENT_FIRST_NAME_B_STD PATIENT_LAST_NAME_A_STD
LAST_NAME_B_STANDARDIZED PATIENT_LAST_NAME_A_STD PATIENT_LAST_NAME_B_STD
EMP_SSN_STANDARDIZED PATIENT_LAST_NAME_B_STD
EMP_FIRST_NAME_A_STANDARDIZED EMPLOYEE_FIRST_NAME_A_STD
EMP_FIRST_NAME_B_STANDARDIZED EMPLOYEE_FIRST_NAME_B_STD
EMP_LAST_NAME_A_STANDARDIZED EMPLOYEE_LAST_NAME_A_STD
EMP_LAST_NAME_B_STANDARDIZED EMPLOYEE_LAST_NAME_B_STD
PATIENT_SSN_STANDARDIZED
MPI Where each table name lists across with all of their column names under each table.
The query that I have so far is The following:
SELECT T1.TABLE_NAME, T1.COLUMN_NAME
FROM my_tab_cols t1, ( SELECT DISTINCT UPPER (SOURCE_TABLE) TABLE_NAME
FROM MPI_DEMOGRAPHICS_TEST
ORDER BY UPPER (SOURCE_TABLE)) tn
WHERE T1.TABLE_NAME = tn.TABLE_NAME
AND ( T1.column_name LIKE '%MPI%'
OR T1.column_name LIKE '%SSN%'
OR T1.column_name LIKE '%E%SSN%'
OR T1.column_name LIKE '%R%SSN%'
OR T1.column_name LIKE '%P%SSN%'
OR T1.column_name LIKE '%BIRTH%'
OR T1.column_name LIKE '%DOB%'
OR T1.column_name LIKE '%FIRST%NAME%'
OR T1.column_name LIKE '%LAST%NAME%'
OR T1.column_name LIKE '%CLIENT%NAME%'
OR T1.column_name LIKE '%SOURCE_TABLE%'
OR T1.column_name LIKE '%TABLE%')
ORDER BY T1.TABLE_NAME, t1.column_id; It just list everything straight down.
Where the MPI_DEMOGRAPHIES_TEST table feeds the relevant table names to the ALL_TAB_COLS table.
It can just be substituted with a list of the values, AAEADP1, AAMAET1, AAPMED1.
Is there a 'pivot' function in Oracle 11.1 that I can use to list these column names out sideways as opposed to what I did before?
Thanks,Hi,
Here's one way to get results like that using the Oracle 11 SELECT ... PIVOT feature:
WITH got_nums AS
SELECT column_name
, ROW_NUMBER () OVER ( PARTITION BY table_name
ORDER BY column_name
) AS r_num
, DENSE_RANK () OVER ( ORDER BY table_name) AS c_num
FROM my_tab_cols
WHERE column_name LIKE '%MPI%'
OR column_name LIKE '%SSN%'
-- OR column_name LIKE '%E%SSN%' -- Included in '%SSN% above
-- OR column_name LIKE '%R%SSN%' -- Included in '%SSN% above
-- OR column_name LIKE '%P%SSN%' -- Included in '%SSN% above
OR column_name LIKE '%BIRTH%'
OR column_name LIKE '%DOB%'
OR column_name LIKE '%FIRST%NAME%'
OR column_name LIKE '%LAST%NAME%'
OR column_name LIKE '%CLIENT%NAME%'
-- OR column_name LIKE '%SOURCE_TABLE%' -- Included in %TABLE% below
OR column_name LIKE '%TABLE%'
UNION
SELECT table_name AS colum_name
, 0 AS r_num
, DENSE_RANK () OVER ( ORDER BY table_name) AS c_num
FROM my_tab_cols
SELECT *
FROM got_nums
PIVOT ( MIN (column_name)
FOR c_num IN ( 1 AS table_1
, 2 AS table_2
, 3 AS table_3
ORDER BY r_num
;Output:
R_NUM TABLE_1 TABLE_2 TABLE_3
0 AAEADP1 AAMAET1 AAPMED1
1 DOB_SOURCE EMPLOYEE_DOB EMPLOYEE_DATE_OF_BIRTH
2 EMP_DOB_SOURCE EMPLOYEE_FIRST_NAME_A_STD EMPLOYEE_FIRST_NAME
3 EMP_FIRST_NAME_A_STANDARDIZED EMPLOYEE_FIRST_NAME_B_STD EMPLOYEE_LAST_NAME
4 EMP_FIRST_NAME_B_STANDARDIZED EMPLOYEE_FIRST_NAME_SOURCE EMPLOYEE_SSN
5 EMP_FIRST_NAME_SOURCE EMPLOYEE_LAST_NAME_A_STD MPI
6 EMP_LAST_NAME_A_STANDARDIZED EMPLOYEE_LAST_NAME_B_STD PATIENT_DOB
7 EMP_LAST_NAME_B_STANDARDIZED EMPLOYEE_LAST_NAME_SOURCE PATIENT_FIRST_NAME_A_STD
8 EMP_LAST_NAME_SOURCE EMPLOYEE_NON_SSN_ID PATIENT_FIRST_NAME_B_STD
9 EMP_SSN_SOURCE EMPLOYEE_SSN_SOURCE PATIENT_FIRST_NAME_SOURCE
10 EMP_SSN_STANDARDIZED EMPLOYEE_SSN_STANDARDIZED PATIENT_LAST_NAME_A_STD
11 FIRST_NAME_A_STANDARDIZED MPI PATIENT_LAST_NAME_B_STD
12 FIRST_NAME_B_STANDARDIZED MPI_OLD PATIENT_LAST_NAME_SOURCE
13 LAST_NAME_A_STANDARDIZED PATIENT_DOB PATIENT_SSN
14 LAST_NAME_B_STANDARDIZED PATIENT_FIRST_NAME_A_STD PRESCRIBER_LAST_NAME
15 LAST_NAME_SOURCE PATIENT_FIRST_NAME_B_STD
16 MPI PATIENT_FIRST_NAME_SOURCE
17 SSN_SOURCE PATIENT_LAST_NAME_A_STD
18 SSN_STANDARDIZED PATIENT_LAST_NAME_B_STD
19 PATIENT_LAST_NAME_SOURCE
20 PATIENT_SSN
21 PATIENT_SSN_STANDARDIZEDIf you don't want to see the r_num column, use your front-end to hide it (e.g., in SQL*Plus: "COLUMN r_num NOPRINT"), or do the pivot in a sub-query, and only select table_1, table_2 and table_3 in the main query.
As with all pivots, you have to hard-code an upper bound to the number of pivoted columns. I used 3 above. You could use 4, or 5, or 45, but you must specify exactly how many columns to display.
If you say there will be 3 tables, and there actually are more than 3, then the query will still run, but all the tables after the first 3 will be ignored.
If you say there will be 3 tables, and there actually are fewer, then the query will still run, but you will have NULL columns at the end of each output row.
This sorts the output alphabetically by table_name and column_name. You can sort by anything you want by changing the analytic ORDER BY clauses. For example, if you are using all_tabl_columns and you want the columns to appear in order by column_id, then you would say:
, ROW_NUMBER () OVER ( PARTITION BY table_name
ORDER BY column_id -- instead of column_name
) AS r_num -
What is the difference btw Oracle bpm 10gr3 vs albpm 6.0.5 version
What is the difference btw Oracle bpm 10gr3 vs albpm 6.0.5 version
Are the build number common to them?Projects built in ALBPM 6.0 can be used directly in Oracle BPM 10g, but the reverse is not true.
It's sometimes thought that Oracle BPM 10g was just a relabeling of the predecessor BEA product ALBPM. This is not the case.
In Studio, standards are better supported:
<li> By default, new processes now use horizontal swim-lanes. You can change the swim-lanes orientation individually for each process. You can define the default orientation for each project and for your Studio installation.
<li> It uses more sophisticated BPMN icons. BPMN is the new default process diagram theme. BPMN constructs now include Gateways (AND, OR (new in 10g), XOR, Multiple Instance (previously Split-N)). A new Timer event was added. Loop conditions for automatic activities and groups were added.
<li> Studio now supports Mac/OS 10.4 Tiger and Mac/OS 10.5 Leopard.
<li> Studio now supports Windows Vista.
<li> Studio now supports CVS and Subversion version control systems.
<li> The Studio UI incorporates Eclipse 3.3 improvements such as the following:
<li> New Minimize/Maximize behavior: When minizing view stacks in Studio, the view icons are placed on the nearest trim area. If a view is maximized, all other views are minimized, rather than hidden.
<li> Interactive tasks provide a new "previewable" property. The new Application Display Panel and Task Execution Panel of WorkSpace automatically start the execution of previewable tasks without locking the process instance. Enabled by default for Dashboards.
<li> New type of Activity: Time Activity. A process instance that arrives to this activity just sits idle until a timed event occurs.
<li> Option Process Notification Immediately on Termination Wait activities has been deprecated. Now both the Wait activity and the first activity in the interruption flow always execute in the same transaction.
<li> Although I'm not wild about it, there is an auto-layout feature re-arranges all visual elements of a process diagram automatically, minimizing superpositions and aligning the flow as much as possible. Only available for processes with horizontal lane orientation.
<li> New process property (Greedy Execution Mode) indicates the Process Execution Engine to collapse contiguous automatic tasks in a single transaction. This mode of execution provides better performance for some processes. Disabled by default.
<li> A new Process-Level debugger allows developers to introduce breakpoints and debug complete processes running in Studio. When the execution reaches a breakpoint, the Engine pauses and Studio's debugging view appears. You can inspect variables, add new breakpoints, resume and continue execution.
User Interface
<li> The Business Analyst and Business Architect profiles provide a simpler set of menu options and toolbars.
<li> New editor for BPM Object Presentations. It's easier to use, provides a WYSIWYG drag and drop interface, improved CSS support and a new Drag & Drop toolbar.
<li> You can now interrupt a running Simulation started with the Run to the End button.
<li> New BETWEEN operator added to Business Rules editor (on both Studio and WorkSpace). This operator works with Time and numeric types.
<li> The Documentation View now displays read-only documentation for the standard Fuego.* components.
<li> New on-line help book Oracle BPM Components Reference provides reference documentation for the standard Fuego.* components. Only available for the developer profile.
<li> This version introduces Project Dependency, which allows you to re-use components and role definitions from a common base project.
In the WorkSpace:
<li> WorkSpace has an edit mode which allows users to change and save the configuration and layout of panels.
<li> A new tabbed interface allows you to define multiple pages, each with its own set of panels. You can export the layout configuration to an XML file and re-import it on a different environment or as a different user. Administrators can define layouts for all users in a certain Role.
<li> You can export the data in the Worklist panel to a PDF or CSV
<li> You can see an OOTB chart representation of the distribution of items in the Worklist panel.
<li> WorkSpace includes the following new panels: Task Panel: Renders the execution of interactive tasks within the panel, instead of using the default modal dialogs. Dashboard Display Panel: Provides a way to display Dashboards within a Panel. View Chart Panel: Provides predefined graphical reports about process performance, work items distributions and workload. Application Panel: This panel contains an application (the execution of a Global Interactive). Applications can respond to work item selections or run independently.
<li> The user can now do re-assignment operations on multiple instances at once.
<li> The Business Rules editor shows additional auditing information, including who and when a rule was modified.
<li> WorkSpace now (optionally) stores session-specific information as client-side cookies. This allows load-balancing on a cluster environment without affecting the user experience.
Integration:
<li> New timeout property added to external resources of type HTTP Server. Use this setting to control timeouts on web service invocations.
<li> Authentication information added to external resources of type JMS (Java Messaging System)
<li> Processes exposed as Web Services can now provide a runProcess operation, which synchronously executes the complete process (from begin to end). Only meaningful on fully automated processes.
Enterprise:
<li> New Ant tasks to rebuild the Oracle BPM web applications for container-security.
<li> Configuration Wizard adds option Generic JNDI to the list of available LDAP servers. When using this option, you must provide a custom configuration file defining the mapping of object classes, attributes and filters. This new feature is also the new mechanism for integrating with AquaLogic Interaction 6.5, replacing the old Identity Service.
<li> Configuration Wizard can now be run without user interaction ("silent mode"). You specify all configuration values in an XML file.
<li> Oracle BPM client applications (including WorkSpace, PAPI-WS and custom PAPI apps) are now able to connect to multiple environments (BPM Directories) simultaneously.
<li> Added Sybase as a new provider for the Engine database and BPM Directory database.
<li> More information added for auditing of Business Rules, including who and when a rule was modified.
<li> Updated bundled JDBC drivers to their latest version.
<li> The Engine now logs warning messages when it detects rogue threads. A new preference allows the administrator to disable automatic re-starts when the Maximum Number of Rogue Component Executions is reached. In addition, in the case of an automatic re-start the Engine now logs a complete thread dump.
<li> Simplified procedures for deploying BPM WorkSpace on WebLogic Portal. BPM Process Administrator now generates the WorkSpace EAR file as a WLP library module.
<li> Authentication information added to external resources of type JMS (Java Messaging System).
Dan -
Any Predefined Function in Oracle as 'ListAgg'
Hi All,
if we give input as '1,2,3,4,5'
to get output as,
1
2
3
4
5
but there is a function for vice versa, listagg, just as like that I want to find out, if it is there any?Thanks,UNPIVOT
http://www.oracle.com/technology/pub/articles/oracle-database-11g-top-features/11g-pivot.html
Edited by: Sven W. on Jul 29, 2010 2:00 PM
After reading your post the third time I'm still not clear what you want.
Well there is a ListAgg function in Oracle. Do you want that?
http://www.oracle.com/technetwork/oramag/2009/09-nov/o69asktom-089919.html
Edited by: Sven W. on Jul 29, 2010 2:01 PM -
Hi all,
SELECT HashBytes( 'md5', '1234' )
--returns 0x81DC9BDB52D04DC20036DBD8313ED055
The above is in sqlserver do we have any such function in Oracle,
I have to compare the data in sqlserver with Oracle, I know we have the above function
in sqlserver would like to know, what is the equivalent function in Oracle.
Else if any of u have better Idea for comparasion. plz let me know.
Thanks in Advance.AAK 460425 wrote:
Thanks, I was not knowing sys is the owner,
Is there any more argument I need to pass
select dbms_crypto.hash('HELOO') from dual;
wrong number or type of argument in call to hashExample:
SQL> select dbms_crypto.hash(utl_raw.cast_to_raw('HELLO'),3) from dual;
DBMS_CRYPTO.HASH(UTL_RAW.CAST_TO_RAW('HELLO'),3)
C65F99F8C5376ADADDDC46D5CBCF5762F9E55EB7
SQL>http://www.morganslibrary.org/reference/dbms_crypto.html
Maybe you are looking for
-
Tumblr Dashboard Loads way too many new pages
When I'm on Tumblr, scrolling through my dashboard, I noticed that after a while it gets very slow. The reason why, is that everytime I scroll down a bit or press the 'j'-key (to go to the next post), firefox/tumblr already loads a next page of my da
-
Firefox updated and my new page tiles are now gone how do I get them back?
I update Firefox, and in the process Norton became my automatic search engine and new page. I have tried everything but have not be able to revert back to the new page tiles. Can you help me resolve this problem? I have attached a photo of what my ne
-
I have just updated some pages on my existing website and successfully published the site. However when I went to save the changes it says 'The document "Domain.sites2" could not be saved.' So I reebooted and tested by making 1 or 2 amendments, selec
-
HT4915 My iTunes match is in bad shape! Can I start over?
Probably 15% of the artists in my iTunes Match say "Eve". But I only have one of her albums. Is there a fix? Can I just start over, somehow?
-
[b[u] i am working on Redahat Linux 7.3 with perl 5.6.0 when ever run the perl script to connect oracle i get following message " can't locate object method "USE" via package "strict" i installed the oracle for perl can anyone help to get rid of the