How to use the Group condition in the ODI mappings
Hi Experts,
I have a requirement in the customization of BI applications. Can you please someone explain how to use the LISTAGG function in odi mapping.
I applied the LISTAGGR function at the level of mapping odi, but I get error below.
Mapping of ODI: ColumnName: ENAME Expression: LISTAGG (EMP. ENAME, ",") THE GROUP (RANKING BY EMP. ENAME)
Error:
ODI-1240: Flow LIST_AGG_FUN_USAGE fails during an operation of integration. This flow of charge table target EMP_BI.
ODI-1228: task failed LIST_AGG_FUN_USAGE (integration) on the scott_db of ORACLE target connection.
Caused by: java.sql.SQLSyntaxErrorException: ORA-00937: not a function of simple-group
Oracle query:
If I used this sql query in the database the correct result is.
SELECT DEPTNO, LISTAGG (ENAME, ',') WITHIN THE EMP EMP (ENAME CONTROL) GROUP. DEPTNO;
Output:
10 | CLARK, KING, MILLER |
20 | ADAMS, FORD, JONES, SCOTT, SMITH |
30 | ALLEN, JAMES, MARTIN, BLAKE, TURNER, WARD |
Please give your valid solutions, thanks in advance.
Kind regards
REDA
If you try in #ODI12C then in the set of properties, you can select the column which should be used to group by.
If it's 11g so its bit complicated. Simply replace the mapping with below codes.
LISTAGG (EMP. ENAME, ",") WITHIN GROUP (ORDER BY ENAME) / * sum() * /.
Magic!
Thank you
Chantal
Tags: Business Intelligence
Similar Questions
-
How to use the search otherwise condition as
Oracle 9i
Hi all
I work in the management of control here, we have a table named as OE_ORDER_LINES_ALL and the name of the column called UPI, and its length is 16 tank.
Now the customer has the UPI with 13 tank and now, I need to check if all the IPUS are in the table.
I have almost 600 of the UPI and I can't able to use as an operator. Y at - it one option other than as an operator.
For example
Resemble UPI this 050 009714373007G, but the customer gave this G 009714373007.
Is there a UPI then I would use like this
"Select upi in oe_order_lines_all where the upi as ' 009714373007 G %.
If there is more than 2 UPIs how to use the search condition
Any help is highly appricatable
Thanks and greetings
Srikkanth.MIf you know that you will benefit from a number of values of UPI 13 characters and you should look for if there are rows in the table that match the 13 first characters
select upi from oe_order_lines_all where substr(upi,1,13) IN( '009714373007G', <
> ) Justin
-
How to use the Page number in the IF condition
Hello
I have an obligation to change the output based on Page numbers. Can you please help me how to use the Page number in IF condition.
Thank youCan u send me a sample xml and RTF file to my email in my profile identification, so that I can have a look.
-
How to use the Group feature in insert or update
Hai All
How to use the Group feature in insert or update statement
I'm generating attendance so I have a different set of timing example
0800,1200,1230, 1700 and I need to insert data into the table that contains the intimate value min and max value for
outtime and othere to inertval time in or out
Pls tell me with some examples
For example
For INSERT
Insert into T2 (barcode, empcode, respondent, attend_date)
values (R2.cardn, R2.enpno, min(R2.) PtIMe), R2.pdate);
Update
Update dail_att set outtime = MAX (r2.ptime) where empcode = r2.enpno and barcode = r2.cardn and
attend_date = r2.pdate;
Here, in the place where I used to have so pls tell how to use
Thanks and greetings
Srikkanth.MHi Srikkanth.M
to insert:
insert into test (dummy) values ((select max (dummy) to double));
Update:
Update test dummy value = (select max (dummy) to double where to test them. XXXXField = double. XXXXField);
-
How to use the global variable in the table target?
Hello
I am trying to load several files into a single interface. the data is loaded successfully. 92. the files are there. for this I used variables and package.
My requrement is 92 files of data loaded into the target table. I want to know what data from file.
to this I added a column (filename) to the existing target table.
If I used joints (not same condition), its totally wrong. all file names are coming.
Please see the following screenshots.
exit; target table.
in fact in the target table. first 10 lines are coming from file.i.e first _ACCOUNT_LIMIT_511.TXT. but all the files names are coming.
I'm confuse. After the first data file inserted then insert second data file. in that all file names are coming. Please help me.
I thought that the global variable is preferable to identify the data came from which file.
to do this, the global variable is used in the target table. I don't always have my exit.
Please help me.
Thanks in advance.
Hello
You can use the same way, how you use the project variable, just you have to do a thin is #GLOBAL.variable_name for example: #GLOBAL. SMART_AL_FILE_NAME_S
Note: Make sure you that while you use one variable overall in interface, indicator should be staged as you chose above the screen
hope this helps you
Kind regards
Phanikanth
-
Oracle: how to use the max() function in expression box
How to use the max() function in the case where expression, please explain with an exampleHope this helps and should be explicit
with t as (select 1 col,100 col2 from dual union select 2 ,100 from dual union select 2 ,200 from dual union select 3,100 from dual union select 3,200 from dual ) select col, case when max(col2)=100 then 'with 100 range' when max(col2)=200 then 'with 200 range' end from t group by col
-
How to use the POwn, PCon or PMin in codification
Dear all experts,
Do you know how to differentiate the consolidation of one account with another? The condition is:
Assets: PCon
Liabilities: PCon
Account (NCI, the working capital reserve, etc.): POwn
Is this possible? Actually when and how to use the POwn, PCon and PMin?
Thank you for your attention
-
How to use the data object 'DatastoreHostMount '.
I train to iterate on the grouping value in vCenter and for each data store found, determine whether a host has mounted data store or if it is visible to the host. I am using data object 'DatastoreHostMount' , but I don't know exactly how to use the object to retrieve the name of host configuration.
Here's the perl code snippet and I get an error for:
#get all hosts within cluster and check the connectionState and compare with all datastores found #is there a more efficient way to combine this section with the next section? my $hosts = Vim::get_views (mo_ref_array => $cluster->host); foreach my $host (@$hosts) { if ($host->runtime->connectionState->val eq 'connected') { my $datastores = Vim::get_views (mo_ref_array => $cluster->datastore); foreach my $datastore (@$datastores) { print " Datastore ", $datastore->host->summary->config->name,"\n" } } elsif ($host->runtime->connectionState->val eq 'disconnected') { print "\t|", $host->summary->config->name, "|Disconnected|\n" } elsif ($host->runtime->connectionState->val eq 'notResponding') { print "\t|", $host->summary->config->name, "|Not Responding|\n" } }
Cannot call method 'Summary' on some wrapping 71 de./listCluster.pl.
Disconnection of the end
=========================================================================
-William
Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
OK, I remembered how it works. Sorry for the noise:
|
My $datacenter = Opts::get_option ('Center');
My $datacenter_view = Vim::find_entity_view (view_type = > 'Data center',)
filter = > {name = > $datacenter});
If (! $datacenter_view) {}
Die "data center" "» $datacenter. "" not found\n ";
}
My $cluster_views = Vim::find_entity_views (view_type = > 'ClusterComputeResource',)
begin_entity = > $datacenter_view);
My $counter = 1;
Print "Clusters found: \n";
{foreach (@$cluster_views)}
Print "$counter:". "." $_-> name. "\n";
My $datastores = Vim::get_views (mo_ref_array = > $_-> data store);
foreach my {$datastore (@$datastores)}
my $instances = @{$datastore-> host};
my $instance = 0;
while($instance < $instances) {}
My $x = Vim::get_view (mo_ref = > $datastore-> Home-> \[$instance\]-> key);
print $datastore--> summary-> name, "Datastore", $x-> name, "\n";
$instance ++;
}
}
$counter ++;
}
-
How to use the function @RETURN for poster messages Essbase in 11.1.2.1
Hello
I found the business support Essbase Hyperion Planning 11.1.2.1 @RETURN rule novelty.
If I create a simple BR for planning app like below:
"@RETURN ("test return message,"WARNING);
Validation returns error and BR can not be deployed.
One is how to use the function @RETURN br?
Thank you!He probably should be in a calco for example block
"Profit".
(
....
)It is more likely to be used with an IF ELSE command, you do not want to define the condition for the calculation, roughly what the feature is designed for output.
See you soon
John
http://John-Goodwin.blogspot.com/ -
Can someone explain how to use the addProcessFormChildData API?
Hi gurus:
I have a scenario where; I need groups implemented in AD using AD connector as part of provisioning of the IOM to AD users. These Don t groups are already available in IOM, but these are received as parameters of authoritative source.
I read the different thread, but can not find how to use the addProcessFormChildData API to perform these forms of child.
Any help would be greatly appreciated!
PD: My English is very bad!Use this post
How to remove data from the user for the child form?
How to find the key to AD provisioning process instance
These will be useful.
-
With no headphone jack, how to use the iPhone in my car 7
Okay, so here's the challenge. I have a power source and a headphone and not Bluetooth. It works perfectly with iPhones before 7. But with 7, it isn't possible to use the same configuration I had for years. I own my car, and I have no interest in buying a new car just to support a new phone. And since this will be a problem for the years to come if I stay with Apple, I would like to know what are the solutions are available.
So, how to use the new iPhone 7 while remaining responsible and using my car speakers? Dongles Bluetooth that I need to reload, it's probably not.
Thus, looking for ideas that might have people. I can't be the only one with this concern.
It's almost a certainty that a third party adapter will appear quickly. The new Macbook has a single port usb - c and people asked the same question, 'how to load and use USB at the same time." There are today dozens of solutions for the Macbook, and then it will be with the iPhone 7. An adapter with a 3.5 mm jack and a port of loading Lightening would be my guess. Kickstarter entrepreneurs are probably already working on it.
-
How to use the capture and the print button
I tried to figure out how to use the capture and the "print" button, or add or what you call. I press it and the whole page of a different color changes, so I try to cut the section I want but I don't know how to send it to the printer. Can someone help me with this. I'm not at savvy with tech stuff, but when I find a recipe or something and it doesn't have an option to print a certain area, I can't understand how to use it?
Thank you
Andi Starbuck
That happens to me is, I click and drag to make a rectangle of yellow selection, and as soon as I raise my finger on the mouse button, the part I've selected is captured as an image, a new tab opens and preview before printing, the image display. I can use the installation of the Page or simply print. But if I close the preview, this temporary image vanishes and I'm back on the page where I started. You see something different?
-
How to use the activity monitor to remove MegaBAckup on my mAc Book PRO?
How to use the activity monitor to remove MegaBAckup on my mAc Book PRO?
Download and run MalwareBytes. Malwarebytes was developed by one of our colleagues here to ASC. He received rave reviews and is on the more proven anti-malware for Mac software.
-
How to use the utility disk first aid for hard drive internal el captian
How to use the utility disk first aid for hard drive internal el captian
Select the drive and click first aid.
If something is not repairable because this is the system drive, then you need to start using the recovery partition and run disk utility it.
-
How to use the Print Screen function?
I've seen various descriptions of how to use the print screen function.
It would be nice to actually tell one that works. None have worked for me.
[Fn] and Prt SCr does not work.
CTRL and Prt SCr does not work.
CTRL, Alt, and Prt SCr does not work.
[Fn], Ctrl and Prt SCr does not work.
If anyone knows the correct method to activate the screen capture function which would be a good thing.
From the looks of things, HP has a big problem with this function.
Here's a microsoft articleon the use of the screenshot function.
This should answer your questions.
Thanks for taking a peek.
Maybe you are looking for
-
I would like to spelling to reflect the American English spelling English not British.
When I use LibreOffice Writer, the spell checker uses American English. When I'm in Firefox, however, the spell checker uses British English, i.e. favorite favorite instead. Firefox used to spell according to American English. I would like to convert
-
X 1 carbon (2nd generation) reference numbers keyboard
Hi all I unfortunately spilled water on the keyboard of my 2nd gen X 1 carbon and several of the keys no longer work. As it is out of warranty, I expected to buy Lenovo parts and fix it myself. Can someone point me in the right direction with regard
-
LaserJet 500 m551 no project don't print option on Mac OS x 10.7
We use a range of HP LaserJet 500 m551 color printers in my office and it takes too long for the photos to print. When you print a picture of a Mac OS 10.7 (jpg) images, there is no option to print a "draft" or the low resolution copy. The only optio
-
... all I'm really trying to do is identify all material on multiple PCs that I have too much space in every sense... trying to determine what is worth keeping or not. Thought that the best way to do that would be to update the HCL... hours have pas
-
I have a HP Pavilion Entertainment PC/Laptop and forgot the password of Admin or power on password, any chance to resume?