Sum of the ODI and group
HI friends,I have an EMP table having columns like
EmpName, Empno, Job, Deptno Sal
Raj, 3265, HR, 5200, 10
Sonu, 3652, MGR, 65400, 10
Ravi, 3256, accounts, 6000, 20
Jyothi, 6355, 20000, 20
In the light of the foregoing, I want to create a report in interface with the sum of sal and deptno group.
The result would be like 61600,10
26000,20 for these two Dep.
How can we make using our ODI interface. Please, help me in this...
Thank you
Lony
create a table with columns Deptno and Sal target
create an ODI interface with the EMP from the source table and the new target table
Drag and drop the DEPTNO column
and in the column SAL target, apply this mapping "SUM (EMP.". VAL).
ODI will be the group generated by automatically
Tags: Business Intelligence
Similar Questions
-
What is different between the ODI and FDQM?
I need to know what is different between the ODI and FDQM?At is simpler ODI is a tool for ELT enterprise scale which can cope with very large amounts of data bwteen heteregeneous systems moving. It requires a certain degree of technical knowledge to use as well and that the user is competent enough with SQL. It isn't really a tool of the end-user and the jobs tend to be lights out processes to the application with a user interface for execution of these works limited. FDQM is a data quaility tool that gives the average end-user out-of-box functionality must be able to transform and load data into various target systems. It is not designed to move very large amounts of data efficiently i.e. multi millions of lines of data as ODI. However, it has a rich user interface that provides an easy to use mapping engine, a repeatbale under control the data loading process and has a host of built elements, declaration and verification, which would have to be built from scratch in a tool like ODI
-
Update with the join and group by
Hi all
I'm currently updating multiple columns in a table from an inner join query.
First one recover the affected rows and values that I need for the update (which I call this subquery ED_Query).
It is important to note that this subquery has a group of and and the having clause.
My first attempt (using the query running in the SQL Server query) fails:
SQL > update ED_Update
2 set ED_Update.dtHoraInicioReal = ED_Query.dtHoraInicioReal,
3 ED_Update.dtHoraFinReal = ED_Query.dtHoraFinReal,
4 ED_Update.fPorcentajeRealizado = ED_Query.fPorcentajeRealizado
HISTORICOS_AVANZA 5. HSAE_HIS_EXPEDICIONDIARIA ED_Update
inner join 6)
7. select distinct ED.iIdExpedicion, ED.iIdExpedicionDiaria,
8 MAX (PT.iOrdenEnTrayecto) + 1 as iNumParadas,
9 MAX (HPP.iOrden) as iOrdenUltimaParada,
10 MIN (dtHora_LlegadaReal + iTiempoEnParada /(24*60*60)) as dtHoraInicioReal,
11 MAX (dtHora_LlegadaReal) as dtHoraFinReal,
12 100 * cast ((MAX (HPP.iOrden) + 1) as float) / cast ((MAX (PT.iOrdenEnTrayecto) + 1) as float) as fPorcentajeRealizado
13 of HISTORICOS_AVANZA. ED HSAE_HIS_EXPEDICIONDIARIA
14 left join HISTORICOS_AVANZA. HSAE_HIS_HORAPASOPARADA HPP
15 ED.iIdExpedicion = HPP.iIdExpedicion and ED.dtJornada = HPP.dtJornada
16 left join AVANZA. SAE_URB_PARADASTRAYECTO PT on ED.iIdLinea = PT.iIdLinea and ED.iIdTrayecto = PT.iIdTrayecto
17 where ED.dtJornada = TO_DATE (January 14, 2013 ',' DD/MM/YYYY ') and ED.iIdExpedicion in (-131076)
18 ED.iIdExpedicion, ED.iIdExpedicionDiaria, ED.dtHoraInicioReal, ED.dtHoraFinReal group
19 having ED.dtHoraInicioReal <>min (dtHora_LlegadaReal + iTiempoEnParada /(24*60*60))
20 or ED.dtHoraFinReal <>max (dtHora_LlegadaReal)
(21) ED_Query
22 we ED_Update.iIdExpedicionDiaria = ED_Query.iIdExpedicionDiaria;
ERROR on line 5:
ORA-00933: SQL not correctly completed command.
Subquery (ED_Query) work fine in Oracle, so I suspect that the problems are when I mix with the update clause.
SQL > select distinct ED.iIdExpedicion, ED.iIdExpedicionDiaria,.
2 MAX (PT.iOrdenEnTrayecto) + 1 as iNumParadas,
3 MAX (HPP.iOrden) as iOrdenUltimaParada,
4 MIN (dtHora_LlegadaReal + iTiempoEnParada /(24*60*60)) as dtHoraInicioReal,
5 MAX (dtHora_LlegadaReal) as dtHoraFinReal,
6 100 * cast ((MAX (HPP.iOrden) + 1) as float) / cast ((MAX (PT.iOrdenEnTrayecto) + 1) as float) as fPorcentajeRealizado,
7 ED.dtHoraInicioReal ED_dtHoraInicioReal, ED.dtHoraFinReal as ED_dtHoraFinReal, ED.fPorcentajeRealizado as ED_fPorcentajeRealizado
8 of HISTORICOS_AVANZA. ED HSAE_HIS_EXPEDICIONDIARIA
9 left join HISTORICOS_AVANZA. HSAE_HIS_HORAPASOPARADA HPP
10 on ED.iIdExpedicion = HPP.iIdExpedicion and ED.dtJornada = HPP.dtJornada
11 left join AVANZA. SAE_URB_PARADASTRAYECTO PT on ED.iIdLinea = PT.iIdLinea and ED.iIdTrayecto = PT.iIdTrayecto
where the ED.dtJornada 12 = TO_DATE (January 14, 2013 ',' DD/MM/YYYY ') and ED.iIdExpedicion in (-131076)
13 group of ED.iIdExpedicion, ED.iIdExpedicionDiaria, ED.dtHoraInicioReal, ED.dtHoraFinReal, ED.fPorcentajeRealizado
14 after ED.dtHoraInicioReal <>min (dtHora_LlegadaReal + iTiempoEnParada /(24*60*60))
15 or ED.dtHoraFinReal <>max (dtHora_LlegadaReal);
IIDEXPEDICION IIDEXPEDICIONDIARIA INUMPARADAS IORDENULTIMAPARADA DTHORAINI
------------- ------------------- ----------- ------------------ ---------
DTHORAFIN FPORCENTAJEREALIZADO ED_DTHORA ED_DTHORA ED_FPORCENTAJEREALIZADO
--------- -------------------- --------- --------- -----------------------
-131076 5662 406 15 JANUARY 13
15 JANUARY 13 JANUARY 15, 13 15 JANUARY 13 0
-131076 5663 406 15 JANUARY 13
15 JANUARY 13 JANUARY 15, 13 15 JANUARY 13 0
-131076 5664 406 15 JANUARY 13
15 JANUARY 13 JANUARY 15, 13 15 JANUARY 13 0
After reading this forum, I have change the query and try the following:
SQL > UPDATE
() 2
3. select distinct ED.iIdExpedicion, ED.iIdExpedicionDiaria,
4 MAX (PT.iOrdenEnTrayecto) + 1 as iNumParadas,
5 MAX (HPP.iOrden) as iOrdenUltimaParada,
6 MIN (dtHora_LlegadaReal + iTiempoEnParada /(24*60*60)) as dtHoraInicioReal,
7 MAX (dtHora_LlegadaReal) as dtHoraFinReal,
8 100 * cast ((MAX (HPP.iOrden) + 1) as float) / cast ((MAX (PT.iOrdenEnTrayecto) + 1) as float) as fPorcentajeRealizado,
9 ED.dtHoraInicioReal ED_dtHoraInicioReal, ED.dtHoraFinReal as ED_dtHoraFinReal, ED.fPorcentajeRealizado as ED_fPorcentajeRealizado
HISTORICOS_AVANZA 10. ED HSAE_HIS_EXPEDICIONDIARIA
11 left join HISTORICOS_AVANZA. HSAE_HIS_HORAPASOPARADA HPP
12 on ED.iIdExpedicion = HPP.iIdExpedicion and ED.dtJornada = HPP.dtJornada
13 left join AVANZA. SAE_URB_PARADASTRAYECTO PT on ED.iIdLinea = PT.iIdLinea and ED.iIdTrayecto = PT.iIdTrayecto
14 where ED.dtJornada = TO_DATE (January 14, 2013 ',' DD/MM/YYYY ') and ED.iIdExpedicion in (-131076)
Group 15 of ED.iIdExpedicion, ED.iIdExpedicionDiaria, ED.dtHoraInicioReal, ED.dtHoraFinReal, ED.fPorcentajeRealizado
16 having ED.dtHoraInicioReal <>min (dtHora_LlegadaReal + iTiempoEnParada /(24*60*60))
17 or ED.dtHoraFinReal <>max (dtHora_LlegadaReal)
18)
19 SET ED_dtHoraInicioReal = dtHoraInicioReal,
20 ED_dtHoraFinReal = dtHoraFinReal,
21 ED_fPorcentajeRealizado = fPorcentajeRealizado;
ERROR on line 2:
ORA-01732: operation non-legal data manipulation on this point of view
Little help?
Thanl in advance.
Published by: 984483 on 28-ene-2013 01:48Hello
Thanks for posting the CREATE TABLE and INSERT.
Don't forget to post the desired results of these sample data, i.e. the content of the or the tables changed after the UPDATE is made.Is that what you want ed_update to look like after that everyhting is finished?
DATE01 NUMBERMAX NUMBERSUM ---------- ---------- ---------- 01/01/2013 30 60 02/01/2013 0 0 03/01/2013 0 0
If so, here's a way to do it:
UPDATE ed_update u SET (numbermax, numbersum) = ( SELECT MAX (number01) , SUM (number01) FROM ed_query WHERE date01 = u.date01 ) WHERE date01 = TO_DATE ('01/01/2013', 'DD/MM/YYYY') -- If wanted ;
In Oracle, INNER JOIN works only in the FROM clause of a SELECT statement.
When you want to update a table with values from another table, you can do a subquery correlated (as I showed above) or use the MERGER instead of UPDATE. -
How can I remove comments from the users and groups
I have my in my users and groups in the system preferences a user snd invited another user
How can I remove them
Go to Preferences system-> users and groups, and then press the lock to allow you to change the settings. Then choose 'user comments' in the sidebar and uncheck "Allow clients to connect to this computer". This will not make this option disappear, but after that you will not be able to use the Guest user.
«Respect for the other user, simply choose it in the sidebar and press on the '-' button.» Make sure that no one uses this user.
-
Not the users and groups folder under computer management
Original title: no access to users and groups in Windows 8 Pro
Right click on computer, select Manage
There is no option in the management of the computer!WHY? How to view?Thank youHi Johnny,.
Looks like you are unable to get users and groups under computer management.
I would like to gather information to help you:
(1) how do you try to locate users and groups under computer management?
(2) you are able to view other folders in the same section?
(3) don't you make changes to the computer before this problem?
I suggest you to check if the steps will help you to locate users and groups folder under Computer Management:
(a) Windows and X set button, and then select computer management.
(b) double click on system tools.
(c) click on local users and groups.
(d) check if you are able to find users and groups folder.Do we not respond with the status of this issue. -
Join between tables header &; detail based on the age and group
To find the amount of the age and the group in the table of detail based on age & group_id in header?
Example: Take the seq_id = 1 mind, it has age = 60 & group_id = 23 (23 months).
In the detail table xx_detail, the age column represents the age of the person (0-65 represents the age 0-65 and so on).
If the age is null, while the rank indicates the Group (0-12 represents the group between 0-12 months). If the age is not null, then the Group 1, group 2, group 3 that data amounts.
So now I must get the amount as 240 (like my seq_id header = 1, age = 60, group_id = 23, as it is covered by group age & 13-59 0-65). So I need a SQL to find the exact amount in detail based on the header record. We must go to settings & group_id age and get an amount of detail tables. Can anyone provide input how to achieve this in the most simple.
- SQL > select * from v$ version
- 2.
- BANNER
- --------------------------------------------------------------------------------
- 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 Production 11.2.0.3.0
- AMT for Linux: Version 11.2.0.3.0 - Production
- NLSRTL Version 11.2.0.3.0 - Production
- SQL > xx_header desc ;
- Name Null? Type
- ----------------------------------------- -------- ----------------------------
- SEQ_ID VARCHAR2 (6)
- AGE NUMBER
- START_DATE DATE
- GROUP_ID NUMBER
- SQL > select * from xx_header;
- SEQ_ID AGE START_DATE GROUP_ID
- ---------------- ------ ------------------ ---------------
- 1 60 1 JANUARY 12 23
- 2 89 1 JANUARY 12 23
- 3 95 1 JANUARY 12 23
- SQL > xx_detail desc ;
- Name Null
- ----------------------------------------- -------- ----------------------------
- SEQ_ID VARCHAR2 (10)
- AGE VARCHAR2(10)
- GROUP1 VARCHAR2 (10)
- GROUP2 VARCHAR2 (10)
- GROUP 3 VARCHAR2 (10)
- SQL > select * from xx_detail;
- SEQ_ID AGE GROUP1 GROUP2 GROUP3
- ---------- ---------- ---------- ---------- ----------
- 1 0-12 13-59 60-126
- 1 0-65 120 240 300
- 1 66 - 135 100 80 400
-
Agent of the ODI and repository
Hello
I would like to know what exactly the role of agent of ODI and repository?
If I create a new ODI environment using an OLD having slight chages to target database can I use the same Agent to two repositories of th?
Thank you
MaheshHow to create data servers and how do I use it?
In terms ODI, database server is connecting to one or multiple data store present under a connection.
You need to create the server from the topology data.You must create a physical database server where you must provide the physical connection information.
You must have a logical data created authentintion that will connect to the physics dataserver via a given context. -
How oracle created by identification of the users and groups in the OID.
Anyone know what LDAP search filters would give me only the OID users and groups created by the Oracle installation process itself?
I want to write scripts to retrieve all users and groups that the developers have put in manually, as opposed to those created with installation or synchronized from the announcement.
I tried things like ' (& (!)). (objectClass = orcladuser))) (& (objectclass = orcluserv2)(orclisenabled=ENABLED))) ' for users, but it's not quite restrictive. "
Other ideas would be appreciated.
Thank you!
Published by: sherlihy on April 5, 2011 15:45There should be a date of creation. You could do a larger than the piece of timestamp in your query.
-Kevin
-
How to find the sum of the month and year of a date
Hi all
I want to find the sum of the date
for example, 10 November 2010 I need to find (11-2010).
Please help meYou can use the extract function...
SQL> select extract(month from systimestamp)+extract(year from systimestamp) from dual; EXTRACT(MONTHFROMSYSTIMESTAMP)+EXTRACT(YEARFROMSYSTIMESTAMP) ------------------------------------------------------------ 2021
Concerning
Renjith Malet -
Duplicate the layers and groups unrelated
I have a group of layers (in a folder) and duplicate the group without the two groups are related. I tried Ctrl-J and also by dragging the group to the new layer at the bottom of the layers Panel icon. None of these methods worked to untie layer groups. When I change the text smart object layer in one of the groups, changes occur in both groups of layers. I want to be able to edit text layers independently in each group.
Is it possible to separate groups?
If you are using the latest version of Photoshop CC 2014, you will need several steps.
(1) make a right-click on one of the smart object layers in the Group and choose new Smart Object Via Copy. Repeat for all layers additional object dynamic you want to duplicate.
(2) if there are layers in the folder that are not smart object layers, you can copy it by dragging to the new layer at the bottom of the layers Panel icon.
(3) move all the layers that are duplicated in a new layer group folder.
-
How to upgrade the users and groups of OBIEE 10.1.3.4.0 in OBIEE 11 g
Hello
I need to upgrade my system OBIEE 10 g and 11g.
Since I was around, say 100 user in my filing of 10g, so how can I get users to OBIEE 11 g. And also, I do not use any LDAP server in 10 g. So can anyone please help me with this problem
??
Thanks in advance
Kind regards
NikhilHey Sarah,
Follow this http://www.adivaconsulting.com/adiva-blog/item/18-obiee11g-upgrade.html
If the tag answer your messages by assigning points.
See you soon,.
KK -
Query to find the sum of the different groups in the same column
Hello
I have a table as follows:
visitors
------------------------------------------------------------------------------------------
months of amt credit CustID
--------------------------------------------------------------------------------------------
001 C 2000-Jan-2012
001D 5000 Feb 2012
001C 3000 Mar-2012
001C 3000-Apr-2012
001D 7000-may-2012
I have to write a single query to calculate the sum of the credit and the sum of the flow values separately.
Thank you and best regards,
SB2011Hello
Select decode (credit,' it, sum (amt), sum (amt)) in the Group of customers to credit;
Published by: 937440 on 24 February 2013 07:06
-
I'm trying to add the user and group policy in Windows XP in MMC. However, when I click on browse, it has no user inside tab. How an application policy for a certain group of users?
Hi Muhammad,
Your computer is connected to the server or domain?
If your computer is in a domain environment, please ask your question in the TechNet forums for assistance.
Hope the helps of information.
-
All,
Has anyone seen the following symptoms?
(1) when a user or group account does not appear in the 'users and groups' dialogue box 'Select users' research will result in a "select users or groups" pop indicating "no user or group not found as the search result. Before beginning your search, in the dialog box "Select users", the correct domain name appeared in the "domain:" drop-down list.
(2) not possible to account or group of usernames containing spaces. She will accept the format of the name of groups 'Pre-windows 2000' of objects. The account names and groups ' select users ' GUI will be find the account or group when you enter the explicit & lt; domain name & gt; ------& lt; Account name & gt; in the text box 'Users' or & lt; domain name & gt; ------& lt; Group name & gt;.
Is there a known issue with user accounts or to find when they do not appear in the "users and groups" in the dialog box "select users".
Kind regards
Steve
Sorry, wrong forum, this is Server 2.0.
---
If you have found this device or any other answer useful please consider the use of buttons useful or Correct to award points.
-
Cannot change the guest account group
Long story short. The guest account is somehow in the Administrators group.
I use Windows Vista Home.
When I am logged into the guest account and I look under the name he said administrator. I'm going to change the type of account, it shows that it is in the standard group. It won't let me even change for the management group. It is in the Administrators group or what? READ MORE that it gets better.
When I'm on the command line and I type net user comments he says that membership in the local Administrators group. Now, here's what I don't understand. I do net localgroup guests comments / add and it will add to the guests group, and it is then in the customers and group administrators. I can then do net localgroup guests comments/delete and it deletes it. Now I CANNOT net localgroup administrators/delete comments because he says that it is not within the group, BUT if I net localgroup administrators comments / add that also says that he cannot do it because it's already in the Group? That continues. A I royally mess up something or it's a certain type of problem? Please help me. Thank you
HelloDo the following and check.Check in the user managementa. Click Start, type "Edit users and local groups.
b. click on 'Users', which is located on the left side
c. right-click Guest, and then select Properties.
d. go to the Member tab, select the administrator group, and then click on remove.It will be useful.Aziz Nadeem - Microsoft Support[If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]
Hello
Is this the same question you asked 3 days ago
https://forums.Oracle.com/thread/2606197
?
Whether it is or not, validate the information requested in this message, which is also in the FAQS of the Forum:
https://forums.Oracle.com/message/9362002
If it's the same question, do not post a new thread. Mark it as "Answered" immediately and continue in the original thread.
Maybe you are looking for
-
Slow Boadband on a single laptop while the second laptop is fine
We have two new laptops. The 650 HP Probook a download speed very slow broadband (0.9 MB) on our optical fiber EE connection. The other laptop (next to him) is very well (more than 30 MB). I assumed it was a problem with the laptop HP but just tested
-
Multisim: Entry pattern - shift, tri-etatique registers, shift levers JK
-
Help, please I lost my installer for epson stylus sx515w drive, I have sent for a new disk but received an engineer reset disk, are they the same thing? and if so, how to install my printer?
-
I was not able to use my PC as he said that he might be corrupt files from a microsoft download
When I had this problem was when I acted on a promt for download microsoft a few days earlier, after which I thought would date time default in January 2007, then he would recognize not the port for my keyboard, I changed the usb port and it worked.
-
Windows Installer update package possible flaw of sequence
Windows Update improves system performance and security by replacing system files with new versions of them, which may not contain vulnerabilities that seniors did. However, I noticed the update numbers are essentially random during installation, so