Query to find unique combinations in a record set
I need to build a SQL to identify unique combinations
I have the following data structure -
I have a table to capture characteristics. Each characteristic can be associated with one or more attributes. Each attribute can be assigned one or more values
Characteristics are grouped under Characteristic set. A Family set is the highest level of grouping and is a group of characteristic sets.
I need to find the unique combinations within each family set
Ex.
Family Set - F1
contains Characteristic Set - S1 and S2
S1 contains characteristics - C1, C2.
S2 contains characteristics C3
C1 contains 1 attribute a1 which can have two values v1 and v2
C2 has 2 attributes a2 and a3 each of which can have one value say v2 and v3 respectively
c3 has 1 attribute a4 which can take 4 values say v4, v5, v6, v7
There is no pattern in terms of the number of values that can be assigned to an attribute, number of attributes for a characteristic, no of characteristics present in a set and number of set that can be associated with a family.
Need to know the max no of unique combinations in a family. One combination for the above ex would be F1S1C1A1V1+F1S1C2A2V2+F1S1C2A3V3+F1S2C3A4V4
Appreciate your help.
Thanks
Gopal
Hi David,
Thanks for you analysis
But these are not the combinations I am looking for. The details below may explain my requirement -
I am trying to build out a repository of flows supported by a product application.
Characteristics are features in the application. Each feature can have one or more input parameters or attributes. Each parameter can support multiple values
For ex. one characteristic could be
Define Item
Input parameters/attributes for item could be item class, item type etc. These attributes can take different values.
Item Source could support values like Manufactured, Procured etc
Item Type could support values like Raw Component, Finished Goods, Intermediates etc
Characteristics are stored in a table with ID and name ; Attributes stored in attributes table with ID and named joined with characteristics id .. Values are stored in values table with value id and value and joined with the attribute id
Based on the above ex., some of the supported combinations are Manufactured Component, Procured Component, Manufactured FG, Procured FG etc
Characteristic set is a group of related characteristics or features.
To take the above example further .. we can group Define Item + Define Product Structure as a characteristic set - Define Product
Define product structure say has one attribute stucture type which takes two values complex and simple
Characteristic set is stored in a set table with columns setid, setname, stepno, characteristic_id
Now the combinations become - Manufactured Component with Complex Structure, Manufactured Component with Simple Structure, Manufactured FG with Complex Structure etc ...
Family set are the supported flows in the application which groups the features to be executed.
For ex. a Product Definition flow will comprise of
Step 10 - Define Product (characteristic set)
Step 20 - Cost the Product (another characteristic set with say one characteristic - cost method which supports value standard and average)
Family set is stored in a family set table with column familyid, familyname, stepno, chstepid
Based on the above ex, the product definition flow will have several combinations such as
Combination 1 -
Step 10 - Define Mfg Component with Complex Structure
Step 20 - Cost the Component with Standard Costing
Combination 2 -
Step 10 - Define Mfg Component with Complex Structure
Step 20 - Cost the Component with Average Costing
and so on ...
I need to derive the total number of unique combinations for each family set / flow
Family Set > Step No > Characteristic Set (one characteristic set per step) > Step No > Characteristics (one characteristic per step) > Attributes (many attributes per characteristic) > Attribute value (many values per attribute)
The complexity is quite large as the product supports several flows which can be executed through many combinations. We need to build out the combinations as a product footprint and I am trying to have it mapped through an apex application.
Appreciate any help to map this information out.
Thanks
Gopal
Similar Messages
-
Query to find out 2 columns duplicate records
hi
how can i find out duplicate records from a table with 2columns duplicated
eg: emp_id, book_id duplicated together
emp_id book_id
001 A
001 A
001 B
in this case query should return ( emp_id: 001 , book_id: A ) because these are duplicated togetherSQL> with t as
2 (
3 select 1 a,'A' b from dual
4 union all
5 select 1,'A' from dual
6 union all
7 select 1,'B' from dual
8 )
9 select distinct a,b
10 from (
11 select t.*,count(1) over (partition by a,b order by a) cnt
12 from t)
13 where cnt > 1
14 /
A B
1 A
SQL> with t as
2 (
3 select 1 a,'A' b from dual
4 union all
5 select 1,'A' from dual
6 union all
7 select 1,'B' from dual
8 )
9 select a,b
10 from t
11 group by a,b
12 having count(*) > 1
13 /
A B
1 A -
Finding unique minimum value from a set of values
Hi.
I have numbers in three columns - H, P, X
I need to compare numbers in each row and find out the lowest value and find out if there is a unique lowest value.
For example, in row 2
H2=2, P2=5.4, X2=2. In this row, both H2 and X2 have the lowest number, 2. Hence, the lowest number is not unique. I want to fill cells H2 and X2 in Yellow and cell P2 in Red.
In row 3,
H3=2, P3=5.4, X3=4. In this row, H3 has the lowest unique number, 2. I want to fill cell H3 in Green and cells P3 and X3 in Red.
Green = lowest and unique
Yellow = lowest but not unique
Red = Not the lowest
I can use the MIN function to find the least number but I do not know how to identify the unique lowest number if available.
Thanks for your help.Select for example H2:H100. I will assume that the active cell within the selection is in row 2.
Color the cells yellow (this will be the default)
On the Home tab of the ribbon, click Conditional Formatting > New Rule...
Select 'Use a formula to determine which cells to format'.
Enter the formula
=OR($H2>$P2,$H2>$X2)
Click Format...
Activate the Fill tab and select red.
Click OK, then OK again.
On the Home tab of the ribbon, click Conditional Formatting > New Rule...
Select 'Use a formula to determine which cells to format'.
Enter the formula
=AND($H2<$P2,$H2<$X2)
Click Format...
Activate the Fill tab and select green.
Click OK, then OK again.
The formulas for columns P and X are similar, switching the roles of the three cells.
Regards, Hans Vogelaar (http://www.eileenslounge.com) -
Query to find the latest record with respect to the current status
Dear gurus
I have the following data in a table
Customernum
bkcode
reqtdate
Prevstat
currstat
The data will be like this
CustomerNum bkcode reqdate prevstat currstat
5900 1 03-Aug-12 0 1
5900 1 06-Aug-12 1 0
5900 5 22-Jun-12 0 1
If a customer has an issue to solved, a record is added with bkcode , register date and currstat will be 1
If the issue is resolved for the bookingcode,a new record is added, the currentstatus will become 0. and prev stat will show 1. Row no 1 and 2 reflects this case
If this table is queried for finding the unresolved issues. the output should be only the Last row of the above example. since issue with bookingcode 1 has been resolved
I have trying hard to get this thing confused what to use Lead or Max
Kindly guide meHi,
one way here:
WITH mytable(CustomerNum, bkcode, reqdate, prevstat, currstat)
AS
SELECT 5900, 1, TO_DATE('03-Aug-12', 'DD-Mon-YY'), 0, 1 FROM DUAL UNION ALL
SELECT 5900, 1, TO_DATE('06-Aug-12', 'DD-Mon-YY'), 1, 0 FROM DUAL UNION ALL
SELECT 5900, 5, TO_DATE('22-Jun-12', 'DD-Mon-YY'), 0, 1 FROM DUAL
SELECT CustomerNum, bkcode, reqdate, prevstat, currstat
FROM (SELECT a.*
, ROW_NUMBER() OVER (PARTITION BY CustomerNum, bkcode
ORDER BY reqdate DESC) AS rn
FROM mytable a
WHERE rn=1
AND currstat=1;
CUSTOMERNUM BKCODE REQDATE PREVSTAT CURRSTAT
5900 5 22-JUN-12 0 1Regards.
Al
Edited by: Alberto Faenza on Dec 18, 2012 5:23 PM
Changed again!! Previous logic was wrong -
Alternative to find unique records with 60 character in selection string.
Hi,
We have to find out the values from the Infoobject. When we try to display data from an master object, the maximum length of selection it accepts 45 characters only but we need to input data around 60 characters in selection.
Thing we tried:
1. Selecting complete data without any condition but it did not work due to large volume of data.
2. We tried to extract data from RSA3 but it did not work due to large volume of data.
Please suggest me alternative to find unique records with 60 character in selection string.
Regards,
Himanshu Panchal.This sounds a bit strange. Are you perhaps mistakenly storing text data incorrectly as the primary key of the master data? I can't think of any actual data that is that length to ensure usinqueness - even GUIDs are maximum 32 characters - but GUIDs don't count as actual "readable" data although you do need to be able to select it from time to time. Perhaps you have a super secure password hash or something like it ?
Also are you expecting to have a unique single record returned by your selection? To do this would in general REQUIRE that ALL the data is read because master data is not stored in the DB sorted by the data itself, but stored instead sorted by the it's SID.
When you say you are selecting data from master data, which master data tables are you using? I have been able to select data from very large MD table (15 million unique records) using SE16 with no problems. Just enter the table name, and before you execute just count the number of records - it helps to know what you want to end up with.
Have you tried using wild cards (the *) to preselect a smaller number of records : * a bit of your 60 character string *
If you are trying to select from a non-key field you will encounter performance issues, but you can still use the wildcards, and get a result.
Don't use RSA3 it was designed to make selections and group them into datapackets. It's not the same as selecting directly on the table in SE11 or SE16 -
Query to find records with more than 2 decimal places
I have written the below query to find records with more than 2 decimal places, but it is returning records with decimal places 1 & 2.
The datatype of the AMT column is NUMBER (without any precision).
SELECT amt FROM amount_table
WHERE substr(amt, instr(amt, '.')) LIKE '.%'
AND length(substr(amt, instr(amt, '.') + 1)) > 2Output:-
AMT
*41591.1*
*275684.82*
*64491.59*
*3320.01*
*6273.68*
*27814.18*
*30326.79*
131.8413635
162.5352898
208.5203816
8863.314632
22551.27856
74.716992
890.0158441
2622.299682
831.6683841
*1743.14*
2328.195877
3132.453438
5159.827334
3.236234727
37.784
ThanksOracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
create table amount_table
LINE_NUMBER NUMBER not null,
FEE_AMT NUMBER not null
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (60208, 41591.1);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (60213, 275684.82);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (60238, 64491.59);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (63026, 3320.01);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (59906, 6273.68);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (83111, 27814.18);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (83114, 30326.79);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112395, 131.8413634682);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112399, 162.5352898104);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112402, 208.5203815738);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112403, 8863.3146321954);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112406, 22551.2785551322);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112407, 74.716992);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112410, 890.015844079);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112411, 2622.2996817048);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112414, 831.6683840698);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112415, 1743.14);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112418, 2328.1958771886);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112419, 3132.4534379886);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112422, 5159.8273341686);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112423, 3.2362347266);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112426, 37.784);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112427, 198.7423503696);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112430, 0.7220848332);
insert into amount_table (LINE_NUMBER, FEE_AMT)
values (2112433, 12.4149375254); -
Query to find today's records?
Hello,
I am working on a little CF project and I need to find all
records that have today's date (time would also be included on the
field, in case that is relevant) What query would you use to
retrieve all records entered "today"? Thank you!No dateValue () has been part of Microsoft Access for a while
now. What version of Access are you using?
Are you using Access as a front end to MS SQL?
Anyway, there is something else going on.
Turn on all debugging options and post the EXACT, FULL, error
message here. -
Query to find out the time used by an user for an application
Hello All,
I want to know the query to find out the whole time used by the user for an application. Please view the below data
Employee:
SNO EMP_ID EMP_NAME EMP_DATE LOGIN_TIME LOGOUT_TIME
1 10 Visu 21-Nov-2010 06:30:00 07:30:00
2 10 Visu 21-Nov-2010 06:40:00 07:20:00
3 10 Visu 21-Nov-2010 06:50:00 07:50:00
4 10 Visu 21-Nov-2010 07:30:00 08:30:00
5 10 Visu 21-Nov-2010 09:30:00 10:30:00
By checking the above data we can say that the total time Visu used the application is
8.30 - 6.30 (From 1,2,3,4 records) = 2hrs
10.30 - 9.30 (Based on 5th rec) = 1hr
So the total time Visu used the application would be 3 hrs = 180 mins.
Could you please help me in getting the result from that data using a query?odie_63 wrote:
I think it may be solved with analytics too.
with t1 as (
select 1 sno,10 emp_id,'Visu' emp_name,'21-Nov-2010' emp_date,'06:30:00' login_time,'07:30:00' logout_time from dual union all
select 2,10,'Visu','21-Nov-2010','06:40:00','07:20:00' from dual union all
select 3,10,'Visu','21-Nov-2010','06:50:00','07:50:00' from dual union all
select 4,10,'Visu','21-Nov-2010','07:30:00','08:30:00' from dual union all
select 5,10,'Visu','21-Nov-2010','09:30:00','10:30:00' from dual
t2 as (
select emp_id,
emp_name,
emp_date,
to_date(emp_date || login_time,'DD-MON-YYYYHH24:MI:SS') login_time,
to_date(emp_date || logout_time,'DD-MON-YYYYHH24:MI:SS') logout_time
from t1
t3 as (
select t2.*,
case
when login_time < max(logout_time) over(
partition by emp_id,emp_date
order by login_time
rows between unbounded preceding
and 1 preceding
then 0
else 1
end start_of_group
from t2
t4 as (
select t3.*,
sum(start_of_group) over(partition by emp_id,emp_date order by login_time) grp
from t3
t5 as (
select emp_id,
emp_date,
min(login_time) login_time,
max(logout_time) logout_time
from t4
group by emp_id,
emp_date,
grp
select emp_id,
numtodsinterval(sum(logout_time - login_time),'day') time_spent
from t5
group by emp_id
order by emp_id
EMP_ID TIME_SPENT
10 +000000000 03:00:00.000000000
SQL> SY. -
How to find out insertion time of records in an oracle table
Hi everybody,
I have a table with about 50,000 records in my Oracle database and there is a date column which shows the date that each record get inserted to the table, for example 04-Aug-13.
Is there any way that I can find out what time each record has been inserted?
For example: 04-Aug-13 4:20:00 PM. (For my existing records not future ones)
I searched over the internet and find some results but none of them seem to be practical.
Thanks for your help.I have a table with about 50,000 records in my Oracle database and there is a date column which shows the date that each record get inserted to the table, for example 04-Aug-13.
Is there any way that I can find out what time each record has been inserted?
For example: 04-Aug-13 4:20:00 PM. (For my existing records not future ones)
First you need to clarify what you mean by 'the date that each record get inserted'. A row is not permanent and visible to other sessions until it has been COMMITTED and that commit may happen seconds, minutes, hours or even days AFTER a user actually creates the row and puts a date in your 'date column'.
Second - your date column, and ALL date columns, includes a time component. So just query your date column for the time.
The only way that time value will be incorrect is if you did something silly like TRUNC(myDate) when you inserted the value. That would use a time component of 00:00:00 and destroy the actual time. -
Query to find the Salary table details HRMS 11i
I am looking query to find the persons salary details in Oralce EBS 11i.
I tried the below query bu it didn'ty work.
SELECT papf.employee_number
,papf.full_name
,pj.NAME job
,haou.NAME ORGANIZATION
,ppp.proposed_salary_n salary
FROM per_all_people_f papf
,per_all_assignments_f paaf
,per_jobs pj
,hr_all_organization_units haou
,per_position_definitions ppd
,per_all_positions pap
,per_pay_proposals ppp
WHERE 1 = 1
AND SYSDATE BETWEEN papf.effective_start_date AND papf.effective_end_date
AND papf.current_employee_flag = 'Y'
AND papf.employee_number IS NOT NULL
AND paaf.person_id = papf.person_id
AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date
AND paaf.job_id = pj.job_id
AND paaf.organization_id = haou.organization_id
AND paaf.position_id = pap.position_id
AND pap.position_definition_id = ppd.position_definition_id
AND ppp.pay_proposal_id = (SELECT MAX (pay_proposal_id)
FROM per_pay_proposals
WHERE assignment_id = paaf.assignment_id)
In our case all the below tables have 0 records..
select count(*) from PER_PAY_PROPOSALS ;
COUNT(*)
0
select count(*) from pay_element_entry_values_f;
COUNT(*)
0
select count(*) from PAY_ELEMENT_ENTRY_VALUES_F;
COUNT(*)
0
select count(*) from PAY_ELEMENT_ENTRIES_F;
COUNT(*)
0Hi,
Your results clearly states that there is no salary data which is been captured as well as there are no element entries which are assigned to any assignment.
Please do the below which will insert records in salary as well as element entries table:
1. Add a salary proposal to any active employee (People Enter and Maination --> Search for any employee --> Assignment --> Salary) - This will insert a record in PER_PAY_PROPOSALS table
2. Add an element entry to any active assignment (People Enter and Maination --> Search for any employee --> Assignment --> Entries) - This will insert a record in PAY_ELEMENT_ENTRIES_F and PAY_ELEMENT_ENTRY_VALUES_F table
Hope this clarifies.
Thanks,
Sanjay -
Query to find customers who have not purchased anything
I have a query to find customers who have purchased what we call consumables (using item property) over a given period:
SELECT T0.CardCode, T0.CardName, T0.DocDate, T0.DocTotal, T1.ItemCode, T1.Dscription,T1.quantity, T2.ItmsGrpNam
FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry, OITG T2
WHERE T0.DocDate BETWEEN '[%0]' AND '[%1]' AND T1.ItemCode like '2ssy%' AND T2.ItmsGrpNam = 'consumable'
I have another to show customers who have a particular type of equipment:
SELECT T0.manufSN,T0.itemName, T3.Name, T2.Address, T2.Street, T2.Block, T2.City, T2.County, T2.ZipCode
FROM OINS T0 INNER JOIN OCRD T1 ON T0.customer = T1.CardCode INNER JOIN CRD1 T2 ON T1.CardCode = T2.CardCode Inner Join OCPR T3 ON T0.ContactCod = T3.CntctCode
WHERE T0.manufSN like 'P%' AND T2.AdresType= 'S'
What I would like is to find those customers who have this equipment (query 2) but who have NOT purchased and consumables in say the last year.
I have tried using Excel by finding duplicates and taking those in query 1 from those in query 2 but it's very messy.
Has anyone done anything like this or got any good ideas?
ThanksHi Ralph,
Well, I enjoy teaching, so let's start at the beginning. SQL is a fairly full-featured language, and it supports recursion and nesting. That's why the books online often describe elements of the SQL statements as "expression" - it may be more than a field or a simple function occurring there. Nesting is the little puppy we used here.
Now, in your first post, you said: "What I would like is to find those customers who have this equipment (query 2) but who have NOT purchased and consumables (query 1) in say the last year."
So, our common point between the two queries is the customer, the CardCode. That's what this part does: F0.CardCode = T0.Customer. In my internal convention, I used F for Filter. So we only want the results in the filter where the CardCode matches the CardCode/Customer from the main query tables. It's the sole contact point between the two queries.
You also said you wanted only the items where they had purchased no consumables, which basically translates into: a count of the records equals 0. Now, since all we're interested in from the second query, the consumables query is how many records we returned, we get rid of all the columns except for one that we apply a COUNT to. After that, it's a simple criteria: the result of the second query has to equal 0. This is how the criteria looks after you take out all the details and put only the important brackets in: (SELECT COUNT...FROM...WHERE...) = 0.
This might be confusing at first, because most of the time we return recordsets from queries, but a standard feature of SQL is to return a value of any data type if the query returns a single row and a single column. This wouldn't work at all if we had more than one column in our nested query (or would require lots of tweaking), and although it returns a number of results in the complete process of the whole SQL statement, it only returns one result for each row.
Regards,
Mark Dielmann
Edited by: Mark Dielmann on Nov 13, 2009 12:30 PM - Forum doesn't support advanced formatting on answered questions.
Edited by: Mark Dielmann on Nov 13, 2009 12:32 PM - Salutations and more formatting.
Edited by: Gordon Du on Nov 13, 2009 10:35 AM - There are maximum characters limitation for correct format -
Problem in finding proper combination
Hi all,
I am not able to find proper combination in ie03 for equipment master in class overview for char description(ATBEZ) and value(ATWRT)...i am getting all char des. for class but not able to find value....only for some char des not for all.i am using below query:For time being i am using so many joins
read table lt_char into ls_char index lv_index.
select ctATBEZ cATWRT
into corresponding fields of ls_char
from ( CABNT AS ct
LEFT OUTER JOIN CAWN AS c ON ctATINN = cATINN
INNER JOIN CABN AS cb ON cATINN = cbATINN
INNER JOIN KSML AS ks ON cbATINN = ksIMERK
INNER JOIN KLAH AS kl ON ksCLINT = klCLINT )
for all entries in lt_class_overview
where ct~SPRAS = 'EN'
and kl~CLASS = lt_class_overview-CLASS .
Thanks
kiran
Edited by: kiran162 on Mar 25, 2011 7:32 PMhi,
The table TVAUT provides order reason and order reason description.
Thanks,
Kasiraman R -
Disadvantage of 'QUERY ALL RECORDS' set to YES in DATA BLOCK
Dear all,
Can any one tell me disadvantage of 'QUERY ALL RECORDS' set to YES in DATA BLOCK. I have made a datablock 'QUERY ALL RECORDS' set to YES becoz of requirement 'restrict duplicate data entry'.For your information
my datablock is multi record.
Than YouWhat if you have 1,000,000 records in your table and you query all records. Ouch!
restrict duplicate data entryThat is standard database functionality: primary or unique key on the table. -
Create Query with New Field combined with Existing InfoCube Data (BW 3.5)
Hi Everyone!
How would you recommend I handle the following situation?
I have a custom InfoCube (which I will call ZCUBE) that has been deployed to production. The business would like a new query that combines Current Standard Price along with data currently stored in ZCUBE.
Now, Current Standard Price is uniquely identified by the Material and Plant to which it is associated. These InfoObjects (Material and Plant) are characteristics of ZCUBE.
I am strugglig since the business will not allow any changes in the design of the InfoCube (i.e. add any new characteristics/key figures).
Is there a way to combine the two data sets? I attempted to use a Multi-Provider using ZCube and a custom ODS, but had no luck since the characteristics were so different. (ZCUBE has almost 50 characteristics defined)
I also have tried adding the attribute Standard Price to InfoObject Plant Material (0MAT_PLANT) but that was not helpful since 0MAT_PLANT is not included in ZCUBE.
From what I can tell I should create an InfoSet using ZCUBE and potentially a new ODS, but that isn't going to work since you can create InfoSets using InfoCubes in BW 3.5.
So... I am at a loss now. Any assistance would be appreciated!
Thanks-
NathalieThank you very much for your responses!
I went ahead and created a custom ODS (Z_ODS) that contained the keys Material and Plant and had the data field Standard Price. I then created a Multi-Provider to sit on top of the custom cube and the custom ODS. Unfortunately, I am not getting the correct response since the Multi-Provider returns a union of the two infoproviders.
Z_ODS
0Material (key)
0Plant (key)
Standard Price
Z_Cube
0Material (char)
0Plant (char)
Char1 (char)
Char2 (char)
Char3 (char)
0FiscalYear
Key1....
MultiCube
0Material = 0Material
0Plant = 0Plant
Char1
0FiscalYear
Standard Price
Key 1
If I run a query just using Material and Plant in the return, the Standard Price and Key1 are returned correctly. If I include Fiscal Year in the query, the standard price is returned in a row associated to a blank Fiscal Year. See example below.
Query 1
Plant1 Material1 StandardPrice1 Key1
Plant2 Material2 StandardPrice2 Key2
Query 2
FiscalYear2009 Plant1 Material1 #(blank StandardPrice) Key1
FiscalYear2009 Plant2 Material2 #(blank StandardPrice) Key2
FiscalYear# (blank) Plant1 Material1 StandardPrice1 #(Blank Key1)
FiscalYear# (blank) Plant2 Material2 StandardPrice2 #(Blank Key2)
I know I should be using an InfoSet, but we are on BW 3.5... so I can't include a cube in an InfoSet.
I believe that the solution will be to add all relevant characteristics to the custom ODS... but that is going to be a much bigger challenge then originally expected. Please let me know if I am missing something... a silver bullet would be much appreciated
Thanks everyone!
Nathalie -
Query to find machines downloading from which DP
We have large environment with almost 100 Secondary sites.
All these secondaries are DP's as well.
Need to know any query to find, to which DP the machine is looking up to download the package? Heartbeat discovery happens on each DP i.e, secondary site. I need to know on which particular Secondary site the heartbeat for a machine is happening.
System Security analyst at CapGPer Garth's answer, DP usage by clients isn't something explicitly tracked as it's truly a dynamic determination made every time the client needs content.
For your last statement, not sure what you are after: "I need to know on which particular Secondary site the heartbeat for a machine is happening." Heartbeat discovery records are created by the clients and have nothing specifically to do with secondary
sites. The clients do submit these to their management point though which is the MP of the secondary site in cases where the clients are using a secondary site.
Jason | http://blog.configmgrftw.com
Maybe you are looking for
-
How turn off IE Pop up blocker on local testing
Is there a way to turn off IE Pop up blocker on local testing? I tried to turn it off and allow the URL but since it reside on my local machine it won't let me. Its really annoying having to click and allow each time I test my page in the browser. I
-
#include Doesn't work in AE CS4
Anyone have a work around for the "#include" javascript in CS4. Used an external file to drive some text in my comp in CS3, but the same script doesn't work in CS4. I even downloaded a comp from the Graymachine.com website to check and it didn't work
-
LDAP BC QUESTION ABOUT OBJECT CLASSES
Hi i am working with a bpel and its ldap-bc, when i create an entry in my ldap through the bpel it has all the object classes from the attributes i set. for example if i set cn and sn attributes then my entry has the object class person; i want to kn
-
Class exclusion in AS3 in Flash IDE
Hi, I've been looking high and low for a way to exclude class file from compiling into a swf on publish, similar to the functionality available when publishing AS2 apps (outlined here: http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/ht
-
I've scoured the Adobe Forum and Google for an answer with no luck... On the first frame of my movie I'm loading an external swf onto my stage at the root level (which matches the stage dimensions): loadMovieNum("movie1.swf", 0); I then have another