How to compute data from different data sources?
All we are doing with data is from one single datasoure, which could be from oracle or sql server or a excel table, the issue is how could we combine these data from different data source with SQL?
Example: i need some data from Sale Table in Excel and some data from Custumer Table in oracle, how could SQL complete this mission? Solutions are welcomed and appreciated.
消息编辑者为:Datathinker from Raqsoft
Hi,
This forum is dedicated to SQL Developer Data Modeler product.
You might search for solution in general questions forum.
Similar Messages
-
Newbie: how to pull data from different data bases to a central location
Hello,
I have no experience at all in Oracle; just in MySQL, PostgreSQL, Firebird for simple applications. I have this project where my Client wants to extract data from related 5 tables, from 12 databases in different locations. Table structure in all 12 locations are the same, and I need to consolidate information for reporting purposes. I was planning in developing a Delphi application for this purpose, yet maybe with pure Oracle SQL or Oracle tools can I automate this?
Thank youPlease clarify your term "database".Instance of an Oracle database, one in each of the 12 locations.
Are the computers in all these locations available via Internet?My client can see all 12 databases from an Oracle database manager; I still have to investigate if its through Internet or private WAN.
What RDBMS are all these data sources?I have yet to verify the precise Oracle version, yet I know its an old one: 7 or 9. Will confirm it.
What flavor of RDBMS is the target data repository?Same as previous question
Is this a 1 shot data load or an ongoing requirement to consolidate "new" data into repository?The require to pull data automatically, maybe a batch process done by night. -
How to calculate counts from different dates into 1 date
Hi,
I have a scenario below
ID
Type
Country
Date
123AP1
P
US
1/1/2009
123A1
A
WO
4/4/2010
123A2
A
US
6/6/2011
123A3
A
US
8/8/2011
So, the logic I need to display is -
If, Type = P AND Country=US then count 1 where ID has 123AP1
else If Type = A AND Country=US then count 1 more where ID has 123AP1 on date 1/1/2009 (i.e. on Type P date)
So, result should show
ID
Type
Country
Date
Count
123AP1
P
US
1/1/2009
3
123A1
A
WO
4/4/2010
0
123A2
A
US
6/6/2011
123A3
A
US
8/8/2011Please simplify the question while asking to make it easy to understand.. this question is very confusing to understand..
For your purpose you should be able to get the result using calculation context based count on a conditional variable with all your logic
Create a variable like below
var =if [Type] = 'P' [ID] = '123AP1' and [Country] = 'US' then 1 else if Type] = 'A' [ID] = '123A1' and [Country] <> 'US' thenn 1
And then create a formula on this variable like below
Count = sum([Var]) forall [Date] -
i have multiple devices backed up to the same computer each with different data. how do i keep them from syncing all data when i back up or transfer stuff from the computer to a device? one is an iphone 6 and the others are ipad mini first gens, each ipad has 64gb and the iphone has 128, need to keep the data seperate as they are not all mine
Itunes content and pics are NOT part of the backup that itunes performs.
Backing up, updating, and restoring iPad, iPod touch, and iPhone software
You should transfer any purchases from iphone regularly: File>Transfer Purchases , if they fail to be transferred when you sync.
You buy one and only one download. It is your responsibility to move/copy/backup your purchases.
You can try contacting itunes support and asking for an exception, but they are under no obligation to allow.
http://www.apple.com/support/itunes -
Can we send the data into different data target from single datasource how
Hai
can we send the data into different data target from single datasource how ?Hi,
Create the transformation for each target and connect through DTP if you are in BI 7.0
If it is BW 3.5 create transfer rules and load it Info source and then different update rules for different targets then load it using IP.
If you are speaking about loading data from R3 data source to multiple data sources in BI
Then follow the below step.
1)create init IP's and run the IP's with different selection to different DSO(With same selection it is not possible).
2)Then you will have different delta queues for the same data source in RSA7
3)Your delta loads will run fine to different data sources from same DS in R3.
Hope this helps
Regards,
Venkatesh -
How to display multiple data from different table in one table? please help
Hi
I got sun java studio creator 2(the separate installation not the one in the net beans)....
My question is about displaying data that have been taken from the database.... I know how to display data in a table(just click on the table "bind data" )... but my question is that:
when i want to use a sql statement that taken the data from different table...
how can i display that data in the table(that will be shown in the web) ??? when i click bind data on the table i can only select one table i can't select more than one....
Note:
1) i'm using the rowset for displaying the data in the table, since the sql statement is depending on a condition(i.e. select a from b where c= ? )...
2) i mean by different table is that( i.e. select a from table1,table2 )..
thanks in advance...Hi,
937440 wrote:
Hi every one, this is my first post in this portal. Welcome to the forum!
Be sure to read the forum FAQ {message:id=9360002}
I want display the details of emp table.. for that I am using this SQL statement.
select * from emp where mgr=nvl(:mgr,mgr);
when I give the input as 7698 it is displaying the corresponding records... and also when I won't give any input then it is displaying all the records except the mgr with null values.
1)I want to display all the records when I won't give any input including nulls
2)I want to display all the records who's mgr is null
Is there any way to incorporate to include all these in a single query..It's a little unclear what you're asking.
The following query always includes rows where mgr is NULL, and when the bind variable :mgr is NULL, it displays all rows:
SELECT *
FROM emp
WHERE LNNVL (mgr != :mgr)
;That is, when :mgr = 7698, it displays 6 rows, and when :mgr is NULL it displays 14 rows (assuming you're using the Oracle-supplied scott.emp table).
The following query includes rows where mgr is NULL only when the bind variable :mgr is NULL, in which case it displays all rows:
SELECT *
FROM emp
WHERE :mgr = mgr
OR :mgr IS NULL
;When :mgr = 7698, this displays 5 rows, and when :mgr is NULL it displays 14 rows.
The following query includes rows where mgr is NULL only when the bind variab;e :mgr is NULL, in which case it displays only the rows where mgr is NULL. That is, it treats NULL as a value:
SELECT *
FROM emp
WHERE DECODE ( mgr
, :mgr, 'OK'
) = 'OK'
;When :mgr = 7698, this displays 5 rows, and when :mgr is NULL, it displays 1 row. -
How to insert data from different internal table into a data base table
hi all,
I want to insert a particular field in an internal table to a field in a data base table.Note that the fields in the internal table and database table are not of the same name since i need to insert data from different internal tables.can some one tell me how to do this?
in short i want to do something like the foll:
INSERT INTO ZMIS_CODES-CODE VALUE '1'.
*INSERT INTO ZMIS_CODES-COL1 VALUE DATA_MTD-AUFNR .(zmis_codes is the db table and data_mtd is the int.table)REPORT ZINSERT.
tables kna1.
data: itab LIKE KNA1.
data lv_kUNAG LIKE KNA1-KUNNR.
lv_kuNAG = '0000010223'.
ITAB-kuNNR = lv_kuNAG.
ITAB-name1 = 'XYZ'.
INSERT INTO KNA1 VALUES ITAB.
IF SY-SUBRC = 0.
WRITE:/ 'SUCCESS'.
ELSE.
WRITE:/ 'FAILED'.
ENDIF.
Here lv_kunag is ref to kna1 kunnr passed in different name
In internal table .
Try and let me know if this logic dint work. -
How to get data from different SEGMENTs
Hi;
My requirement is to first of all retrieve the data from different segments in run time.
I mean, i have to execute t/code WE19 and the idoc will be given after that an user exit would called where i have to retrieve the data from different segments and then it would store in an internal table for further calculation.
Can you all please guide me how to retrieve the data via ABAP code in runtime so that it can store in an internal table.
Regards
Shashiwrite code lke this ..
form post_idoc tables idoc_data structure edidd
idoc_status structure bdidocstat .
loop at idoc_data .
case idoc_data-segnam .
when 'zsegment1'.
move idoc_data-sdata to wa_zsegment1 .
when 'zsegment2'.
move idoc_data-sdata to wa_zsegment2 .
when 'zsegmentn'.
move idoc_data-sdata to wa_zsegmentn.
endcase .
endloop.
After this write code to move data to int table from work area .
endform .
Hope this helps u.... -
Deleting duplicate records from different data packets in BI data source.
Hi,
I am getting same (duplicate) records from different data packets in BI data source, after completion of extraction.
I tried to store key fields of the first data packet in an internal table. But this internal table is not carrying the previous data at the time of extraction of second data packet.
Is there any other way to remove duplicate records after completion of extraction.
Thanks in advance.I did not extensively worked in BI routenes. But I recon there will be routene which will het executed before data mapping part there will be a start routene in which you can validate the existense of data before beeing passed from data source to cube.
Hope this helps,
Regards,
Murthy. -
How to combine data from different input forms outside a nested iView
Hi,
i try to combine data from different input forms in a single one.
Because of space reasons in Flex compiling i already use nested iViews. Within these nested iViews its possible to use the 'combine' function to do this.
But in the main iView I cant compose these function with other elements. I need to do this because of using these model in Guided Procedures with output parameters. These parameters I only get with a 'endPoint'. Unfortunatly its not possible to combine data from different input forms into the 'endPoint'.
Is there any solution?
Thanx
MathiasHi Scott,
i tried this already and i also tried to map all parameters in the endpoint by drawing lines from the other forms and assign the 'empty parameters' by a formula.
And when i create a collable object in GP and assign the VC iView, only the parameters of the parent-form (the form who trigger the event) are shown as output-parameters.
Maybe any other ideas? I cant believe that such a simple thing is not possible?!?!
In my opinion, thats a bug, that I'am not able to use the combine-operator in the main VC-iView. Whats your mind?
greets
mathias -
How to "join" data from different SyncBO's within MAM?
Hi,
Have anyone tried "joining" the data from different SyncBO's into one in a custom MAM application? For example, the SyncBO MAM30_30 (Functional Location) has references to MAM30_016 (Catalog + Code Groups). Is there an easy way to display all of the related information together, instead of first looping through objects from MAM30_030, then for each individual object, loop through a list of MAM30_016?
Basically, the application that we're working with has 3000+ Functional Locations, so we are looking for a way to join the data and display them as one object to improve performance.
Many thanks!
JeffreyThanks Norbert. Unfortunately, we cannot create new Syncbo's, as we have limited access to that R/3 backend.
Basically, what we want to do is customize the MAM bit so that it can display the Tech Obj List with all its codes and children item syncbo's, instead of having the user click on the link to see more info. We would like to do this without having to loop through the child sync bo's.
Many thanks! -
Collecting data from two R3 source systems
Dear All,
Scenario:
We are in the process of implementing SAP BI 7.0 in our organisation.
We have a single BI server (7.01) collecting data from two source
systems from two different divisions within the group.
The first system is of Company 1 where we have IS u2013 MILL (ECC 6.0).
BI has been implemented and running successfully in this unit. Now we
have started implementing BI in the second unit u2018Company 2u2019
where the industry specific solution IS u2013 AFS (ECC 6.0) is the source
system.
We are activating BI Standard Content for AFS. When we try to upload
master data, we face a problem.
The master data (0Division, 0Mat_Grp_3, etc.) is already loaded with
IS Mill data (data from the first source system). Now when the data is
loaded from IS AFS (second source system), wherever, the same key
exists in the info object, we notice that the existing data is
overwritten by the freshly loaded data, thus causing loss of existing
data.
A typical example is as follows:
BW Data u2013 Source system 1 u2013 (Before upload of data from source system
2):
0Division
99 EN Stock Transfer Out
AFS Data (Source system 2) -
0Division
99 EN STO
BW Data u2013 Source system 1 u2013 (After upload of data from source system 2):
After uploading the master data from AFS, the Values areu2026
0Division
99 EN STO
The original data is lost.
Similar problem is noticed with other master data as well.
Please suggest the right methodology for upload of master data when
data to BW is sourced from two systems. How to retain the data in the
same Infoobject but at the same time maintain distinction between the
data from the two systems.
We donu2019t find any specific mention of such scenarios in the standard
documentation.
Will such a problem recur when we upload transactional data?
Regards,
Aslam KhanHi Aslam,
Please use some compounding attribute for your master data object like Sourcesystem ID. While loading the master data from different source systems... you should have two different flows to fill the same master data object. In each flow you can specify the Source system ID as constant value ... eg SS1 (Source system 1) and SS2(Source system 2) in each of the data flows. This should solve your issue without overwriting your master data
Thanks
Kishore -
InfoCube Modelling-Adding data from different ODS's on to the Infocube
Hi Experts,
I am new to SAP BI. I have a basic doubt on Modelling the InfoCube.
In our requirement, I have to populate data from 9 custom SAP Tables on to 9 ODS's. And, then take these data on to Infocubes.
And, they want to reduce the number of cubes as much as possible. So, I have to combine the data from different ODS's and build 2-3 Infocubes.
For Example.
I am going to combine 5 ODS's data on to 1 CUBE based on Delivery number...
there are 5 ODS with common key Delivery number. And, suppose I have added some set of fields from ODS1.
And, now when I add other set of fields from the second ODS, WHAT WILL HAPPEN TO THE 'Delivery Number' field ??
I will make it clear.
I have a record in CUBE already containing Fields- : Delivery no, field_a, field_b, field_c, field_d. Where the 'Delivery no =112333'. This record comes from ODS1.
Now, I want to add data data from ODS2, containg fields -: Delivery no, field_e, field_f, field_g, field_h.
And, what happens to the already existing record in CUBE with 'Delivery no = 11233'. ?
Will the value in this info-object get overwritten ?
OR.. will it combine the data from both the ODS's and show it as ONE record ???
Please advice ... How will I solve this scenario ?
Thanking You in Advance
Shyne SasimohananAnswer for your question and the suggestion.
the data will look like as given below
Delivery no, field_a, field_b, field_c, field_d, field_e, field_f, field_g, field_h
11233 1 1 1 1 0 0 0 0
11233 0 0 0 0 1 1 1 1
but the best way, according the design standards is creating another DSO on the top of all the DSO's and combine all the data in that DSO and send the data to Infocube. then the data will be shown as below.
Delivery no, field_a, field_b, field_c, field_d, field_e, field_f, field_g, field_h
11233 1 1 1 1 1 1 1 1
Regards,
Siva A -
Data from different databases in the same report.
Hi Everyone,
I am trying to build a reconciliation report in which I need to show the data from the source and target, side by side.
Source and target are both different databases, although being oracle only
Whenever a new data model is created, it gets attached to a data source and in the report we need to choose a specific data model.
Can we have data from different databases in the same report ?Yes, it is possible.
One way Is to use dataTemplates. There you can make queries from any number of different databases (The max I have done is 5).
It looks something like that:
<dataTemplate name="NameOfTemplate">
<dataQuery>
<sqlStatement name="Q1" dataSourceRef="Connection1">
<![CDATA[ select * from table1]]>
</sqlStatement>
<sqlStatement name="Q2" dataSourceRef="Connection2">
<![CDATA[ select * from table2]]>
</sqlStatement>
</dataQuery>
<dataStructure>
<group name="RESULT1" source="Q1">
<element name="P_FIRST_NAME" value="P_FIRST_NAME"/>
</group>
<group name="RESULT2" source="Q2">
<element name="P_DATE" value="P_DATE"/>
</group>
</dataStructure>
</dataTemplate>dataStructure is very important when you get data from different places, if you don't define those elements, then only the result from Q1 is shown.
The second possible way is to make as two different data models, each containing their own query and then set Main Data Set as concatenated SQL Data Source.
Best of luck,
Evelyn -
Select data from different database
hi,
may I know how to select data from different database?
for example,
I've 2 databases, OracleDB and OracleAR
Connect with OracleAR in SQL*Plus
select * from OracleDB.TableName
does Oracle support this kind of query?
how can I retrieve data from other database while im connecting with
other database?Hi,
Yes, it's possible. No, your syntax won't work.
First of all you have to define a DATABASE LINK inside the DB where you are already connected (in this case OracleAR). Read docs how to do that.
Second thing is the query. It will look like
SELECT * from TableName@<NameOfDatabaseLink>Greetings,
Guido
Maybe you are looking for
-
Cross browser testing : Modifier Keys playback actions not working in chrome and Firefox
Hi, In my work flow I have to select multiple items in list.So I have recorded 'Ctrl+Click' action to select list items.In Chrome and Firefox it is not selecting multiple Items. Even Ctrl+A,Ctrl+C,Ctrl+V also not working in chrome and Firefox.Complet
-
Getting apps from iTunes Library to iPhone after a restore.
Hello thanks in advance for your answers. I did search the forum but did not find an answer I could work with. My iPhone 3GS was acting up and I was told to restore it. Before restoring, I transfered purchases, synced the phone and created a back up.
-
Hi, I am developing a BPC solution for client. I have a requirement to lock certain cells so that user is not able to enter/change any values in these cells. I don't want to lock the entire sheet. Please advise if you've resolved similar requirement
-
I am making a year book for wich I have many Word files and pictures. I think the data merge should be a perfect way to bring all these different texts and photo's into my lay out. But the text i can not get it to work. I can get the pictures to work
-
Call Bpel process through HTTP get or post method
I need to call BPEL process from Mobile. In mobile we are using HTTP get or post methods. so can anybody tell me how to invoke BPEL(how to pass input to BPEL) by using HTTP get or post method. Vivek garg Edited by: 809104 on Dec 24, 2010 2:36 AM