two relationships between two tables
Hi allI created a cube in my db (using OWB) of two relationships to my time dimension. A relationship shows the start time of a process, that the other represents the date of termination or end.
example of the cube:
Fact1
Fact2
Dim_Time1
Dim_Time2
where Dim_time1 and Dim_Time2 link to the same dimension.
Unfortunately I have trouble this manually import in obiee administrator. I imported the fact table and the dimension of the physical layer table. Can I move to the business layer and create the two joins between two tables. But the overall consistency check up a mistake, I shouldn't have two relationships between two tables and remove a foreign key.
What I am doing wrong?
Kind regards
Knut
Knut,
In your example, you should have a time dimension in the phyiscal layer and alias of this 2 x, for Dim_time1 and for Dim_time2, in this way aliases are separate tables as the BI server point of view and you define releations separate on the same table, you can define specific to each alias dim relevant time joins.
In this way, you will have two time decreases intensity in MDB layer also, has 'Dim-Start Time' and a ' Sun - term time "or similar.
Hope this helps,
Alastair
Tags: Business Intelligence
Similar Questions
-
How to find the relationship between the tables
Hello
I am working in Oracle R12
How to find the relationship between these tables INV_MIN_MAX_TEMP, po_requisition_lines_all and Per_all_people_f
These two tables, I joined with po_requisition_lines_all and Per_all_people_f To_person_id of PO and anyone HR table but I can't able to join this table with other tables INV_MIN_MAX_TEMP
concerning
Srikkanthsolved
-
SQL Developer / Data Modeler - lost visual on the relationships between the tables
11 GR 2 DBMS / SQL Developer 4.0.3
In SQL Developer, using the Data Modeler I lost the visuals 'lines' (one to several, etc.) which show the PK to FK relationship between different tables from one of my patterns of relationship. I know they exist - I'm sure it's my fault--put out something that I don't have.
I looked on the web but without SOAP. Can anyone tell me if it is a property and (as applicable) how to re - turn on the property.
Thanks in advance.
Barry D.
Sorry - I found it - the relationship lines were VERY clear yellow and I could barely see it.
Article by Jeff Smith on the model configuration screen has been very useful in this regard.
Thank you Jeff (again).
Barry D
-
Hello
We strive to integrate the OPA attributes to the Cloud Service Oracle tables to store session data for the customer portal users.
We tried mapping the attributes of the OPA with relevant tables of cloud Service Oracle? Is there any installation of additional data to create to retrieve the session data for the particular user / contact?
We managed to save tha data in arrays of cloud Service for users of ananymous and also well regarding customers portal users but to preconfigure data do we need to do any additional configuration / mapping to the contact table?
Please help on the establishment of the relationship between the contact and Global (new table created in cloud Service) tables.
Thank you
Vivek
Hi Vivek,
To load data from the Contact in the the OPA policy template, you must configure the widget of the OPA. For instructions, see the following articles:
- Incorporate an interview that uses data portals in Oracle Service Cloud Customer Portal
- Deploy and configure the sample OPA widget
- Insert the widget to sample in a customer portal page
Obviously, you need to do the mapping in OPM as well, but even if the mapping is correct, you will not be able to load the Contact data unless the widget of the OPA is implemented.
See you soon,.
Jasmine
-
Relationship between these tables 3 interface
Hi guys am new to EBS and m trying to get /API knlowledge Tables Interface of the inventory.
Please told me
1 MTL_TRANSACTION_INTERFACE
2 MTL_TRANSACTION_LOTS_INTERFACE
3 MTL_TRANSACTON_NUMBERS_INTERFACE
What is the relationship of these 3 tables?
What is the use of table 2.3 and why they made 1 correspondence?
What are the base tables on the 1 interface tables. ?
Kind regards
Shakeel khanFor all transactions you're trying to interface, you enter one record mtl_transactions_interface.
If the item you are trying to interface is controlled series, you must enter records in the mtl_serial_numbers interface. If there are several related series that operations (If quantity > 1) then you will have multiple records.
Similarly, if the item is very much controlled, you will enter records in the mtl_lot_numbers_interface.You attach all by the transaction_interface_id column.
Hope that answers your question
Sandeep Gandhi
Independent consultant
513-325-9026. -
Hello.
Is it possible to fill in the values (execute_query) several blocks where there is absolutely no relationship between the tables in the same form?
There is no relationship between the tables. All are separate tables with different columns. None of the names of columns match
& also the values of the columns do not match. I created blocks for all tables. When I click on run, only the first block of values (first picture) is filled.
other values of block did not get filled. Is it possible to fill in the values for all of the blocks where there is not relationship, or when there is no master block?
Is there something I can do for this? It is mandatory for me to put all the blocks in a single form.
Help me, please. Please do not respond.
Thank you.
Create a key-EXEQRY-trigger on the block where 'throw you' the quers. In it, put something like
GO_BLOCK ('BLOCK1');
EXECUTE_QUERY;
GO_BLOCK ('BLOCK2');
EXECUTE_QUERY;
...
-
How do good group when the join of two tables?
Hi all
The slot using join query, I'd like to get an output will depend on the number of 'Classes' (for example: if I want the result for 15 classes, then, he must return to 16 lines from 0 to 16).
I n query below, I use the group as
."GROUP BY report_parameters.report_parameter_value "
Error that says "this is not group by expression.
If I have commented here, here he returns 320 rows instead of 16 ranks.
Could someone help me?
Thank you.SELECT 'SUM(' || 'CASE ' || 'WHEN edr_class_by_gvw_report_data.bin_id >= ' || report_range_parameters.report_parameter_min_value || ' AND edr_class_by_gvw_report_data.bin_id < ' || report_range_parameters.report_parameter_max_value || ' THEN edr_class_by_gvw_report_data.bin_value ' || 'ELSE 0 ' || 'END ' || ') "Class ' || report_parameters.report_parameter_value || '" ' FROM report_parameters JOIN report_range_parameters ON report_parameters.report_parameter_id = report_range_parameters.report_parameter_id WHERE report_range_parameters.report_parameter_id = 2316 AND report_range_parameters.report_parameter_group = 'GVW_GROUP' AND report_range_parameters.report_parameter_name = 'GVW_NAME' AND report_parameters.report_parameter_group = 'CLASS' AND report_parameters.report_parameter_name = 'CLASS' GROUP BY report_parameters.report_parameter_value ORDER BY report_range_parameters.report_parameter_min_value ASC;
Published by: user10641405 on June 11, 2009 12:23
Published by: user10641405 on June 11, 2009 12:30Hello
Let me explain what I'm trying to do.
I want to write a query that produces this output:SUM(CASE WHEN edr_class_by_gvw_report_data.gvw >= 0 AND edr_class_by_gvw_report_data.gvw < 5 THEN edr_class_by_gvw_report_data.gvw_count ELSE 0 END ) "Class 0" SUM(CASE WHEN edr_class_by_gvw_report_data.gvw >= 5 AND edr_class_by_gvw_report_data.gvw < 10 THEN edr_class_by_gvw_report_data.gvw_count ELSE 0 END ) "Class 1" SUM(CASE WHEN edr_class_by_gvw_report_data.gvw >= 10 AND edr_class_by_gvw_report_data.gvw < 15 THEN edr_class_by_gvw_report_data.gvw_count ELSE 0 END ) "Class 2" SUM(CASE WHEN edr_class_by_gvw_report_data.gvw >= 15 AND edr_class_by_gvw_report_data.gvw < 20 THEN edr_class_by_gvw_report_data.gvw_count ELSE 0 END ) "Class 3" SUM(CASE WHEN edr_class_by_gvw_report_data.gvw >= 20 AND edr_class_by_gvw_report_data.gvw < 25 THEN edr_class_by_gvw_report_data.gvw_count ELSE 0 END ) "Class 4"
using data from tables report_parameters and report_range_parameters, which are like your tables.
Right now, I don't have report_parameters and report_range_parameters tables.
I need to create and put the data in them that is like your data.
If I have the same data you have, and if I can produce the results that you want from the data, so I'll post my query, and you can use it.I do not see how to INSERT statements like this:
INSERT INTO "class_by_gvw_report_data" SELECT site_id, site_lane_id, site_direction_id, site_direction_name, bin_start_date_time, bin_end_date_time, bin_id, bin_value FROM "class_by_gvw_bin_data"
can help me. Is the table "class_by_gvw_report_data" invloved in this problem? Is this the same as report_parameters or report_range_parameters? If Yes, I need to create it, and put the data into it, so to use the above statement I need all data of "class_by_gvw_bin_data".
I need to have something that I can run, so that my paintings will have sample data which would result in the desired output.
I need the CREATE TABLE statements, but I can probably guess what they should be if I have your data. If this isn't the case, I will seek further clarification later.
I can't guess what your data, and why is it causing problems. If I just do a few data, LII is virtually no chance he's going against hepatitis has a relationship between the tables that are causing you problems of the same nature.Please post INSERT statements that I can run and produce the same type of data that is causing problems.
-
Relationship between a Tablespace and the BLOB type columns
Hello
When I import using cmd imp, all tables were imported except the table that has columns of type BLOB. After some pain in my head, I noticed that it was because of tablespace (I don't have the source table space in my destination).
Can someone explain the reason for the relationship between the tables BLOB and tablespaces (because all other imported tables)?
Oracle Version: 10.2.0Check this thread
problem importing table with the blob data type
http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:::P11_QUESTION_ID:378418239571} -
Use a where clause clause if there is a relationship between two tables
Is it possible to use a where clause clause if there is a relationship between two tables.
I have a relationship between two tables:
And a.customer = b.customer (+)
If b.customer exists in a.customer I would add this in where clause
And b.info = 'X '.
But how?It's the outer joins by chance?
If so, why not just:
and b.customer(+) = a.customer and b.info(+) = 'X'
BTW, I put the two "b" on the left column to make it easier to read. Some people mix that makes me crazy, but makes no difference to the query.
-
Using the built-in function in the definition of the relationship between the two blocs.
Hello
Is it possible to define a relationship between two shaped blocks (db based)...
I have a main table such as:
Table: strdet (passes: ms varchar2 (10), det varchar2 (10))
materialized view: mv (passes: det varchar2 (10), sum_a number (5), sum_b number (5))and data:
Is it possible somehow?
strdet
-------------------------
ms det
1 1.1
1 1.2
1.1 1.1.1
1.1 1.1.2
1.1.1 1.1.1.1
....
e.t.c.
and for the mv
--------------------------
det sum_a sum_b
1 500 300
1.1 100 200
1.2 540 150
................
e.t.c.
I have tried some versions of relations so as to create a master-detail relation(in reality , the two blocks are connected via ms.det
->mv.det... but the relation is one-to-one....) . I want a result such as:
Master block
------------------------------
1.1
Detail Block
------------------------------
1.1.1
1.1.2
....
e.t.c.
Note: I use Dev6i and Dev10g...
Thank you
SIMI think you need to use a query clause for the retail block. If you join the main table and the mv on the DET column, so you can give each line in detail, block a MS (from the main table) column that you can use in the relationship.
-
Hello
I want to join the two tables to retrieve the data from the columns of the two table passing parameters to the join query. Tables have primary and foreign key relationships
Details of the table
Alert-1 - AlertCode (FK), AlerID (PK)
2 AlertCode-AlertDefinition-(PK)
Help, please
----------
Hi Vincent,.
I think that you have not worked on adf 12.1.3. In adf 12.1.3 you don't have to explicitly create the association. When you create the EO to your table, Association xxxxFkAssoc, will be created by ADF12.1.3 for you automatically. Please try this and do not answer anything... You can also follow the links below. I solved the problem by using the following link
---
-
Hello
I have two tables USERS and LISTS:
And I want that there is a comparison between these two tables executed when user table USERS connect to the application.
They must compare the columns between the SEXES and AGE and if some users have the same attributes in its ranks as in a line in the table LISTS (here is unique each line) so that the user gets in his line in the column 'LIST_ID' the ID of the line with which attributes between GENDER and AGE.
Example:
USERS TABLE: exampleuser | Boby | McGrahem | Male | 18. -------
LISTS OF TABLE: 28 | examplelist | Male | 18
Once the Login of the user Boby gets in its ranks the ID = 28 because the SEX and AGE corresponds to the row of table LIST:
Result:
USERS TABLE: exampleuser | Boby | McGrahem | Male | 18. 28
CREATE TABLE "USERS" ( "USERNAME" VARCHAR2(15) NOT NULL ENABLE, "FORRNAME" VARCHAR2(15) NOT NULL ENABLE, "SURNAME" VARCHAR2(15) NOT NULL ENABLE, "GENDER" VARCHAR2(10) NOT NULL ENABLE, "AGE" NUMBER, "LIST_ID" NUMBER, CONSTRAINT " USERS_PK" PRIMARY KEY ("USERNAME") USING INDEX ENABLE
CREATE TABLE "LISTS" ( " LIST_ID" NUMBER NOT NULL ENABLE, " LISTNAME" VARCHAR2(50) NOT NULL ENABLE, "GENDER" VARCHAR2(10) NOT NULL ENABLE, "AGE" VARCHAR2(3) NOT NULL ENABLE, CONSTRAINT " LISTS_PK" PRIMARY KEY ("LIST_ID") USING INDEX ENABLE
I need help for coding this, if someone be so good.
This is my essay:
DECLARE v_listid varchar2(100); BEGIN SELECT LIST_ID into v_listgid FROM LISTS WHERE GENDER = (SELECT GENDER FROM USERS WHERE UPPER(TRIM(USERNAME)) = UPPER(TRIM(:APP_USER))) AND AGE = (SELECT AGE FROM USERS WHERE UPPER(TRIM(USERNAME)) = UPPER(TRIM(:APP_USER))); UPDATE USERS SET LIST_ID = v_listid WHERE UPPER(TRIM(USERNAME)) = UPPER(TRIM(:APP_USER)); END;
I'd like to REALLY shy away using the USER name as the primary key, because the fact that users can create duplicate user names... YOU should NEVER base a PK on the entry of user, the better to let the database create and maintain this element of date...
FIX:
UPDATE to users U
SET List_Id = (SELECT List_Id OF lists L WHERE L.Gender = U.Gender and L.SOMENUMBER = U.SOMENUMBER) AND
Upper (U.UserName) = UPPER(:APP_USER);
Don't really want to cut the strings, Oracle which will do since they are of type varchar2 columns...
Thank you
Tony Miller
Software LuvMuffin
Ruckersville, WILL -
I got a prob while creating a link/link between two tables in a jdeveloper11g
Hi guys...
I got a prob while creating a link/link between two tables in a jdeveloper11g, help me.
I use two table employee, Department.
Unfortunately there is no primary key and foreign key in these tables.now i updated on those of table structure.
I want to create a form like it should be a link between the Department data, i.e. data and employee while the Department is changed then only present corresponding employees in this block...
Table structure as follows
Employee:
-------------------
employe_id,
name,
Department,
GR,
Date of birth
Department of justice
Department:
--------------------
department_id,
department_name;
Note: in the employee department table is the same as in the department table department_id...
So, you want to build master / detail between Department & sub_departments?
In the same way, create a new, yet another link between departments & sub_departments, so that the connection is:
Department.Department_Id = sub_departments.department_id
-
Sharing relationship between the two sectors of activity?
Hello
We have two areas of activity: sales and sales with gross Profits.
Turnover with gross Profits has some columns that don't have sales business district.
Is it possible to share a relationship between these two trades if the columns used in the report are the same, without any possible problems?
Thank youHello
Is it possible to share a relationship between these two trades if the columns used in the report are the same, without any possible problems?
No, a workbook using elements of one or more folders. The folders used by the workbook is not easily editable. You can of course have the folders used by the workbook in both sectors of activity, but then you'd have 2 versions of the file in the business district, one with additional columns and the other without.
Rod West
-
The most elegant way to get the difference between two tables - not least!
Hello
Simplified example of what I'm trying to achieve - I have two tables ORIGINAL and REVISED.
My aim is to compare the two, such as; -
When there is data in the two tables I get the difference between the Budget column, and if there is no difference, so I don't want no lines.
When data exists in the ORIGINAL, but not in review, I want to the inverse of the current value of the Budget column.
Where the data exist in REVISED I want the REVISED value.
I can see how I can do this, see below, but is there a more elegant solution?
Data for the ORIGINAL table
Data for the REVISED tableselect '801040' entity, '2186' expense_type, 234000 budget from dual union all select '801040' entity, '3001' expense_type, 1000 budget from dual union all select '801040' entity, 'P132' expense_type, 34000 budget from dual union all select '801040' entity, 'P135' expense_type, 43000 budget from dual
Desired outputselect '801040' entity, '2186' expense_type, 235000 budget from dual union all select '801040' entity, 'P132' expense_type, 34000 budget from dual union all select '801040' entity, 'P139' expense_type, 56000 budget from dual
ENTITY EXPENSE_TYPE DIFFERENCE
------ ------------ ----------
801040 2186 1000
801040 3001-1000
801040 P135-43000
801040 P139 56000
5 selected lines.
Code current to achieve this, is there a better way?
Thanks a lot for your comments,.select original.entity , original.expense_type , (nvl(revised.budget,0) - original.budget) as difference from original , revised where original.entity = revised.entity(+) and original.expense_type = revised.expense_type(+) and (nvl(revised.budget,0) - original.budget) != 0 union all select revised.entity , revised.expense_type , revised.budget as difference from revised where not exists (select 'x' from original where original.entity = revised.entity and original.expense_type = revised.expense_type) and revised.budget != 0
Robert.
Published by: Robert Angel on January 17, 2012 03:31 to change is not equal to! = - Thanks for the heads upSQL> with original 2 as 3 ( 4 select '801040' entity, '2186' expense_type, 234000 budget 5 from dual 6 union all 7 select '801040' entity, '3001' expense_type, 1000 budget 8 from dual 9 union all 10 select '801040' entity, 'P132' expense_type, 34000 budget 11 from dual 12 union all 13 select '801040' entity, 'P135' expense_type, 43000 budget 14 from dual 15 ) 16 , revised 17 as 18 ( 19 select '801040' entity, '2186' expense_type, 235000 budget 20 from dual 21 union all 22 select '801040' entity, 'P132' expense_type, 34000 budget 23 from dual 24 union all 25 select '801040' entity, 'P139' expense_type, 56000 budget 26 from dual 27 ) 28 select * 29 from ( 30 select nvl(o.entity, r.entity) entity, 31 nvl(o.expense_type, r.expense_type) expense_type, 32 nvl(r.budget,0) - nvl(o.budget,0) budget 33 from original o 34 full join revised r 35 on o.entity = r.entity 36 and o.expense_type = r.expense_type 37 ) 38 where budget <> 0 39 / ENTITY EXPE BUDGET ------ ---- ---------- 801040 2186 1000 801040 P135 -43000 801040 3001 -1000 801040 P139 56000 SQL>
Maybe you are looking for
-
Computer hangs when installing bluetooth driver
Hello I bought a bluetooth USB dongle with toshiba bluetooth software. The installation hangs at the end of the driver installation progress bar. I use Windows XP c. 5.1 SP2. Comm ports currently in use are 1,2,3,5 and one called 'BT Port' (COM65) wh
-
Activation of calling function WhatsApp
So I was wondering if anyone of you guys have the calling function enabled on whatsapp and if could you please call me to activate it? Then PM me and I will reply with my number, I'm not posting here cos I don't want the world to see that it
-
Missing icons in fixed positions
Hello I have a dual sim Moto G 2nd generation phone, and I am facing a problem of user interface. If I replace any icon 'standard', after the reboot, the will is missing. Let me explain better: by default, it is the Chrome icon in the navigation at t
-
Can see no power anywhere, but on my dvd player
Today, my office was driven out of the House and landed on concrete, my hard drive was on the lawn (if there was a softer landing).I put everything back together, but now when I turn on, the only thing I can see all power is my dvd player. No fans ru
-
problem with several graph XY axes
Hallo, I'm tracing different variables in the same plot with several axes. I have the following problem (see attachment) the y axis secondary on the right side of the plot has a large area of him and one of the other secondary axis falls right above