Defining a level without a natural key
Hi All,
How can i define a level that only has a description ... I only need to have a surrogate key and the description of the level ... there's no natural key
is it possible?
I tried to make this trick and mark the description as the business natural key ... but then when I tried to use this dimension in a mapping i got an error stating that the dimension doesn't have an updatable field which is a must
Similar Messages
-
Subquery in IF statement in trigger, without using foreign keys
Hello,
I'm investigating ways of writing a subquery in an IF statement, which is placed inside a trigger.
I wanna write smth like IF (:new.jazz not in (select goldies from T where ... )) etc. I don't know whether the fact that the IF is in a trigger adds some additional restrictions. (Does it?)
So far I found the solution described here: SubQuery Comparison in If Statement which I find a bit tacky, I could have the 'cooleststarinthegalaxy' instead of 1 and seems you need to do extra light, but still extra lifting.
I also read about the possibility of using MERGE, which I'm currently researching.
Is there any other way?
Thanks
Edited by: BluShadow on 14-Nov-2012 13:37
fixed link
Edite by me: the question is how (if possible) to do this without a foreign key.
Edited by: questioningq12 on Nov 14, 2012 6:11 AM
Edited by: questioningq12 on Nov 14, 2012 6:13 AMHi,
questioningq12 wrote:
Say I have tables A(namea varchar(10)), B(nameb varchar(10)), and B contains tuples ('1stname','2ndname').
I wrote a trigger before insertion, for each row, on table A. For a tuple t to be inserted, it should check whether t.namea is in the set of values nameb from B.
E.g., INSERT INTO A VALUES('1stname') should work. But INSERT INTO A VALUES ('3rdname') should fail. You can use a foreign key constraint for that.
If the tables already exist, and b.nameb is declared as UNIQUE (or PRIMARY KEY), then you can say:
ALTER TABLE a
ADD CONSTRAINT a_namea_fk
FOREIGN KEY (namea)
REFERENCES b (nameb)
;If you had a situation where you really needed to query a table in PL/SQL, and you weren't sure if the query would find anything, you could put the query in its own BEGIN ... EXCEPTION block, and test for NO_DATA_FOUND.
If you're just checking to see if a row exists or not, you can always write a query that is guaranteed to return exactly 1 row, like this:
BEGIN
SELECT COUNT (*)
INTO x
FROM b
WHERE nameb = :NEW.namea
AND ROWNUM = 1;
IF x = 0
THEN
... -- print msgs, raise exceptions etc
END IF;
END;Edited by: Frank Kulash on Nov 14, 2012 9:22 AM
Added example -
Can I use two different greens for green screening and keep one without it being keyed out?
I am using a green screen which is your standard light green fabric.
I am also wearing a bottle green cape.
I want to key out the standard green which is no problem. However it also takes out the bottle green on my cape.
Is there a way on either Premiere Pro or After Effects to ensure the bottle green stays as it is without being automatically keyed out?
Many thanks.shooternz wrote:
rotoscope
There's your answer, most likely. I can think of a few methods you might try, but they're going to be labor intensive, and likely involve some roto.
Most keyers have a threshold setting that determines what colors stay and which ones go. You could keep tweaking that setting in very small increments, and if you get lucky, it might discriminate between two green values.
You might be able to precomp in Ae and use the Change Color plug to shift one of them to a more contrasty green or different hue altogether and create a luma matte.
But, you failed green screen 101, and you gotta' go to detention.
robodog, you're being a bit harsh on Jimmy Simon. He said "Might be worth a reshoot...." I can't disagree. Depending on arahman's situation, a reshoot might be easier and quicker. You never know. -
all data on my old hdd is lost after an crash. so i changed it with a new hdd. but the old sync key is not longer available. I generated a new key so i lost all my old date stored with sync... is there any way to restore the old data from my old hdd sync key...?
Sorry, no. The SyncKey is used for encryption / decryption during the Sync process, without the Sync Key that was used to encrypt your personal data as it was uploaded to the Sync storage server your data is worthless. Plus, when you generate a new Sync Key for an existing account, all the data that is saved on the server for that account is deleted for your security.
Do you still have the old HDD? It may work long enough for you to extract your Firefox data, if you put that drive in a USB drive enclosure and access it as an external drive. <br />
http://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile -
Define Planning levels for Logistics (Liquidity forecast).
Hi Gurus,
I am defining planning levels for logistics for my client inorder to see the purchase order items in liquidity forecast report FF7A/FF7B but I can only assign one vendor planning group to M2 as my requirement requires all vendor planning groups to be assigned to M2 to see all the purchase orders items for all the vendor planning groups. Does anybody has any idea how do we assign?
Thanks,
BobHi Nirmal,
I think that is for displaying per cash management group but thanks nirmal for replying.
Regards,
Bob -
Anybody explain me about natural key and what situations use this type of keys in RPD?
Thanks in Advance.Hi ,
Check the below link
http://gerardnico.com/wiki/data_modeling/key
Thanks,
Ananth -
Data fetch from table without Refresh and without using tab key.
hi Friends,
I have a problem i want to extract data from table without Refresh into text field without using Tab key. when i'll enter any value in a text field then corressponding value should come in to corressponding textfield without using Tab Key.
eg. when i enter emp_id 101 in a text field then the first_name and last_name ,adress should come in to corressponding text fields without refresh and without using Tab key.
How Can I do this.
Thanks
ManojHi Manoj,
I assume that this is similar to: Data fetch without Refresh rather than Re: Value of one textfield should come into another textfield Without Using TAB ?
If so, the only change you need to make on the first one is to use "onkeyup" instead of "onchange" in the item's "HTML Form Element Attributes" setting.
Note, however, that the user must move away from the item at some point (for example, to click a button), so the onchange will be triggered anyway.
Andy -
Split valuated material price change at header level (without val. Type)
Hi All,
Need to change Split valuated Material Price at Header level (without val. type).
In MR21 valuation type is mandetory for split valuated material.
Please suggest on changing Material price without val. type.
ThanksYou have to advise the users who create accounting views to enter a valid price when they create a material master. Maybe you need to make use of the user exit to prevent saving when no price (or a dummy 0,01) is entered.
It is not possible to change the header price with any SAP given transaction, as it could cause inconsistencies if you dont take care about the stocks at valuation type level.
you may have to deveope an own report on own risk. I personally have the opinion that it is more secure to post stock and reverse it again (which just creates to accounting documents that equalize each other, no remaining value anywhere) than going the risk with an own program to screw up the valuation of a material in general -
SCD issue when multiple records in the source dataset have same natural key
When I load a dataset into a slowly changing dimension, sometimes the dataset contains multiple records for the same natural key. The rows are different by the column last_update_date (among other possible differences).
The behavior I want is this: if during an ODI job run, the source dataset contains multiple records for one natural key, all records will load into the dimension, but only the record with the greatest last_update_date gets marked as the current record in the dimension. Right now, ODI is marking all of the incoming rows for the natural key as current. Any ideas? Thanks!Last_update_date is on the source but is not being sent to the target. Thus, it doesn't have an SCD behavior. I think my solution will be to pre-process the incoming records so I don't attempt to load multiple rows per natural key. I was just hoping someone here knew of an easier solution.
If it helps, except for the SK, NK, Current Flag, and Effective Date fields, all SCD behaviors are "add row on change". -
ABAP WD, Multiple Row selection in table control without using Crtl key
Hi all,
I am displaying the records using the table control, i have to select the multiple records in the list <b>without using Crtl key</b>.
How do i solve this?
ThanksHi,
you should set the table parameter selectionMode to multi or multinolead
than you can select multiple records,
these you can retrieve: lt_selected_elements = node->get_selected_elements( ).
also see this <a href="https://forums.sdn.sap.com/click.jspa?searchID=4209200&messageID=3544158">thread</a> for info
grtz,
Koen -
I have been doing a lot of reading about the pros and cons of using natural versus surrogate keys. I have read in Joe Celko's books and his writing online that he strongly opposes using surrogate keys and using IDENTITY for generating values for a
surrogate key column of a table in SQL Server. I would like some advice on how to handle this situation: I have a table with physician information and would like to use their NPI as a natural key (it would be a foreign key in many other tables)
but the people who enter new physicians often don't know the NPI until later. They also may receive the wrong NPI and need to change it later.
Right now they use Excel spreadsheets to manage their data and I'm sure you can understand what a nightmare of data integrity that is. Now that I'm going to design and build a database for them, can you recommend a good approach to this specific problem?
I cannot tell them to hold on to the new physician's data until they get the NPI because they need to immediately work with the physician's information as soon as the new physician joins the organization. It's a small shop and not a health system
but thousands of physicians join. They cannot insist that the NPI be supplied at the time of registration for various political reasons. The people who are using the system now have varying degrees of skepticism to outright vehement opposition
to having a new database system so I cannot "lay down the law" about things that may adversely affect the relationship with the new physicians who sign up. With the Excel spreadsheets they cope with this by either leaving it blank, entering
9999999 or some other stray string of characters, or perhaps typing in their shopping list.
Is there a viable solution to this design problem? Any and all suggestions appreciated. Thanks for reading this.While I disagree with the standard practice of adding an identity column as the primary key for every table, I think that this is a case where it can be beneficial or practical. You might not want to cluster on the identity column and you still need
to enforce the uniqueness of the natural key.
OTOH, the alternative is to simply fabricate a value for the natural key when it is unknown. You could do this manually (where the user must enter the fabricated value) or automatically (where the server generates it). A manual approach might
be frustrating to the users since they have to "guess" what would be unique and acceptable, resulting in sort of trial-and-error approach to adding. You would also very likely need to have a way of identifying which rows had a fabricated value. Once
the actual natural key has been identified for a given provider you would then need to update it. The server can handle cascading the value where needed if you so choose. Note that, except for the cascading part, you need the same capabilities
for an identity-based table since this natural key is most likely essential to the system.
I'll also point out that you can use a unique constraint as the target of a foreign key - you don't have to use the primary key. Not recommending this, just mentioning the alternative.
Which you should choose I can't say - that requires a much better understanding of your model and that isn't something that can be readily provided in a forum such as this. I will say that you should not prematurely choose an identity. Why? First,
you make this choice once you have deemed the natural key to be a problem. Second, it may be (at least) some of your anticipated relationships to physician are actually to something else. A medical system is as much art as science - at least in
the USA. Providers, plans, participants, terms, renewals, diagnosis codes, etc. make one's head spin. Given that you have just started modeling, there is no reason at this point to make this choice - just be aware that the natural key poses some
issues that you need to address at some point before completion. Personally I would choose the natural key for now and let the model develop and demonstrate where this choice becomes a problem. -
SUS ASN/POR without using confirmation key in ECC
hi gurus,
would like to verify if to use SUS ASN or POR without having confirmation key in ECC is possible?
we are on MM-SUS scenario (ECC6 & SRM7).
thanks,
ggHi
ASN is controlled thorugh Confirmation Control Key in ECC PO.
For POR you dont need this key....
Regards
Virender Singh -
hi!
is it possible to create a db-table without a primary key? if there is a possbility, how can i do this?
greetings
stefanHello,
The link i provided contains all your answers. Its oracle 8i documentation release. It contains everything that you want to know about oracle 8i release.
What Are Index-Organized Tables?
Index-organized tables are tables with data rows grouped according to the primary key. This clustering is achieved using a B-tree index. B-tree indexes are special types of index trees that differ from regular table B-tree indexes in that they store both the primary key and non-key columns. The attributes of index-organized tables are stored entirely within the physical data structures for the index.
Why Use Index-Organized Tables?
Index-organized tables provide fast key-based access to table data for queries involving exact match and range searches. Changes to the table data (such as adding new rows, updating rows, or deleting rows) result only in updating the index structure (because there is no separate table storage area).
Also, storage requirements are reduced because key columns are not duplicated in the table and index. The remaining non-key columns are stored in the index structure.
Index-organized tables are particularly useful when you are using applications that must retrieve data based on a primary key. Also, index-organized tables are suitable for modeling application-specific index structures. For example, content-based information retrieval applications containing text, image and audio data require inverted indexes that can be effectively modeled using index-organized tables.
See Also: For more details about index-organized tables, see Oracle8i Concepts.
Differences Between Index-Organized and Regular Tables
Index-organized tables are like regular tables with a primary key index on one or more of its columns. However, instead of maintaining two separate storage spaces for the table and Btree index, an index-organized table only maintains a single Btree index containing the primary key of the table and other column values.
Index-organized tables are suitable for accessing data by way of primary key or any key that is a valid prefix of the primary key. Also, there is no duplication of key values because a separate index structure containing the key values and ROWID is not created. Table 14-1 summarizes the difference between an index-organized table and a regular table.
Table 14-1 Comparison of Index-Organized Table with a Regular Table
Regular Table Index-Organized Table
ROWID uniquely identifies a row; primary key can be optionally specified
Primary key uniquely identifies a row; primary key must be specified
ROWID pseudo-column refers to physical block address
ROWID pseudocolumn refers to primary key-based logical ROWID
Secondary indexes store physical data
Secondary indexes store primary key-based logical ROWID
Can be stored in a hash or index cluster
Cannot be stored in a hash or index cluster
Regards,
Shekhar Kulkarni -
AKOF u2013 Define reconciliation accounts without credit management update
Hello,
Wu2019ve configured Credit management, at same time, we have many special G/L indicators, and hence many alternative reconciliation accounts. Now we need to exclude few for credit management check.
I understand that using AKOF u2013 Define reconciliation accounts without credit management update, we can achieve the same.
Initially I thought that putting the alternative reconciliation accounts will be sufficient, but if I check the help page in SPRO beside this configuration, it also talks about, some setup for u201CReconciliation account ready for inputu201D in master record of reconciliation accounts, etc.
Please help me in understanding how actually AKOF works, and how I can achieve the objective.
Thanks
Balla.
-
How to implement SCD when a natural key gets changed?
Hi,
I have an requirement that, some times the natural key field of the dimension table may get changed. In that scenario, how can I implement the SCD type 2 for that dimension table. Pls post your suggestions and feedback.
Thanks in advance,
KishanHello Kishan,
could you please be a little bit more specific and provide an example? I really can't imagine why a natural key should change. If it changes it's another item that has nothing to do with the item described by the old natural key. What I'm trying to say is if your natural key gets "broken" then it's not your natural key. Try to build one on your own. You can for instance concatenate the old natural key with a sequence number and use that construct as your natural key.
Regards,
Jörg
Maybe you are looking for
-
Help...... I have an iPad that gets service through our Home computer via WiFi, and that is all working fne, BUT, when I got o buy credit in an App, which I previously used to be able to do, it now won't let me and says that Yes, I ahev iTunes credit
-
Hi Experts, I am analysing T Code FS10N, in that i found a difference in Last year 2008 Closing balance and Current year 2009 Opening Balance, what wil be the exact reason for this issue and please suggest the solution for same. Regards, Vivek.N.Vis
-
Errors installing patch 111858-01.
I ran 111858-01 patch install, however, keep getting the following error: /var/sadm/patch/111858-01/log This appears to be an attempt to install the same architecture and version of a package which is already installed. This installation will attempt
-
Aperture Nikon D300 RAW: 4304×2852 instead of 4288 × 2848?
Aperture 2.0 seems to squeeze extra pixels out of my Nikon D300 RAW files compared to Capture NX. This messes up Apertures "+auto detection & import+" of RAW+JPG sets when you generate the JPGs using Capture NX. No problem when using the JPGs the cam
-
My phone won't update to iOS 4.3
I purchased an app for my iPhone, but it doesn't work because it says that I have to update to iOS 4.3 My phone is currently using 4.2.10, and when I try to update in iTunes, it keeps telling me that my software is up to date????